id
stringlengths
7
14
text
stringlengths
1
37.2k
156643363_10
public void setType(final int index, final String type) { if (index >= 0 && index < length) { data[index * 5 + 3] = type; } else { badIndex(index); } }
156655880_128
@SuppressWarnings("StringEquality") public static boolean isEqual(String s1, String s2) { if (s1 == null || s2 == null) { return s1 == s2; } return s1.equals(s2); }
156706507_0
public void setPlaybackConversation(String conversation) { this.filename = "no filename set"; int charPosn = -1; int ctr = 0; boolean again = true; while (again) { charPosn = conversation.indexOf(SERVIRTIUM_INTERACTION + ctr + ":", charPosn+1); int charEndPosn; if (charPosn >...
156776643_78
public <T> void subscribe(Object token, Consumer<T> consumer) { Set<Consumer<?>> set = subscriptions.get(token); if (set == null) { set = new LinkedHashSet<>(); subscriptions.put(token, set); } set.add(consumer); }
156879211_11
@Override public Single<Integer> readRssi() { SingleSubject<Integer> scopedSubject = SingleSubject.create(); return scopedSubject .doOnSubscribe(disposable -> processReadRssi(scopedSubject)) .doFinally(() -> clearReadRssiSubject(scopedSubject)); }
156927857_3
public String execute(String configFilePath, List<String> schemaFilePaths) { final Configuration configuration = Configuration.builder() .setSchemaFilePaths(schemaFilePaths) .setConfigFilePath(configFilePath) .build(); Map<String, LinterRule> rules = ConfigTransformer.transf...
156962326_15
@Transactional public boolean updatePermission(int id, PermissionReqDto permissionReqDto) { try { Permission permission = buildPermission(permissionReqDto); permission.setId(id); this.permissionRepository.save(permission); return true; } catch (Exception e) { log.error("u...
157079901_7
public void preModifyArticle(BbsArticleEntity dbParam) { Optional<BbsArticleEntity> optDbInfo = this.get(dbParam.getArticleId()); if (optDbInfo.isPresent() == false) { throw new BaseException("데이터를 찾을 수 없습니다.", HttpStatus.BAD_REQUEST); } BbsArticleEntity dbInfo = optDbInfo.get(); if (String...
157118635_2
@Override public String getHelpText() { return "Adds a hello world text to the claim"; }
157273136_10
public static TypeSignature parse(String typeSignature) { Stack<StringBuilder> baseStringBuilderStack = new Stack<>(); Stack<List<TypeSignature>> parametersStack = new Stack<>(); Stack<List<String>> parameterNamesStack = new Stack<>(); StringBuilder currentBaseStringBuilder = new StringBuilder(); List<TypeSig...
157290915_6
@Override public Sample createSample(final int size, final Random random) { LogNormalDistribution distro = new LogNormalDistribution(meanLog, sdLog); distro.reseedRandomGenerator(random.nextLong()); return new Sample() { @Override public int getNextDegree() { // note: can produc...
157370190_20
public double getNet() { final double ltbg = Math.max(Math.min(sal, 20000.0) - 5000, 0.0); final double mtbg = Math.max(Math.min(sal, 40000) - 20000, 0.0); final double utbg = Math.max(sal - 40000, 0.0); return sal - (ltbg * 0.1 + mtbg * 0.2 + utbg * 0.4); }
157413720_40
@Override @SuppressWarnings("unchecked") public void process(DiffableScope scope, DirectiveNode node) { validateArguments(node, 1, 1); validateOptionArguments(node, "exclude", 0, 1); validateOptionArguments(node, "merge", 0, 1); boolean merge = Optional.ofNullable(getOptionArgument(scope, node, "merge"...
157534574_1
public static Map<String, JpsEntity> jps() { Map<String, JpsEntity> map = new HashMap<>(); String s = ExecuteCmd.execute(new String[]{"jps", "-l", "-v"}); String[] line = s != null ? s.split("\n") : new String[0]; for (String aLine : line) { String[] one = aLine.split("\\s+"); //排除sun.to...
157564875_4
public DirectoryStructure readDirectoryStructure( String rootDirectory, String include, String exclude ) throws IOException { FileFilter filter = FileFilter.of(rootDirectory, include, exclude); List<FileEntry> allFilesEntries = directoryLister.listFiles(rootDirectory, filter); DirectoryStructureBuilder structureBui...
157572651_4
@Override public <T> Mono<T> run(Mono<T> toRun, Function<Throwable, Mono<T>> fallback) { io.github.resilience4j.circuitbreaker.CircuitBreaker defaultCircuitBreaker = registry.circuitBreaker(id, config.getCircuitBreakerConfig()); circuitBreakerCustomizer.ifPresent(customizer -> customizer.customize(defaultCircuitBr...
157765359_1
public String addPsdAttibutes( String certificate, String privatekey, String passphrase, String organizationIdentifier, String ncaname, String ncaid, List<String> roles ) { String pemCertificate = certificate.replaceAll("\\\\n", "\n"); EiDASCertificate eidascert = new EiDASCertificate(); K...
157827731_2
@Override public void init() throws CacheInitializationException { if (initialized.get()) { throw new CacheInitializationException( "Illegal state while initializing cache for " + clientId + ". Cache was already initialized"); } if (localCache.isPersistent()) { try { ...
157848372_23
public ReturnHelper<Result> returnResult() { return new ReturnHelper<Result>(new ReturnResult()); }
157902250_1306
public String post(Map<String, String> parameters) { OutputStreamWriter wr = null; BufferedReader rd = null; String response = ""; StringBuilder data = new StringBuilder(); try { // Construct data for (Map.Entry<String, String> entry : parameters.entrySet()) { // skip over invalid post variables if...
157945047_38
@Override public Set<Thing> get() throws InterruptedException, TechnologyException { if (!mTimeout.isCancelled()) { try { mTimeout.get(mTimeoutInMs, TimeUnit.MILLISECONDS); } catch (CancellationException | TimeoutException ignored) { // Ignored. } catch (ExecutionEx...
158084770_2
public static String getLocalAddr(){ try { Enumeration<NetworkInterface> enumeration = NetworkInterface.getNetworkInterfaces(); ArrayList<String> ipv4Result = new ArrayList<String>(); ArrayList<String> ipv6Result = new ArrayList<String>(); while (enumeration.hasMoreElements()) { ...
158088669_0
@Override public List<ApplicationConfig> getApplicationConfig(String appName) { List<ApplicationConfig> configList = new ArrayList<>(); final String path = zkPath + configPath; try { if (client.checkExists().forPath(path) != null) { List<String> childPaths = this.client.getChildren().fo...
158136158_0
public void addObserver(ProfileObserver profileObserver){ observers.add(profileObserver); }
158186574_12
@Override public TEvent decode(String source) throws DecodeException { JSONObject object = parse(source); TEvent event = new TEvent(); decodeToEvent(event, object); return event; }
158213242_39
@Override public Form getForm(ContainerRequestContext context) throws IOException { final InputStream is = context.getEntityStream(); // Ensure stream can be restored for next interceptor InputStream bufferedStream; if (is.markSupported()) { bufferedStream = is; } else { bufferedStr...
158250453_1
@SuppressWarnings("unchecked") public void load(String path) throws IOException { InputStream in; if (path.startsWith(CLASSPATH)) { in = ConfigReader.class.getResourceAsStream(path.substring(CLASSPATH.length())); } else if (path.startsWith(FILEPATH)) { in = new FileInputStream(new File(path....
158256479_87
public static Map<String, Integer> indexByName(Types.StructType struct) { IndexByName indexer = new IndexByName(); visit(struct, indexer); return indexer.byName(); }
158267213_31
@Override public List<IAuthorityEntry> findByUri(IUser user, String uri) { List<IAuthorityEntry> results = entryRepository.findByUsernameAndUriOrderByName(user.getUsername(), uri); if (uri.endsWith("/")) { uri = uri.substring(0, uri.length() - 1); } else { uri = uri + "/"; } results....
158331158_16
public static ParameterValidatorResult getSingleValue(Enumeration<String> input) { return getSingleValue(input, null); }
158452696_4
public static List<Integer> doParallelSquares() { final ActorSystem system = ActorSystem.create("parallel-squares"); // 1 final Materializer mat = ActorMaterializer.create(system); // 2 List<Integer> squares = new ArrayList<>(); Source.range(1, 64) //2 .mapConcat(v -> Source.single(v).map(...
158468074_69
@Override public void execute(Context ctx) throws Exception { Configuration config = Configuration.custom().build(ctx); setOutVariable(ctx, executeRequest(config)); }
158543059_1442
public LogTailInformation getTailInformation() throws UnderlyingStorageException { if ( logTailInformation == null ) { try { logTailInformation = findLogTail(); } catch ( IOException e ) { throw new UnderlyingStorageException( "Error encountered wh...
158546420_11
public GenericColumn getInternalColumn() { return internalColumn; }
158547266_14
public static EnvvarSource withPrefix(String prefix) { return new EnvvarSource(prefix); }
158618423_2
@Override public ListenableFuture<Void> clear() { requireOpen(); return Futures.submitAsync( () -> { Exception isDead = isDead(); if (isDead != null) { return Futures.immediateFailedFuture(isDead); } try { File[] files = Objects.requireNonNull(namespacedDire...
158704131_0
@Override public String format(Object object) { try { return objectMapper.writeValueAsString(object); } catch (JsonProcessingException e) { // 解析失败返回非法参数异常 throw new IllegalArgumentException(e); } }
158831879_0
public List<String> run() throws KnowNERLanguageConfiguratorException { List<String> errorMessages = new ArrayList<>(); for (KnowNERResourceChecker checker : checkerList) { logger.info("Creating '" + language + "' KnowNER resources for " + checker.getClass().getSimpleName()); KnowNERResourceResult result = ...
158992067_14
public String match(Set<String> sources, String target ) { return sources.contains(target) || sources.isEmpty() ? target : matchMissingKey(sources,target); }
159189646_3
@Override public Object run() { RequestContext context = RequestContext.getCurrentContext(); context.getResponse().setCharacterEncoding("UTF-8"); String rewrittenResponse = rewriteBasePath(context); if (context.getResponseGZipped()) { try { context.setResponseDataStream(new ByteArr...
159208572_0
public boolean syncWithDataLayer(ExternalCustomer externalCustomer) { CustomerMatches customerMatches; if (externalCustomer.isCompany()) { customerMatches = loadCompany(externalCustomer); } else { customerMatches = loadPerson(externalCustomer); } Customer customer = customerMatches....
159473524_4
@Override @CatAnnotation public Recipient save(String accountName, Recipient recipient) { recipient.setAccountName(accountName); recipient.getScheduledNotifications().values() .forEach(settings -> { if (settings.getLastNotified() == null) { settings.setLastNotified(new Date()); } }); repository...
159519764_0
@PreAuthorize("hasPermission(#id, 'com.sap.cp.appsec.domain.Advertisement', 'read')") public Advertisement findById(Long id) throws NotFoundException { Optional<Advertisement> advertisement = repository.findById(id); if (!advertisement.isPresent()) { NotFoundException notFoundException = new NotFoundExc...
159537834_32
<K extends Entity.Key<S>, S extends Specification> Mutation<?, ?, ?> convert(Event<K, S> event) { var converter = (Converter<?, ?, ?, ?, K, S>) converters.get(event.getKey().getClass()); if (converter == null) { throw new IllegalArgumentException("Unknown key class " + event.getKey().getClass()); } if (ev...
159544942_2
public static FloatBuffer mapVertexData(IntBuffer indexMap, FloatBuffer inputBuffer, int numFloatsPerVertex) { Validate.nonNull(indexMap, "index map"); Validate.positive(numFloatsPerVertex, "number of floats per vertex"); int numFloats = inputBuffer.limit(); assert (numFloats % numFloatsPerVerte...
159658644_0
@RequestMapping("/add") @ResponseBody public ReturnT<String> add(XxlJobInfo jobInfo) { return xxlJobService.add(jobInfo); }
159894918_4
void action(Game2048Layout.Action action) { saveStates(activityContext); game2048ScoreManager.saveScore(getGame2048ScoreManager().calculateScore()); for (int i = 0; i < complexity; i++) { List<Game2048Item> rowList = new ArrayList<>(); for (int j = 0; j < complexity; j++) { int r...
160156999_13
@Override public Uni<HelloReply> sayHello(HelloRequest request) { int count = counter.incrementAndGet(); String name = request.getName(); return Uni.createFrom().item("Hello " + name) .map(res -> HelloReply.newBuilder().setMessage(res).setCount(count).build()); }
160219599_13
public void merge(Range<E> range) { first = min(first, range.getFirst()); last = max(last, range.getLast()); }
160239455_2
PSequence<Holding> asSequence() { return ConsPStack.from( holdings.keySet().stream() .map(symbol -> new Holding(symbol, holdings.get(symbol))) .collect(toList())); }
160260778_2
public Class createModel(CreatorConfig config) throws Exception { this.config = config; buildGraph(); generateAndCompileEvents(); generateAndCompileNodes(); return generateAndCompileSepConfig(); }
160304314_0
public int deleteComment(Predicate<Comment> commentPredicate) throws IOException { List<Comment> comments = issueService.getComments(repoId, issueNumber); int delCount = 0; for (Comment c : comments) { if (logger.isDebugEnabled()) { logger.debug("pre filtered comment {} : {}/{}", c.getUser().getLogin(), c.getI...
160357704_4
public static boolean blockIPInput(RemoteCmdClient client, String ip, int delaySecond) { return doBlockIP(client, Arrays.asList(ip), delaySecond, 0, INPUT); }
160760515_102
public void deleteFavorite(long favoriteId) { Favorite favorite = favoriteRepository.findById(favoriteId).orElse(null); checkUserOperatePermission(favorite); favoriteRepository.delete(favorite); }
160777074_17
boolean needKeep(final PullRequest request, final Buffer message) { for (PullMessageFilter filter : filters) { if (filter.isActive(request, message) && !filter.match(request, message)) { return false; } } return true; }
160877396_0
File download(RunningMode.OSType osType) { String[] binary = getBinary(osType); if (binary == null) { log.info("Can't download binary (no binary found for OS '" + osType + "'."); return null; } return download(binary); }
160931942_7
public JSONObject parseBlockchainInfoResponse(JSONObject response) { JSONObject formattedRates = new JSONObject(); // loop through all returned currencies Iterator<String> iter = response.keys(); while (iter.hasNext()) { String fiatCode = iter.next(); try { JSONObject Receiv...
161138654_31
@Segment(name = "transport", category = "network", library = "kamon") @Override public SagaResponse with(String address, String path, String method, Map<String, Map<String, String>> params) { URIBuilder builder = new URIBuilder().setScheme("http").setHost(address).setPath(path); if (params.containsKey("query")) { ...
161169958_4
@Override public void run() { final PollingTimeslice pollingTimeslice = lastPolledService.getPollingTimeslice(); LOGGER.info("Start polling repository data: {}", pollingTimeslice); pollProcessDefinitions(pollingTimeslice); lastPolledService.updatePollingTimeslice(pollingTimeslice); LOGGER.info("...
161246688_26
public CreditCardGenerator(){ this.type = null; }
161317975_10
public String[] getPrefixes() { return prefixes; }
161378406_0
@Override public void handleRequest(final Http.Request request, final RestliTransportCallback callback) throws Exception { RestRequest restRequest = createRestRequest(request); if (restRequest == null) { callback.onResponse(TransportResponseImpl.success(notFound(request.uri()))); } else { _restliDispatche...
161444854_18
public void delete(final String transactionId) { synchronized (COMMITTED_TRANSACTION_ID_BUFFER) { COMMITTED_TRANSACTION_ID_BUFFER.get(0).add(transactionId); } }
161474325_0
@Timed @RequestMapping(value = "/travel/destination-details/{city}", produces = MediaType.APPLICATION_JSON) String getInfoAboutDestination(@PathVariable final String city) throws Exception { return loader.get(city); }
161493518_8
@Override public @NonNull Config parse(final @Nullable RawConfig config) { Objects.requireNonNull(config); final ProducerConfig producerConfig = producerConfigParser.parse(config.producer, RawProducerConfig::new); final RecordsConfig recordsConfig = recordsConfigParser.parse(config.records, RawRecord...
161629108_8
public void sendMessage(TopicMessage msg, HeaderHelper header){ logger.trace("receive topic message from:{} has Subscribe:{}", NodeUtils.getNodeIdString(msg.getFromNodeId()), msg.hasSubscribe()); if (msg.hasSubscribe()) { logger.trace("announce msg:{} ", msg.getSubscribe().getSub()); if (msg.ge...
161649007_59
public static double chiSquared(final double[] parentClassCounts, final double[][] childrenClassCounts) { checkGainInputs(parentClassCounts, childrenClassCounts); final double[] parentDistribution = ArrayUtilities.normalise(copy(parentClassCounts), true); double sum = 0; for(int i = 0; i < childrenClass...
161651256_6
@Override public long[] getSeekPositions() { if (!videoPlayerAdapter.canSeek()) return new long[0]; return splitIntoThirtySecondsParts(videoPlayerAdapter.getDuration()); }
161652302_0
@Override public ServiceResult<CreateOrderResult> createOrder(CreateOrderParameter createOrderParameter) { //已有数据准备 UserDTO userDTO = createOrderParameter.getUserDTO(); List<OrderDetailDTO> orderDetailDTOList = createOrderParameter.getOrderDetailDTOList(); /* 查询收货人信息 */ AddressDTO addressDTO; ...
161654269_3
public void applyStyle(OdfStyleBase style) throws InvalidNavigationException { // append the specified style to the selection if (validate() == false) { throw new InvalidNavigationException("No matched string at this position"); } OdfElement parentElement = getContainerElement(); int leftLength = getText...
161742535_0
@Override public int compare(byte[] a, byte[] b) { for (int i = 1; i < SIZE_OF_KEY; i++) { int thisByte = 0xFF & a[i]; int thatByte = 0xFF & b[i]; if (thisByte != thatByte) { return (thisByte) - (thatByte); } } return 0; }
161757837_7
public static String getFileNameNoEx(String filename) { if ((filename != null) && (filename.length() > 0)) { int dot = filename.lastIndexOf('.'); if ((dot > -1) && (dot < (filename.length()))) { return filename.substring(0, dot); } } return filename; }
161789930_0
@DataBoundSetter public void setEntryFormat(String entryFormat) { this.entryFormat = entryFormat; }
161790867_0
public SelectionManager( ApplicationMaster am, Configuration conf, StatusManager statusManager, RequestManager requestManager) { this.am = am; this.conf = conf.getLauncherConfig(); this.statusManager = statusManager; this.requestManager = requestManager; }
161804680_8
public boolean shouldContainOwnerName(IbanAccountReference ibanAccountReference, SpiAccountAccess accountAccess) { SpiAdditionalInformationAccess spiAdditionalInformationAccess = accountAccess.getSpiAdditionalInformationAccess(); if (spiAdditionalInformationAccess != null && spiAdditionalInformationAccess.getOw...
161828855_11
@Override public void execute(Context ctx) throws Exception { PuppetResult result; try { result = getResult(ctx); } catch (Exception ex) { // Determine if task should fail gracefully if (ignoreErrors != null && ignoreErrors) { result = new PuppetResult(false, null, ex.g...
161959832_0
@Override public int deleteByPrimaryKey(Integer mId) { return memberInformationMapper.deleteByPrimaryKey(mId); }
161975359_19
public void setWeight(final int weight) { weight = 1; //final 인자는 메서드안에서 변경할 수 없음 }
162030403_1
@Override public boolean isValid(String uuid, ConstraintValidatorContext context) { return pattern.matcher(uuid).matches(); }
162051749_345
private InfoboxTypeMapper() { // no instance }
162158820_2
public static URI toURI(URL url) { if(url==null) return null; URI ret = null; try { ret = url.toURI(); } catch(Exception e) { throw new RuntimeException(e); } return ret; }
162236965_22
@Override public void spanRow(int count, int rowIndex, int colIndex) { if (count <= 0 || count > getRowCount() || rowIndex >= getRowCount() || colIndex >= columnCount) { return; } final SpreadsheetCell cell = rows.get(rowIndex).get(colIndex); final int colSpan = cell.getColumnSpan(); final i...
162272754_69
@PostMapping(value = ENDPOINT) public ResponseEntity registerRenter(@RequestBody Renter renter) { ResponseEntity responseEntity; final HttpResponse httpResponse = adapter.registerRenter(renter); switch (httpResponse.getStatus()) { case CREATED: responseEntity = ResponseEntity ...
162297452_5
public static SimpleCassandraVersion create(String version) { String stripped = SNAPSHOT.matcher(version).replaceFirst(""); Matcher matcher = pattern.matcher(stripped); if (!matcher.matches()) throw new IllegalArgumentException("Invalid version value: " + version); try { int major =...
162325477_17
@Override public Optional<byte[]> handle(final byte[] data) { final String encoded = BaseEncoding.base16().encode(data); final boolean matches = hexRegex.matcher(encoded).matches(); if (matches) { return Optional.of(base16().decode(responseData.toUpperCase())); } else { return Optional....
162388276_15
public static <T> Class<T> ancestorGenericClass(Class<T> clazz) { ParameterizedType genericSuperclass = firstParameterizedType(clazz); Class<T> genericClass = (Class<T>) genericSuperclass.getActualTypeArguments()[0]; return genericClass; }
162389327_6
@PUT @Path("{id}") @Consumes({MediaType.APPLICATION_JSON}) @Transactional(Transactional.TxType.REQUIRES_NEW) public void edit( @PathParam("id") Integer id, FootballPlayer entity) { super.edit(entity); }
162455350_1
@Transformer(inputChannel = Processor.INPUT, outputChannel = Processor.OUTPUT) public Object transform(String message) { System.out.println("transform: " + message); return message.toUpperCase(); }
162538669_4
public static DefaultRequest convertOldProtocolHeaderToRequest(RequestHeader header, DefaultRequest request) { request.setRemoteAppkey(header.getClientAppkey()); request.setClientIp(header.getClientIp()); TransportTraceInfo transportTraceInfo = new TransportTraceInfo(header.getClientAppkey()); transport...
162648398_2
public void setFlowerFactory(FlowerFactory flowerFactory) { this.flowerFactory = flowerFactory; this.serviceInfoRegisterRouter = getServiceRouter("ServiceInfoRegisterService", ServiceInfo.class.getName(), Boolean.class.getName()); this.serviceInfoListRouter = getServiceRouter("ServiceInfoListService",...
162657716_191
public Observable<PlatonBlock> replayBlocksObservable( DefaultBlockParameter startBlock, DefaultBlockParameter endBlock, boolean fullTransactionObjects) { return replayBlocksObservable(startBlock, endBlock, fullTransactionObjects, true); }
162657830_5
public static String repeat(char value, int n) { return new String(new char[n]).replace("\0", String.valueOf(value)); }
162700032_23
@ReactMethod /** * @param timeout value of 0 results in no timeout */ public void sendRequest( String method, String url, final int requestId, ReadableArray headers, ReadableMap data, final String responseType, final boolean useIncrementalUpdates, int timeout, boolean withCredentia...
162806930_1
@Nonnull @MustNotContainNull public static List<String> extractJdepsModuleNames(@Nonnull final String text) { final List<String> result = new ArrayList<>(); for (final String line : text.split("\\n")) { final Matcher lineMatcher = PATTERN_MODULE_LINE.matcher(line); if (lineMatcher.find()) { final Stri...
162897877_8
public void put(final ByteBuffer value, final long id) { if (value.remaining() > maxKeyLength) { throw new IllegalArgumentException("Key too long"); } if (liveEntryCount > entryCountToTriggerRehash) { rehash(true); } final int hashValue = hash.applyAsInt(value); final int...
162913798_8
@Override public Text formatted() { return this.glossary.definitions() .sorted() .map(Definition::text) // @checkstyle BracketsStructure (3 lines) .reduce((formatted, definition) -> new Joined( new TextOf(System.lineSeparator()), formatted, definition ...
162933940_1
public static double average(double[] nums) { if(nums.length == 0) { return 0; } double sum = 0; for(int i = 0; i < nums.length; i++) { sum += nums[i]; } return sum/nums.length; }
163078506_3
public static HKDFKeys hkdf_expand( BytesValue srcNodeId, BytesValue destNodeId, BytesValue srcPrivKey, BytesValue destPubKey, BytesValue idNonce) { BytesValue keyAgreement = deriveECDHKeyAgreement(srcPrivKey, destPubKey); return hkdf_expand(srcNodeId, destNodeId, keyAgreement, idNonce); }
163079637_162
@Description("Returns the current date/time in the UTC time zone modified according to a pattern after applying time zone offset (DST aware).<br/>" + "If modified date time is on weekend and <code>skipWeekends</code> is <code>true</code> then the next working day in direction of modification will be returned" ...
163147839_94
public short getShort(String key, short defaultValue, String description, ItemConstraint constraint) throws NumberFormatException { Objects.requireNonNull(key, "key is null"); ConfigurationItem configItem = configurationItems.get(key); if (configItem == null) { setInt(key, defaultVal...