text
stringlengths
7
995k
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * JasperReports - Free Java Reporting Library. * Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is part of JasperReports. * * J...
/* * Copyright (C) 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.component.olingo4; import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.spi.ExtendedPropertyConfigurerGetter; import org.apache.camel.spi.PropertyConfigurerGetter; import org.apache.camel.spi.Configur...
package com.mkl.gulimall.coupon.service; import com.baomidou.mybatisplus.extension.service.IService; import com.mkl.common.utils.PageUtils; import com.mkl.gulimall.coupon.entity.CouponHistoryEntity; import java.util.Map; /** * 优惠券领取历史记录 * * @author makaloo * @email xiehj1997@gmail.com * @date 2020-12-19 19:57:0...
/** * Project Name:netty-rpc-consumer * File Name:RpcProxy.java * Package Name:cn.forp.netty_rpc_consumer * Date:2019年3月13日下午5:49:10 * Copyright (c) 2019, All Rights Reserved. * */ package io.github.muxiaobai.netty_rpc_api; /** * ClassName:RpcProxy * Function: TODO * Reason: TODO * Date: 2019年3月13日 下...
/***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Common Public * License Version 1.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.eclipse.org/legal/cpl-v...
/** * */ /** * @author Nour Ali * * This code is designed to help you test your Linked List code. It will create a generic linked list, * add some elements, and remove some elements. It is designed to work with a linked list program * called LinkedList.java that is in the data_structures package. * * Yo...
// Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas package jminusminus; import static jminusminus.CLConstants.*; /** * The AST node for an identifier used as a primary expression. */ class JVariable extends JExpression implements JLhs { /** * The variable's name. */ private Str...
@ParametersAreNonnullByDefault package org.batfish.specifier; import javax.annotation.ParametersAreNonnullByDefault;
package org.gbif.checklistbank.index; import org.gbif.api.service.checklistbank.DescriptionService; import org.gbif.api.service.checklistbank.DistributionService; import org.gbif.api.service.checklistbank.SpeciesProfileService; import org.gbif.api.service.checklistbank.VernacularNameService; import org.gbif.checklistb...
/* * Copyright 2021 DataCanvas * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.search; import org.elasticsearch.common.io.st...
package id.thony.android.quranlite.utils; public class EnumUtil { public static <T extends Enum<T>> T safeValueOf(String value, T defaultValue) { try { return T.valueOf(defaultValue.getDeclaringClass(), value); } catch (Exception ignored) { return defaultValue; } ...
/* * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
package net.darktree.stylishoccult.blocks.occult; import net.darktree.stylishoccult.blocks.BuildingBlock; import net.darktree.stylishoccult.blocks.occult.api.FoliageFleshBlock; import net.darktree.stylishoccult.blocks.occult.api.FullFleshBlock; import net.darktree.stylishoccult.blocks.occult.api.ImpureBlock; import ne...
package com.javaxxl; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * Main * * @author zhucj * @since 20210225 */ public class Main { public static void main(String[] args) { ApplicationContext context = new ClassPathXmlAp...
package unam.bdd; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.util.Scanner; /** * Class that allows us to write and read a file. * @version 23/03/2022 */ public class ReadnWrite { protected File file; /** * Create a new ReadnWr...
package cn.enilu.guns.bean.constant; /** * 系统常量 * * @author fengshuonan * @date 2017年2月12日 下午9:42:53 */ public interface Const { /** * 系统默认的管理员密码 */ String DEFAULT_PWD = "111111"; /** * 管理员角色的名字 */ String ADMIN_NAME = "administrator"; /** * 管理员id */ Integer...
/* * Copyright (C) 2011 JFrog Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
package com.lkl.algorithm.mazeSolver.DFSMazeSolver; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Scanner; public class MazeData { public static final char ROAD = ' '; public static final char WALL = '#'; private in...
// This file was generated by Mendix Business Modeler. // // WARNING: Code you write here will be lost the next time you deploy the project. package administration.proxies; import com.mendix.core.Core; import com.mendix.core.CoreException; import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.system...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 // See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2021.05.05 ...
/*************************************************************************** * Copyright 2010 Global Biodiversity Information Facility Secretariat * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the Licen...
package org.apache.xpath.operations; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
/* * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/******************************************************************************* * QBiC Project Wizard enables users to create hierarchical experiments including different study * conditions using factorial design. Copyright (C) "2016" Andreas Friedrich * * This program is free software: you can redistribute it and...
package com.averagemap.core.coordinates.model; public class GoogleMapsTile implements Position2D<Integer> { private final int zoom; private final int x; private final int y; public GoogleMapsTile(int x, int y, int zoom) { this.x = x; this.y = y; this.zoom = zoom; } ...
package com.yiran.api.facade; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory;...
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.plugins.newui; import com.intellij.icons.AllIcons; import com.intellij.ide.IdeBundle; import com.intellij.ide.plugins.*; import com.intellij.openapi.acti...
/* * Copyright 2010 bufferings[at]gmail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
package com.planet_ink.coffee_mud.Items.Weapons; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com....
/* * MIT License * * Copyright (c) 2017 Yuriy Budiyev [yuriy.budiyev@yandex.ru] * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ...
package com.sjsu.se195.uniride; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class AlarmListener extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { System.out.println("I m in the Alamr Listen...
package controller; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import crypt.mPassword; public class RegistrationModule { public String registrationSetup() {String email; mPassword userMasterPassword; char ch='y'; Scanner in=new Scanner(System.in); System.out.println("SN...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import java.util.Scanner; public class Squares { public static void main (String[] args) { Scanner scan = new Scanner(System.in); double x = 1; double numberofnumbers; double number; double numbertotal = 0; double squarednumber; double squarednumbertotal = 0; double average = 0; double average...
package module0packageJava0; import org.junit.Test; public class Foo1Test { @Test public void testFoo0() { new Foo1().foo0(); } @Test public void testFoo1() { new Foo1().foo1(); } @Test public void testFoo2() { new Foo1().foo2(); } @Test public void testFoo3() { new Foo1().foo...
/**************************************************************** * Licensed to the Apache Software Foundation (ASF) under one * * or more contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The ASF licenses this...
package com.ovit.nswy.portal.controller; import com.alibaba.fastjson.JSON; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.ovit.nswy.frame.common.Response; import com.ovit.nswy.portal.model.ShopAddress; import com.ovit.nswy.portal.model.ShopComplaint; import com.ovit.nswy.por...
package test; import java.util.*; import jet.runtime.typeinfo.KotlinSignature; import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError; public class WrongValueParameterStructure1 { @ExpectLoadError("'kotlin.String?' type in method signature has 0 type arguments, while 'String<Int?>' in alternative signat...
package ale; public enum LocatorType { DEFAULT }
import java.io.FileInputStream; import java.io.IOException; import java.nio.ByteBuffer; import gov.nasa.jpf.symbc.Debug; import tcas.TCAS_V9; public class SymbcDriver { public static void main(String[] args) { /* Read one input for both program versions. */ int cvs; boolean hc; b...
/* * Copyright © 2017-2019 Harvard Pilgrim Health Care Institute (HPHCI) and its Contributors. * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, including * without limit...
/* Copyright 2014 Yahoo! Inc. */ /* Licensed under the terms of the 3-Clause BSD license. See LICENSE file in the project root for details. */ package com.yahoo.db.mdbm.exceptions; public class MdbmException extends Exception { private static final long serialVersionUID = 1L; private String path = ""; priv...
/* * MIT License * * Copyright (c) 2022 MASES s.r.l. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, cop...
package com.github.jinahya.bit.io; /*- * #%L * bit-io2 * %% * Copyright (C) 2020 Jinahya, Inc. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
/* Copyright (c) 2012-2013, University of Edinburgh. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * li...
class Block{ //constructor Block(){ System.out.println("Constructur"); } //instance initializer block { System.out.println("Initializer block"); } //static block static{ System.out.println("static block"); } } public class BlockTest{ public static void main(String args[]){ new Block();//object of cl...
package com.denizenscript.denizen.scripts.commands.npc; import com.denizenscript.denizen.npc.traits.SleepingTrait; import com.denizenscript.denizen.objects.NPCTag; import com.denizenscript.denizen.utilities.Utilities; import com.denizenscript.denizen.utilities.debugging.Debug; import com.denizenscript.denizen.npc.trai...
package com.digitalclash.mvc; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class GeoclientServiceApplicationTests { @Test void contextLoads() { } }
package com.zx.city; import android.content.Context; import android.view.LayoutInflater; import android.view.View; public class ThirdView { private Context mContext; public ThirdView(Context context){ mContext = context; } public View getThirdView() { View view = LayoutInflater.from(mContext).inflate(R.layo...
package com.beyond.popscience.module.point.adapter; import android.app.Activity; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; impor...
/* * Copyright 2000-2020 Vaadin Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/******************************************************************************* * Copyright 2017 Bstek * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/l...
package com.pilicon.diveinspringboot.autoconfiguration.configuration; import com.pilicon.diveinspringboot.autoconfiguration.annotations.EnableHelloWorld; import com.pilicon.diveinspringboot.autoconfiguration.condition.ConditionalOnSystemProperties; import org.springframework.context.annotation.Configuration; @Configu...
package ru.job4j.synchro; /** * @author Vitaly Zubov (mailto:Zubov.VP@yandex.ru). * @version $Id$. * @since 0.1. */ public class User { private final int id; private int amount; /** * Constructor. * * @param id - id of user. * @param amount - amount of user. */ public User...
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
package com.fastasyncworldedit.core.object.brush; import com.fastasyncworldedit.core.object.brush.mask.LayerBrushMask; import com.fastasyncworldedit.core.object.collection.BlockVectorSet; import com.fastasyncworldedit.core.object.mask.AdjacentAnyMask; import com.fastasyncworldedit.core.object.mask.RadiusMask; import c...
package dk.aau.cs.qweb.pec.lattice.QB4OLAP; import java.util.ArrayList; import java.util.List; public class Dimension { private String subject; private String label; private List<Level> levels = new ArrayList<Level>(); private List<String> heirarchies = new ArrayList<String>(); public Dimension (String subject...
package br.com.zupacademy.rodrigo.proposta.metricas; import java.util.ArrayList; import java.util.Collection; import java.util.Objects; import java.util.Random; import java.util.UUID; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import io.micrometer.cor...
// Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.optimize.finalize; import static com.android.tools.r8.utils.codeinspector.Ma...
/* * Copyright 2013-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
package app.main; import java.lang.management.ManagementFactory; import java.util.Arrays; import reactor.core.publisher.Mono; import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.boot.CommandLineRunner; ...
/* * Copyright 2018 Murat Artim (muratartim@gmail.com). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package at.uibk.dps.sc.core.scheduler; import java.util.HashSet; import java.util.Set; import com.google.inject.Inject; import com.google.inject.Singleton; import at.uibk.dps.ee.model.graph.SpecificationProvider; import net.sf.opendse.model.Mapping; import net.sf.opendse.model.Resource; import net.sf.opendse.model.Tas...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
/* * Copyright 2011 gitblit.com. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
package me.walkersneps.snepsbotx; import me.walkersneps.sneps.utils.property.PropertyReader; import me.walkersneps.snepsbotx.chatter.BasicChatsENG; import me.walkersneps.snepsbotx.chatter.ChatToggle; import me.walkersneps.snepsbotx.commands.*; import me.walkersneps.snepsbotx.irc.events.reactions.*; import me.walkersne...
/* * Copyright © 2017 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
/* * * Copyright (C) 2014 kinegratii(kinegratii@gmail.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This p...
/* * Copyright 2020 Red Hat * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
/* * Copyright 2001-2005 Stephen Colebourne * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/query_plan.proto package com.google.spanner.v1; public final class QueryPlanProto { private QueryPlanProto() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} public static...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.safe_browsing.settings; import android.content.Context; import android.util.AttributeSet; import android.view.View; i...
package com.github.tarcisioN.android.http; /** * The media type is the value of Content-Type http.http.android message header and is defined of 2 or more parts. A main type, sub type * and zero or more optional sub types. For example, subtypes of application/json have an optional charset parameter that can * be inc...
package com.hyphenate.chatuidemo.conference; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; import com.hyphenate.chatuidemo.R; import ...
package com.google.android.gms.ads; import android.content.Context; import com.google.android.gms.ads.internal.client.zza; import com.google.android.gms.ads.internal.client.zzaa; import com.google.android.gms.ads.purchase.InAppPurchaseListener; import com.google.android.gms.ads.purchase.PlayStorePurchaseListener; pub...
package com.atguigu.gmall.pms.config; import lombok.extern.slf4j.Slf4j; import org.springframework.amqp.core.Message; import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.spring...
package com.baeldung.rxjava; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Test; import io.reactivex.Observable; import io.reactivex.plugins.RxJavaPlugins; import io.reactivex.schedulers.Schedulers; public class RxJavaHooksManualTest { private boolean initHookCalled = fals...
package org.infinispan.stream.impl.local; import org.infinispan.AdvancedCache; import org.infinispan.Cache; import org.infinispan.commons.util.CloseableIterator; import org.infinispan.context.Flag; import org.infinispan.distribution.ch.ConsistentHash; import org.infinispan.stream.impl.RemovableCloseableIterator; impor...
/* Derby - Class org.apache.derby.impl.drda.XADatabase.java Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You unde...
package rosetta; public class MDC_PULS_OXIM_SAT_O2_ART_LEFT { public static final String VALUE = "MDC_PULS_OXIM_SAT_O2_ART_LEFT"; }
/** * Write a description of class Enemy here. * * @author (your name) * @version (a version number or a date) */ public class Enemy { // instance variables - replace the example below with your own private int x; /** * Constructor for objects of class Enemy */ public Enemy() { // initialise instance...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ccr.action; import org.elasticsearch.test.Abs...
package com.android.djs.animator; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
package com.group144.zaicev; import java.util.function.Supplier; /** * Class, which realizes method get() for single thread and multi thread */ public class LazyFactory { /** * Realizes method get() for single thread * * @param supplier function, which will be used * @param <Type> Type, w...
package com.foxconn.iot.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import com.foxconn.iot.entit...
package com.jubalrife.knucklebones.v1.type; import com.jubalrife.knucklebones.v1.SupportedTypes; import java.sql.ResultSet; import java.sql.SQLException; public class IntegerExtractor implements SupportedTypes.Extractor { @Override public Object extract(Integer columnIndex, ResultSet results) throws SQLExcep...
/** * Copyright 2009 Andreas Langegger, andreas@langegger.at, Austria * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
/* * Microsoft JDBC Driver for SQL Server * * Copyright(c) Microsoft Corporation All rights reserved. * * This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information. */ package com.microsoft.sqlserver.jdbc.connection; import java.sql.Connect...
package cn.k12soft.servo.service.mapper; import cn.k12soft.servo.domain.Actor; import cn.k12soft.servo.service.dto.ManagerDTO; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; /** * @author <a href="mailto:fenghua.wang@codepoch.com">fenghua.wang</a> *...
package com.slickqa.executioner.web.api; import com.google.inject.Inject; import com.google.inject.Singleton; import com.slickqa.executioner.base.Addresses; import com.slickqa.executioner.base.AutoloadComponent; import com.slickqa.executioner.base.OnStartup; import com.slickqa.executioner.web.AddsSocksJSBridgeOptions;...
package com.stripe.functional; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.stripe.BaseStripeTest; import com.stripe.exception.StripeException; import com.stripe.model.Balance; import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponse; import ...