code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private void commitContexts(boolean accept, boolean all) { Stack<IManagedContext<?>> stack = commitStack; commitStack = new Stack<>(); // First, commit or cancel all pending context changes. for (IManagedContext<?> managedContext : stack) { if (mana...
public class class_name { private void commitContexts(boolean accept, boolean all) { Stack<IManagedContext<?>> stack = commitStack; commitStack = new Stack<>(); // First, commit or cancel all pending context changes. for (IManagedContext<?> managedContext : stack) { if (mana...
public class class_name { public GenomicsDataSource<Read, ReadGroupSet, Reference> get(String rootUrl) { Data<Read, ReadGroupSet, Reference> data = dataSources.get(rootUrl); if (data == null) { data = new Data<Read, ReadGroupSet, Reference>(new Settings(), null); dataSources.put(rootUrl, data); ...
public class class_name { public GenomicsDataSource<Read, ReadGroupSet, Reference> get(String rootUrl) { Data<Read, ReadGroupSet, Reference> data = dataSources.get(rootUrl); if (data == null) { data = new Data<Read, ReadGroupSet, Reference>(new Settings(), null); // depends on control dependency: [if], d...
public class class_name { @Override public void signal(String signalName, Object signalData) { if (getActivity() == null) { throw new PvmException("cannot signal execution " + this.id + ": it has no current activity"); } SignallableActivityBehavior activityBehavior = (SignallableActivityBehavior) ...
public class class_name { @Override public void signal(String signalName, Object signalData) { if (getActivity() == null) { throw new PvmException("cannot signal execution " + this.id + ": it has no current activity"); } SignallableActivityBehavior activityBehavior = (SignallableActivityBehavior) ...
public class class_name { public void login(String userName, String password, String projectName) { HttpSession session = null; m_loginException = null; try { // login the user and create a new session CmsUser user = getCmsObject().readUser(userName); OpenC...
public class class_name { public void login(String userName, String password, String projectName) { HttpSession session = null; m_loginException = null; try { // login the user and create a new session CmsUser user = getCmsObject().readUser(userName); OpenC...
public class class_name { private void checkKeyVisibilityConvention(Node key, Node parent) { JSDocInfo info = key.getJSDocInfo(); if (info == null) { return; } if (!isPrivateByConvention(key.getString())) { return; } Node assign = parent.getParent(); if (assign == null || !assig...
public class class_name { private void checkKeyVisibilityConvention(Node key, Node parent) { JSDocInfo info = key.getJSDocInfo(); if (info == null) { return; // depends on control dependency: [if], data = [none] } if (!isPrivateByConvention(key.getString())) { return; // depends on control ...
public class class_name { @POST @Path("{guid}") @Consumes({Servlets.JSON_MEDIA_TYPE, MediaType.APPLICATION_JSON}) @Produces(Servlets.JSON_MEDIA_TYPE) public Response updateEntityByGuid(@PathParam("guid") String guid, @QueryParam("property") String attribute, @Cont...
public class class_name { @POST @Path("{guid}") @Consumes({Servlets.JSON_MEDIA_TYPE, MediaType.APPLICATION_JSON}) @Produces(Servlets.JSON_MEDIA_TYPE) public Response updateEntityByGuid(@PathParam("guid") String guid, @QueryParam("property") String attribute, @Cont...
public class class_name { public long getLong(String name, long defaultValue) { try { String value = getString(name, null); if (!StringUtils.isNullOrEmpty(value)) { return Long.parseLong(value.trim()); } } catch (NumberFormatException e) { ...
public class class_name { public long getLong(String name, long defaultValue) { try { String value = getString(name, null); if (!StringUtils.isNullOrEmpty(value)) { return Long.parseLong(value.trim()); // depends on control dependency: [if], data = [none] } ...
public class class_name { public Collection<String> predictSeveral(@NonNull LabelledDocument document, int limit) { if (document.getReferencedContent() != null) { return predictSeveral(document.getReferencedContent(), limit); } else return predictSeveral(document.getContent(), l...
public class class_name { public Collection<String> predictSeveral(@NonNull LabelledDocument document, int limit) { if (document.getReferencedContent() != null) { return predictSeveral(document.getReferencedContent(), limit); // depends on control dependency: [if], data = [(document.getReferencedCo...
public class class_name { public static String resolveIpAddress(final String hostname) { try { InetAddress netAddress; if (hostname == null || hostname.equalsIgnoreCase(LOCAL_HOST)) { netAddress = InetAddress.getLocalHost(); } else { netAddress = Inet4Address.getByName(hostname); } return net...
public class class_name { public static String resolveIpAddress(final String hostname) { try { InetAddress netAddress; if (hostname == null || hostname.equalsIgnoreCase(LOCAL_HOST)) { netAddress = InetAddress.getLocalHost(); // depends on control dependency: [if], data = [none] } else { netAddress ...
public class class_name { public void executeDirectly(String jobId) { final CmsScheduledJobInfo jobInfo = (CmsScheduledJobInfo)getJob(jobId).clone(); if (jobInfo == null) { LOG.error(Messages.get().getBundle().key(Messages.LOG_INVALID_JOB_1, "null")); return; } ...
public class class_name { public void executeDirectly(String jobId) { final CmsScheduledJobInfo jobInfo = (CmsScheduledJobInfo)getJob(jobId).clone(); if (jobInfo == null) { LOG.error(Messages.get().getBundle().key(Messages.LOG_INVALID_JOB_1, "null")); // depends on control dependency: [if]...
public class class_name { public OrderableDBInstanceOption withAvailableProcessorFeatures(AvailableProcessorFeature... availableProcessorFeatures) { if (this.availableProcessorFeatures == null) { setAvailableProcessorFeatures(new com.amazonaws.internal.SdkInternalList<AvailableProcessorFeature>(ava...
public class class_name { public OrderableDBInstanceOption withAvailableProcessorFeatures(AvailableProcessorFeature... availableProcessorFeatures) { if (this.availableProcessorFeatures == null) { setAvailableProcessorFeatures(new com.amazonaws.internal.SdkInternalList<AvailableProcessorFeature>(ava...
public class class_name { public static PartitionReader createReader(Settings settings, PartitionDefinition partition, Log log) { if (!SettingsUtils.hasPinnedNode(settings) && partition.getLocations().length > 0) { String pinAddress = checkLocality(partition.getLocations(), log); if (pi...
public class class_name { public static PartitionReader createReader(Settings settings, PartitionDefinition partition, Log log) { if (!SettingsUtils.hasPinnedNode(settings) && partition.getLocations().length > 0) { String pinAddress = checkLocality(partition.getLocations(), log); if (pi...
public class class_name { public static <K,V> Map<K,V> minus(Map<K,V> self, Map removeMe) { final Map<K,V> ansMap = createSimilarMap(self); ansMap.putAll(self); if (removeMe != null && removeMe.size() > 0) { for (Map.Entry<K, V> e1 : self.entrySet()) { for (Object e2...
public class class_name { public static <K,V> Map<K,V> minus(Map<K,V> self, Map removeMe) { final Map<K,V> ansMap = createSimilarMap(self); ansMap.putAll(self); if (removeMe != null && removeMe.size() > 0) { for (Map.Entry<K, V> e1 : self.entrySet()) { for (Object e2...
public class class_name { public int filterObject(CaptureSearchResult r) { String httpCode = r.getHttpCode(); // only filter real 3XX http response codes: if(httpCode.startsWith("3")) { String redirect = r.getRedirectUrl(); if(redirect.compareTo("-") != 0) { String urlKey = r.getUrlKey(); try { ...
public class class_name { public int filterObject(CaptureSearchResult r) { String httpCode = r.getHttpCode(); // only filter real 3XX http response codes: if(httpCode.startsWith("3")) { String redirect = r.getRedirectUrl(); if(redirect.compareTo("-") != 0) { String urlKey = r.getUrlKey(); try { ...
public class class_name { @Override protected void readRow(int uniqueID, byte[] data) { if (data[0] != (byte) 0xFF) { Map<String, Object> map = new HashMap<String, Object>(); map.put("UNIQUE_ID", Integer.valueOf(uniqueID)); map.put("TASK_ID_1", Integer.valueOf(PEPUtility.getSh...
public class class_name { @Override protected void readRow(int uniqueID, byte[] data) { if (data[0] != (byte) 0xFF) { Map<String, Object> map = new HashMap<String, Object>(); map.put("UNIQUE_ID", Integer.valueOf(uniqueID)); // depends on control dependency: [if], data = [none] ...
public class class_name { void unlockBucketsRead(long i1, long i2) { int bucket1LockIdx = getBucketLock(i1); int bucket2LockIdx = getBucketLock(i2); // always unlock segments in same order to avoid deadlocks if (bucket1LockIdx == bucket2LockIdx) { lockAry[bucket1LockIdx].tryUnlockRead(); return; ...
public class class_name { void unlockBucketsRead(long i1, long i2) { int bucket1LockIdx = getBucketLock(i1); int bucket2LockIdx = getBucketLock(i2); // always unlock segments in same order to avoid deadlocks if (bucket1LockIdx == bucket2LockIdx) { lockAry[bucket1LockIdx].tryUnlockRead(); // depends on...
public class class_name { public long getSoFar(final int downloadId) { BaseDownloadTask.IRunningTask task = FileDownloadList.getImpl().get(downloadId); if (task == null) { return FileDownloadServiceProxy.getImpl().getSofar(downloadId); } return task.getOrigin().getLargeFile...
public class class_name { public long getSoFar(final int downloadId) { BaseDownloadTask.IRunningTask task = FileDownloadList.getImpl().get(downloadId); if (task == null) { return FileDownloadServiceProxy.getImpl().getSofar(downloadId); // depends on control dependency: [if], data = [none] ...
public class class_name { private void updateGAdsParams() { BRANCH_API_VERSION version = getBranchRemoteAPIVersion(); int LATVal = DeviceInfo.getInstance().getSystemObserver().getLATVal(); String gaid = DeviceInfo.getInstance().getSystemObserver().getGAID(); if (!TextUtils.isEmpty(gaid)...
public class class_name { private void updateGAdsParams() { BRANCH_API_VERSION version = getBranchRemoteAPIVersion(); int LATVal = DeviceInfo.getInstance().getSystemObserver().getLATVal(); String gaid = DeviceInfo.getInstance().getSystemObserver().getGAID(); if (!TextUtils.isEmpty(gaid)...
public class class_name { @Deprecated public static String getServerAddress(Configuration conf, String oldBindAddressName, String oldPortName, String newBindAddressName) { String oldAddr = conf.get(oldBindAddressName); int oldPort = conf.getInt(oldPortName, 0); String newAddrPort = conf...
public class class_name { @Deprecated public static String getServerAddress(Configuration conf, String oldBindAddressName, String oldPortName, String newBindAddressName) { String oldAddr = conf.get(oldBindAddressName); int oldPort = conf.getInt(oldPortName, 0); String newAddrPort = conf...
public class class_name { public final List<FieldTextInfo> createFieldInfos(@NotNull final Class<?> clasz, @NotNull final Locale locale, @NotNull final Class<? extends Annotation> annotationClasz) { Contract.requireArgNotNull("clasz", clasz); Contract.requireArgNotNull("locale", locale...
public class class_name { public final List<FieldTextInfo> createFieldInfos(@NotNull final Class<?> clasz, @NotNull final Locale locale, @NotNull final Class<? extends Annotation> annotationClasz) { Contract.requireArgNotNull("clasz", clasz); Contract.requireArgNotNull("locale", locale...
public class class_name { public EnumSet<Block.VerifyFlag> getBlockVerificationFlags(final Block block, final VersionTally tally, final Integer height) { final EnumSet<Block.VerifyFlag> flags = EnumSet.noneOf(Block.VerifyFlag.class); if (block.isBIP34()) { final Integer count =...
public class class_name { public EnumSet<Block.VerifyFlag> getBlockVerificationFlags(final Block block, final VersionTally tally, final Integer height) { final EnumSet<Block.VerifyFlag> flags = EnumSet.noneOf(Block.VerifyFlag.class); if (block.isBIP34()) { final Integer count =...
public class class_name { public String getVocab(MixinSource mixinSource, Object bean, Class<?> mixInClass) { if (proxyUnwrapper != null) { bean = proxyUnwrapper.unwrapProxy(bean); } // determine vocab in context String classVocab = bean == null ? null : vocabFromClassOrPac...
public class class_name { public String getVocab(MixinSource mixinSource, Object bean, Class<?> mixInClass) { if (proxyUnwrapper != null) { bean = proxyUnwrapper.unwrapProxy(bean); // depends on control dependency: [if], data = [none] } // determine vocab in context String ...
public class class_name { public void run(Runnable runnable) { if (this.goForward()) { for (int i = this.from; i <= this.to; i += this.step) { runnable.run(); } } else { for (int i = this.from; i >= this.to; i +...
public class class_name { public void run(Runnable runnable) { if (this.goForward()) { for (int i = this.from; i <= this.to; i += this.step) { runnable.run(); // depends on control dependency: [for], data = [none] } } else ...
public class class_name { @Override public final void process(final Class<?> entityClass, EntityMetadata metadata) { Cacheable cacheable = (Cacheable) entityClass.getAnnotation(Cacheable.class); if (null != cacheable) { metadata.setCacheable(cacheable.value()); ...
public class class_name { @Override public final void process(final Class<?> entityClass, EntityMetadata metadata) { Cacheable cacheable = (Cacheable) entityClass.getAnnotation(Cacheable.class); if (null != cacheable) { metadata.setCacheable(cacheable.value()); //...
public class class_name { public boolean free(T obj) { int top = _top.get(); if (top < _freeStack.length()) { boolean isFree = _freeStack.compareAndSet(top, null, obj); _top.compareAndSet(top, top + 1); return isFree; } else return ...
public class class_name { public boolean free(T obj) { int top = _top.get(); if (top < _freeStack.length()) { boolean isFree = _freeStack.compareAndSet(top, null, obj); _top.compareAndSet(top, top + 1); // depends on control dependency: [if], data = [(top] ret...
public class class_name { private static double similarity(BufferedImage var, BufferedImage cont) { double[] varArr = new double[var.getWidth()*var.getHeight()*3]; double[] contArr = new double[cont.getWidth()*cont.getHeight()*3]; if (varArr.length!=contArr.length) throw new IllegalStateException("The p...
public class class_name { private static double similarity(BufferedImage var, BufferedImage cont) { double[] varArr = new double[var.getWidth()*var.getHeight()*3]; double[] contArr = new double[cont.getWidth()*cont.getHeight()*3]; if (varArr.length!=contArr.length) throw new IllegalStateException("The p...
public class class_name { private boolean addChineseIndexCharacters() { UnicodeSet contractions = new UnicodeSet(); try { collatorPrimaryOnly.internalAddContractions(BASE.charAt(0), contractions); } catch (Exception e) { return false; } if (contractions.i...
public class class_name { private boolean addChineseIndexCharacters() { UnicodeSet contractions = new UnicodeSet(); try { collatorPrimaryOnly.internalAddContractions(BASE.charAt(0), contractions); // depends on control dependency: [try], data = [none] } catch (Exception e) { ...
public class class_name { private void injectInto(final Object target, final boolean oneMatch) throws AssertionError { boolean success = false; for (final Field field : this.collectFieldCandidates(target)) { if (this.isMatching(field)) { Object val = getValue(field); ...
public class class_name { private void injectInto(final Object target, final boolean oneMatch) throws AssertionError { boolean success = false; for (final Field field : this.collectFieldCandidates(target)) { if (this.isMatching(field)) { Object val = getValue(field); ...
public class class_name { protected double kNNDistance() { double result = getEntry(0).getKnnDistance(); for(int i = 1; i < getNumEntries(); i++) { double knnDistance = getEntry(i).getKnnDistance(); result = (result < knnDistance) ? knnDistance : result; } return result; } }
public class class_name { protected double kNNDistance() { double result = getEntry(0).getKnnDistance(); for(int i = 1; i < getNumEntries(); i++) { double knnDistance = getEntry(i).getKnnDistance(); result = (result < knnDistance) ? knnDistance : result; // depends on control dependency: [for], dat...
public class class_name { public java.util.List<VolumeConfiguration> getVolumeConfigurations() { if (volumeConfigurations == null) { volumeConfigurations = new com.amazonaws.internal.SdkInternalList<VolumeConfiguration>(); } return volumeConfigurations; } }
public class class_name { public java.util.List<VolumeConfiguration> getVolumeConfigurations() { if (volumeConfigurations == null) { volumeConfigurations = new com.amazonaws.internal.SdkInternalList<VolumeConfiguration>(); // depends on control dependency: [if], data = [none] } retu...
public class class_name { public void remove(final Long pipelineId) { Assert.assertNotNull(pipelineId); transactionTemplate.execute(new TransactionCallbackWithoutResult() { @Override protected void doInTransactionWithoutResult(TransactionStatus status) { try { ...
public class class_name { public void remove(final Long pipelineId) { Assert.assertNotNull(pipelineId); transactionTemplate.execute(new TransactionCallbackWithoutResult() { @Override protected void doInTransactionWithoutResult(TransactionStatus status) { try { ...
public class class_name { public void marshall(TimerFiredEventAttributes timerFiredEventAttributes, ProtocolMarshaller protocolMarshaller) { if (timerFiredEventAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(TimerFiredEventAttributes timerFiredEventAttributes, ProtocolMarshaller protocolMarshaller) { if (timerFiredEventAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public static <T> Qualifier<T> byAnnotation(AnnotationMetadata metadata, Class<? extends Annotation> type) { if (Type.class == type) { Optional<Class> aClass = metadata.classValue(type); if (aClass.isPresent()) { return byType(aClass.get()); ...
public class class_name { public static <T> Qualifier<T> byAnnotation(AnnotationMetadata metadata, Class<? extends Annotation> type) { if (Type.class == type) { Optional<Class> aClass = metadata.classValue(type); if (aClass.isPresent()) { return byType(aClass.get()); // ...
public class class_name { public final void assignmentOperator() throws RecognitionException { int assignmentOperator_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 109) ) { return; } // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1123:5: ( '...
public class class_name { public final void assignmentOperator() throws RecognitionException { int assignmentOperator_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 109) ) { return; } // depends on control dependency: [if], data = [none] // src/main/resources/org/dr...
public class class_name { @SuppressWarnings({"unchecked", "rawtypes"}) private static int countRunAndMakeAscending(Object[] a, int lo, int hi) { assert lo < hi; int runHi = lo + 1; if (runHi == hi) return 1; // Find end of run, and reverse range if descending if...
public class class_name { @SuppressWarnings({"unchecked", "rawtypes"}) private static int countRunAndMakeAscending(Object[] a, int lo, int hi) { assert lo < hi; int runHi = lo + 1; if (runHi == hi) return 1; // Find end of run, and reverse range if descending if...
public class class_name { long purge(final int sampleSize) { final int limit = Math.min(sampleSize, getNumActive()); int numSamples = 0; int i = 0; final long[] samples = new long[limit]; while (numSamples < limit) { if (isActive(i)) { samples[numSamples] = values[i]; numSam...
public class class_name { long purge(final int sampleSize) { final int limit = Math.min(sampleSize, getNumActive()); int numSamples = 0; int i = 0; final long[] samples = new long[limit]; while (numSamples < limit) { if (isActive(i)) { samples[numSamples] = values[i]; // depends on ...
public class class_name { private boolean hasToShowNotice(String versionDownloadable) { SharedPreferences prefs = mActivity.getSharedPreferences(PREFS_FILENAME, 0); String prefKey = SUCCESSFUL_CHEKS_PREF_KEY + versionDownloadable; int mChecksMade = prefs.getInt(prefKey, 0); if (mChecksM...
public class class_name { private boolean hasToShowNotice(String versionDownloadable) { SharedPreferences prefs = mActivity.getSharedPreferences(PREFS_FILENAME, 0); String prefKey = SUCCESSFUL_CHEKS_PREF_KEY + versionDownloadable; int mChecksMade = prefs.getInt(prefKey, 0); if (mChecksM...
public class class_name { public static int getSymmetryOrder(Map<Integer, Integer> alignment, Map<Integer,Integer> identity, final int maxSymmetry, final float minimumMetricChange) { List<Integer> preimage = new ArrayList<Integer>(alignment.keySet()); // currently unmodified List<Integer> image = new A...
public class class_name { public static int getSymmetryOrder(Map<Integer, Integer> alignment, Map<Integer,Integer> identity, final int maxSymmetry, final float minimumMetricChange) { List<Integer> preimage = new ArrayList<Integer>(alignment.keySet()); // currently unmodified List<Integer> image = new A...
public class class_name { public <T> T getValue(Class<T> type) { Params.notNull(type, "Value type"); if(value == null) { return null; } return converter.asObject(value, type); } }
public class class_name { public <T> T getValue(Class<T> type) { Params.notNull(type, "Value type"); if(value == null) { return null; // depends on control dependency: [if], data = [none] } return converter.asObject(value, type); } }
public class class_name { @Pure @Inline("((($1) == null) ? null : ($1).getName())") public static String largeBasename(File filename) { if (filename == null) { return null; } return filename.getName(); } }
public class class_name { @Pure @Inline("((($1) == null) ? null : ($1).getName())") public static String largeBasename(File filename) { if (filename == null) { return null; // depends on control dependency: [if], data = [none] } return filename.getName(); } }
public class class_name { public static List<String> linesFromFile(String filename,String encoding) { try { List<String> lines = new ArrayList<String>(); BufferedReader in = new BufferedReader(new EncodingFileReader(filename,encoding)); String line; while ((line = in.readLine()) != nul...
public class class_name { public static List<String> linesFromFile(String filename,String encoding) { try { List<String> lines = new ArrayList<String>(); BufferedReader in = new BufferedReader(new EncodingFileReader(filename,encoding)); String line; while ((line = in.readLine()) != nul...
public class class_name { private static boolean printResult(final ArrayList<KeyValue> row, final byte[] family, final boolean formard) { if (null == row || row.isEmpty()) { return false; } final byte[] key = row.get(0).key(); ...
public class class_name { private static boolean printResult(final ArrayList<KeyValue> row, final byte[] family, final boolean formard) { if (null == row || row.isEmpty()) { return false; // depends on control dependency: [if], data = ...
public class class_name { public Collection<String> getInstalledFeatureNames() { if (installAssets == null) return null; Collection<String> installed = new ArrayList<String>(); for (List<InstallAsset> iaList : installAssets) { for (InstallAsset asset : iaList) { ...
public class class_name { public Collection<String> getInstalledFeatureNames() { if (installAssets == null) return null; Collection<String> installed = new ArrayList<String>(); for (List<InstallAsset> iaList : installAssets) { for (InstallAsset asset : iaList) { ...
public class class_name { private synchronized boolean expungeStaleEntries() { if (this.size == 0) return false; Object r; boolean result = false; while ( (r = queue.poll()) != null) { result = true; SingleEntry e = (SingleEntry)r; ...
public class class_name { private synchronized boolean expungeStaleEntries() { if (this.size == 0) return false; Object r; boolean result = false; while ( (r = queue.poll()) != null) { result = true; // depends on control dependency: [while], data = [none...
public class class_name { public DescribeRulesRequest withRuleArns(String... ruleArns) { if (this.ruleArns == null) { setRuleArns(new java.util.ArrayList<String>(ruleArns.length)); } for (String ele : ruleArns) { this.ruleArns.add(ele); } return this; ...
public class class_name { public DescribeRulesRequest withRuleArns(String... ruleArns) { if (this.ruleArns == null) { setRuleArns(new java.util.ArrayList<String>(ruleArns.length)); // depends on control dependency: [if], data = [none] } for (String ele : ruleArns) { this...
public class class_name { public ArrayList<String> parseColumnNames() { ArrayList<String> columns = new ArrayList<String>(); Token token = scanToken(); if (token == Token.LPAREN) { do { columns.add(parseIdentifier()); token = scanToken(); } while (token == Token.COMMA); ...
public class class_name { public ArrayList<String> parseColumnNames() { ArrayList<String> columns = new ArrayList<String>(); Token token = scanToken(); if (token == Token.LPAREN) { do { columns.add(parseIdentifier()); token = scanToken(); } while (token == Token.COMMA); ...
public class class_name { protected void completeSarlCapacities(boolean allowCapacityType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Capacity.class, allowCapacityType, context, TypesPackage.Literals....
public class class_name { protected void completeSarlCapacities(boolean allowCapacityType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Capacity.class, allowCapacityType, context, TypesPackage.Literals....
public class class_name { public final <T extends AItemSpecifics<?, ?>> List<T> retrieveItemSpecificsList(final Map<String, Object> pRqVs, final TradingSettings pTs, final Long pItemId, final Class<T> pItemSpecCl, final String pItemSn) throws Exception { //HTML templates full pRqVs.put(pItemS...
public class class_name { public final <T extends AItemSpecifics<?, ?>> List<T> retrieveItemSpecificsList(final Map<String, Object> pRqVs, final TradingSettings pTs, final Long pItemId, final Class<T> pItemSpecCl, final String pItemSn) throws Exception { //HTML templates full pRqVs.put(pItemS...
public class class_name { public java.util.List<ServiceRegistry> getServiceRegistries() { if (serviceRegistries == null) { serviceRegistries = new com.amazonaws.internal.SdkInternalList<ServiceRegistry>(); } return serviceRegistries; } }
public class class_name { public java.util.List<ServiceRegistry> getServiceRegistries() { if (serviceRegistries == null) { serviceRegistries = new com.amazonaws.internal.SdkInternalList<ServiceRegistry>(); // depends on control dependency: [if], data = [none] } return serviceRegistr...
public class class_name { private ZonedDateTime resolveOffset(ZoneOffset offset) { if (offset.equals(this.offset) == false && zone.getRules().isValidOffset(dateTime, offset)) { return new ZonedDateTime(dateTime, offset, zone); } return this; } }
public class class_name { private ZonedDateTime resolveOffset(ZoneOffset offset) { if (offset.equals(this.offset) == false && zone.getRules().isValidOffset(dateTime, offset)) { return new ZonedDateTime(dateTime, offset, zone); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void onCompleteHandler(StreamElementQueueEntry<?> streamElementQueueEntry) throws InterruptedException { lock.lockInterruptibly(); try { if (firstSet.remove(streamElementQueueEntry)) { completedQueue.offer(streamElementQueueEntry); while (firstSet.isEmpty() && firstSet...
public class class_name { public void onCompleteHandler(StreamElementQueueEntry<?> streamElementQueueEntry) throws InterruptedException { lock.lockInterruptibly(); try { if (firstSet.remove(streamElementQueueEntry)) { completedQueue.offer(streamElementQueueEntry); // depends on control dependency: [if], da...
public class class_name { public Map<String, CmsJspContentAccessBean> getReadXml() { if (m_xmlContent == null) { // create lazy map only on demand m_xmlContent = CmsCollectionsGenericWrapper.createLazyMap(new CmsXmlContentAccessTransformer()); } return m_xmlContent; ...
public class class_name { public Map<String, CmsJspContentAccessBean> getReadXml() { if (m_xmlContent == null) { // create lazy map only on demand m_xmlContent = CmsCollectionsGenericWrapper.createLazyMap(new CmsXmlContentAccessTransformer()); // depends on control dependency: [if], da...
public class class_name { public void addSection(String pstrSection, String pstrComments) { INISection objSec = null; objSec = (INISection) this.mhmapSections.get(pstrSection); if (objSec == null) { objSec = new INISection(pstrSection); this.mhmapS...
public class class_name { public void addSection(String pstrSection, String pstrComments) { INISection objSec = null; objSec = (INISection) this.mhmapSections.get(pstrSection); if (objSec == null) { objSec = new INISection(pstrSection); // depends on control d...
public class class_name { public static <E extends Enum<E>> LinkedHashMap<String, E> getEnumMap(final Class<E> enumClass) { final LinkedHashMap<String, E> map = new LinkedHashMap<String, E>(); for (final E e : enumClass.getEnumConstants()) { map.put(e.name(), e); } return map; } }
public class class_name { public static <E extends Enum<E>> LinkedHashMap<String, E> getEnumMap(final Class<E> enumClass) { final LinkedHashMap<String, E> map = new LinkedHashMap<String, E>(); for (final E e : enumClass.getEnumConstants()) { map.put(e.name(), e); // depends on control dependency: [for], dat...
public class class_name { public @NotNull FloatAssert isNotEqualTo(float other) { if (compareTo(other) != 0) { return this; } failIfCustomMessageIsSet(); throw failure(unexpectedEqual(actual, other)); } }
public class class_name { public @NotNull FloatAssert isNotEqualTo(float other) { if (compareTo(other) != 0) { return this; // depends on control dependency: [if], data = [none] } failIfCustomMessageIsSet(); throw failure(unexpectedEqual(actual, other)); } }
public class class_name { public EClass getGSMT() { if (gsmtEClass == null) { gsmtEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(481); } return gsmtEClass; } }
public class class_name { public EClass getGSMT() { if (gsmtEClass == null) { gsmtEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(481); // depends on control dependency: [if], data = [none] } return gsmtEClass; } }
public class class_name { public void abortPendingCheckpoints(CheckpointException exception) { synchronized (lock) { for (PendingCheckpoint p : pendingCheckpoints.values()) { p.abort(exception.getCheckpointFailureReason()); } pendingCheckpoints.clear(); } } }
public class class_name { public void abortPendingCheckpoints(CheckpointException exception) { synchronized (lock) { for (PendingCheckpoint p : pendingCheckpoints.values()) { p.abort(exception.getCheckpointFailureReason()); // depends on control dependency: [for], data = [p] } pendingCheckpoints.clear(...
public class class_name { protected void parseSql() { String sql = tokenizer.getToken(); Node node = peek(); if ((node instanceof IfNode || node instanceof ElseNode) && node.getChildSize() == 0) { SqlTokenizer st = new SqlTokenizerImpl(sql); st.skipWhitespace(); String token = st.skipToken(); st.ski...
public class class_name { protected void parseSql() { String sql = tokenizer.getToken(); Node node = peek(); if ((node instanceof IfNode || node instanceof ElseNode) && node.getChildSize() == 0) { SqlTokenizer st = new SqlTokenizerImpl(sql); st.skipWhitespace(); // depends on control dependency: [if], dat...
public class class_name { Set<Locale> getAllImplementationBoundLocales() { Set<Locale> res = new HashSet<Locale>(); for (C10NImplementationBinder<?> binder : binders.values()) { res.addAll(binder.bindings.keySet()); } return res; } }
public class class_name { Set<Locale> getAllImplementationBoundLocales() { Set<Locale> res = new HashSet<Locale>(); for (C10NImplementationBinder<?> binder : binders.values()) { res.addAll(binder.bindings.keySet()); // depends on control dependency: [for], data = [binder] } ...
public class class_name { @Nonnegative static int _decode4to3 (@Nonnull final byte [] source, final int srcOffset, @Nonnull final byte [] destination, final int destOffset, final int options) { // Lots of er...
public class class_name { @Nonnegative static int _decode4to3 (@Nonnull final byte [] source, final int srcOffset, @Nonnull final byte [] destination, final int destOffset, final int options) { // Lots of er...
public class class_name { public void clearCache() { ZipFile zipFile = _zipFileRef.getAndSet(null); if (zipFile != null) try { zipFile.close(); } catch (Exception e) { } } }
public class class_name { public void clearCache() { ZipFile zipFile = _zipFileRef.getAndSet(null); if (zipFile != null) try { zipFile.close(); // depends on control dependency: [try], data = [none] } catch (Exception e) { } // depends on control dependency: [catch], data = [none] ...
public class class_name { public void buildConstructorComments(XMLNode node, Content constructorDocTree) { if (!configuration.nocomment) { writer.addComments(currentConstructor, constructorDocTree); } } }
public class class_name { public void buildConstructorComments(XMLNode node, Content constructorDocTree) { if (!configuration.nocomment) { writer.addComments(currentConstructor, constructorDocTree); // depends on control dependency: [if], data = [none] } } }
public class class_name { public IStorageProvider build() { if ( appInfoRepo == null ) { throw new IllegalStateException( "Undefined application information repository" ); } if ( userCredentialsRepo == null ) { throw new IllegalStateException( "Undefined user credent...
public class class_name { public IStorageProvider build() { if ( appInfoRepo == null ) { throw new IllegalStateException( "Undefined application information repository" ); } if ( userCredentialsRepo == null ) { throw new IllegalStateException( "Undefined user credent...
public class class_name { public static MapReference decode(final Datastore datastore, final Mapper mapper, final MappedField mappedField, final DBObject dbObject) { final Class subType = mappedField.getTypeParameters().get(0).getSubClass(); final Map<String, Obje...
public class class_name { public static MapReference decode(final Datastore datastore, final Mapper mapper, final MappedField mappedField, final DBObject dbObject) { final Class subType = mappedField.getTypeParameters().get(0).getSubClass(); final Map<String, Obje...
public class class_name { private Set<JmxTreeNode> getMatchingChildren(String nameFilter, ObjectNode objectNode) { AttributesNode attributesNode = null; OperationsNode operationsNode = null; NotificationsNode notificationsNode = null; Set<JmxTreeNode> objectChildren = new TreeSet<JmxTre...
public class class_name { private Set<JmxTreeNode> getMatchingChildren(String nameFilter, ObjectNode objectNode) { AttributesNode attributesNode = null; OperationsNode operationsNode = null; NotificationsNode notificationsNode = null; Set<JmxTreeNode> objectChildren = new TreeSet<JmxTre...
public class class_name { @SuppressWarnings("unchecked") public <T> T[] toArray(Set<T> set) { if (set == null) { return null; } return (T[]) set.toArray(new Object[set.size()]); } }
public class class_name { @SuppressWarnings("unchecked") public <T> T[] toArray(Set<T> set) { if (set == null) { return null; // depends on control dependency: [if], data = [none] } return (T[]) set.toArray(new Object[set.size()]); } }
public class class_name { public static List<ParameterSpace> getUniqueObjects(List<ParameterSpace> allLeaves) { List<ParameterSpace> unique = new ArrayList<>(); for (ParameterSpace p : allLeaves) { //This isn't especially efficient, but small number of parameters in general means it's fine ...
public class class_name { public static List<ParameterSpace> getUniqueObjects(List<ParameterSpace> allLeaves) { List<ParameterSpace> unique = new ArrayList<>(); for (ParameterSpace p : allLeaves) { //This isn't especially efficient, but small number of parameters in general means it's fine ...
public class class_name { @Override public Hashtable<String, Object> getDataAsHashtable() { logger.entering(); Hashtable<String, Object> hashTable = new Hashtable<>(); Sheet sheet = excelReader.fetchSheet(resource.getCls().getSimpleName()); int numRows = sheet.getPhysicalNumberOfRo...
public class class_name { @Override public Hashtable<String, Object> getDataAsHashtable() { logger.entering(); Hashtable<String, Object> hashTable = new Hashtable<>(); Sheet sheet = excelReader.fetchSheet(resource.getCls().getSimpleName()); int numRows = sheet.getPhysicalNumberOfRo...
public class class_name { public void marshall(SqlApplicationConfiguration sqlApplicationConfiguration, ProtocolMarshaller protocolMarshaller) { if (sqlApplicationConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(SqlApplicationConfiguration sqlApplicationConfiguration, ProtocolMarshaller protocolMarshaller) { if (sqlApplicationConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @Override public String getScheme() { try { collaborator.preInvoke(componentMetaData); return request.getScheme(); } finally { collaborator.postInvoke(); } } }
public class class_name { @Override public String getScheme() { try { collaborator.preInvoke(componentMetaData); // depends on control dependency: [try], data = [none] return request.getScheme(); // depends on control dependency: [try], data = [none] } finally { ...
public class class_name { public boolean isDataValid() { boolean valid = false; for (Object value : values.values()) { if (value instanceof String) { String tt = (String) value; if (Strings.isNotBlank(tt)) { valid = true; break; } } else { if (nul...
public class class_name { public boolean isDataValid() { boolean valid = false; for (Object value : values.values()) { if (value instanceof String) { String tt = (String) value; if (Strings.isNotBlank(tt)) { valid = true; // depends on control dependency: [if], data = [none] ...
public class class_name { private static String getExtension(String fileName) { // play it safe and get rid of any fragment id // that might be there int length = fileName.length(); int newEnd = fileName.lastIndexOf('#'); if (newEnd == -1) { newEnd = length; ...
public class class_name { private static String getExtension(String fileName) { // play it safe and get rid of any fragment id // that might be there int length = fileName.length(); int newEnd = fileName.lastIndexOf('#'); if (newEnd == -1) { newEnd = length; // depe...
public class class_name { public List<Object> getTaskFieldValues(ProjectProperties properties, FieldType field, byte[] data) { if (field == null || data == null || data.length == 0) { return null; } List<Object> list = new LinkedList<Object>(); int offset = 0; switch (...
public class class_name { public List<Object> getTaskFieldValues(ProjectProperties properties, FieldType field, byte[] data) { if (field == null || data == null || data.length == 0) { return null; // depends on control dependency: [if], data = [none] } List<Object> list = new Linke...
public class class_name { @Deprecated private boolean hasServiceEndpoint(String endpoint) { for(Service s : services.values()) { if (s.getEndpoints().containsKey(endpoint)) { return true; } } return false; } }
public class class_name { @Deprecated private boolean hasServiceEndpoint(String endpoint) { for(Service s : services.values()) { if (s.getEndpoints().containsKey(endpoint)) { return true; // depends on control dependency: [if], data = [none] } } retur...
public class class_name { public void interpret( Specification table ) { Example row = table.nextExample(); Example reject = row.firstChild(); Action action = Action.parse( actionCells(row) ); Example first = CollectionUtil.first(keywordCells(row)); try { ...
public class class_name { public void interpret( Specification table ) { Example row = table.nextExample(); Example reject = row.firstChild(); Action action = Action.parse( actionCells(row) ); Example first = CollectionUtil.first(keywordCells(row)); try { ...
public class class_name { protected void registerSourceRoots() { if ( sourceRoot != null ) { getLog().info( "Registering compile source root " + sourceRoot ); project.addCompileSourceRoot( sourceRoot.toString() ); } if ( testSourceRoot != null ) { ...
public class class_name { protected void registerSourceRoots() { if ( sourceRoot != null ) { getLog().info( "Registering compile source root " + sourceRoot ); // depends on control dependency: [if], data = [none] project.addCompileSourceRoot( sourceRoot.toString() ); // depe...
public class class_name { protected Collection<BioPAXElement> generate(Conversion conv, Direction direction, Set<Entity> taboo) { if (direction == null) throw new IllegalArgumentException("Direction cannot be null"); if (!(direction == Direction.BOTHSIDERS || direction == Direction.ONESIDERS)) { Set<BioPA...
public class class_name { protected Collection<BioPAXElement> generate(Conversion conv, Direction direction, Set<Entity> taboo) { if (direction == null) throw new IllegalArgumentException("Direction cannot be null"); if (!(direction == Direction.BOTHSIDERS || direction == Direction.ONESIDERS)) { Set<BioPA...
public class class_name { protected void executeWithErrorPropagation(ActivityExecution execution, Callable<Void> toExecute) throws Exception { String activityInstanceId = execution.getActivityInstanceId(); try { toExecute.call(); } catch (Exception ex) { if (activityInstanceId.equals(execution....
public class class_name { protected void executeWithErrorPropagation(ActivityExecution execution, Callable<Void> toExecute) throws Exception { String activityInstanceId = execution.getActivityInstanceId(); try { toExecute.call(); } catch (Exception ex) { if (activityInstanceId.equals(execution....
public class class_name { public void marshall(TagFilter tagFilter, ProtocolMarshaller protocolMarshaller) { if (tagFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(tagFilter.getTagKey(), TA...
public class class_name { public void marshall(TagFilter tagFilter, ProtocolMarshaller protocolMarshaller) { if (tagFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(tagFilter.getTagKey(), TA...
public class class_name { private Later<JsonNode> getRawBatchResult() { if (this.rawBatchResult == null) { // Use LaterWrapper to cache the result so we don't fetch over and over this.rawBatchResult = new LaterWrapper<JsonNode, JsonNode>(this.createFetcher()); // Also let the master know it's time ...
public class class_name { private Later<JsonNode> getRawBatchResult() { if (this.rawBatchResult == null) { // Use LaterWrapper to cache the result so we don't fetch over and over this.rawBatchResult = new LaterWrapper<JsonNode, JsonNode>(this.createFetcher()); // depends on control dependency: [if], data =...
public class class_name { public String getGroupName() { if (TabSetType.ACCORDION.equals(getType())) { CollapsibleGroup group = getComponentModel().group; return (group == null ? null : group.getGroupName()); } return null; } }
public class class_name { public String getGroupName() { if (TabSetType.ACCORDION.equals(getType())) { CollapsibleGroup group = getComponentModel().group; return (group == null ? null : group.getGroupName()); // depends on control dependency: [if], data = [none] } return null; } }
public class class_name { public void markMarshallable(Class<?> type, boolean isMarshallable) { MarshallingType marshallType = typeHints.get(type); if (marshallableUpdateRequired(isMarshallable, marshallType)) { boolean replaced = typeHints.replace(type, marshallType, new MarshallingType( ...
public class class_name { public void markMarshallable(Class<?> type, boolean isMarshallable) { MarshallingType marshallType = typeHints.get(type); if (marshallableUpdateRequired(isMarshallable, marshallType)) { boolean replaced = typeHints.replace(type, marshallType, new MarshallingType( ...
public class class_name { public void dispose() { try { connection.close(); } catch (final Exception e) { LOGGER.log(Level.ERROR, "Disposes transaction [" + getId() + "] failed", e); } finally { isActive = false; connection = null; Jdb...
public class class_name { public void dispose() { try { connection.close(); // depends on control dependency: [try], data = [none] } catch (final Exception e) { LOGGER.log(Level.ERROR, "Disposes transaction [" + getId() + "] failed", e); } finally { // depends on control...
public class class_name { private static JavaScriptObject[] toNativeErrorArray(List<JSError> errors) { JavaScriptObject[] out = new JavaScriptObject[errors.size()]; for (int i = 0; i < errors.size(); ++i) { JSError error = errors.get(i); DiagnosticType type = error.getType(); out[i] = createE...
public class class_name { private static JavaScriptObject[] toNativeErrorArray(List<JSError> errors) { JavaScriptObject[] out = new JavaScriptObject[errors.size()]; for (int i = 0; i < errors.size(); ++i) { JSError error = errors.get(i); DiagnosticType type = error.getType(); out[i] = createE...
public class class_name { public static synchronized XDataManager getInstanceFor(XMPPConnection connection) { XDataManager xDataManager = INSTANCES.get(connection); if (xDataManager == null) { xDataManager = new XDataManager(connection); INSTANCES.put(connection, xDataManager); ...
public class class_name { public static synchronized XDataManager getInstanceFor(XMPPConnection connection) { XDataManager xDataManager = INSTANCES.get(connection); if (xDataManager == null) { xDataManager = new XDataManager(connection); // depends on control dependency: [if], data = [none]...
public class class_name { public void performRecovery(ObjectManagerState objectManagerState) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "performRecovery", ...
public class class_name { public void performRecovery(ObjectManagerState objectManagerState) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "performRecovery", ...
public class class_name { private void append(StringBuffer result, String string, FieldDelegate delegate, FieldPosition[] positions, Format.Field signAttribute) { int start = result.length(); if (string.length() > 0) { ...
public class class_name { private void append(StringBuffer result, String string, FieldDelegate delegate, FieldPosition[] positions, Format.Field signAttribute) { int start = result.length(); if (string.length() > 0) { ...
public class class_name { public static void setXSLTVersion(String s) { try { Number n = NumberFormat.getInstance(Locale.US).parse(s); if (n.doubleValue() < 0) { throw new ConfigurationException(s + " doesn't reperesent a" ...
public class class_name { public static void setXSLTVersion(String s) { try { Number n = NumberFormat.getInstance(Locale.US).parse(s); if (n.doubleValue() < 0) { throw new ConfigurationException(s + " doesn't reperesent a" ...
public class class_name { public static void append(ByteBuffer to, byte b) { int pos = flipToFill(to); try { to.put(b); } finally { flipToFlush(to, pos); } } }
public class class_name { public static void append(ByteBuffer to, byte b) { int pos = flipToFill(to); try { to.put(b); // depends on control dependency: [try], data = [none] } finally { flipToFlush(to, pos); } } }
public class class_name { public void setEntries(List<E> entries) { if (entries == null) { this.entries = new ArrayList<>(); } else { this.entries = entries; } } }
public class class_name { public void setEntries(List<E> entries) { if (entries == null) { this.entries = new ArrayList<>(); // depends on control dependency: [if], data = [none] } else { this.entries = entries; // depends on control dependency: [if], data = [none] } ...
public class class_name { @GET @Produces(MediaType.APPLICATION_JSON) public Response listAllPushApplications(@QueryParam("page") Integer page, @QueryParam("per_page") Integer pageSize, @QueryParam("includeDeviceCount") @Def...
public class class_name { @GET @Produces(MediaType.APPLICATION_JSON) public Response listAllPushApplications(@QueryParam("page") Integer page, @QueryParam("per_page") Integer pageSize, @QueryParam("includeDeviceCount") @Def...
public class class_name { protected Container findContainer(ContainerContext ctx, StringBuilder dump) { Container container = null; // 1. Custom container class String containerClassName = ctx.getServletContext().getInitParameter(Container.CONTEXT_PARAM_CONTAINER_CLASS); if (containerCl...
public class class_name { protected Container findContainer(ContainerContext ctx, StringBuilder dump) { Container container = null; // 1. Custom container class String containerClassName = ctx.getServletContext().getInitParameter(Container.CONTEXT_PARAM_CONTAINER_CLASS); if (containerCl...
public class class_name { public static ObjectName createObjectName(String domain, String type) { try { return new ObjectName(domain + ":type=" + type); } catch(MalformedObjectNameException e) { throw new VoldemortException(e); } } }
public class class_name { public static ObjectName createObjectName(String domain, String type) { try { return new ObjectName(domain + ":type=" + type); // depends on control dependency: [try], data = [none] } catch(MalformedObjectNameException e) { throw new VoldemortException(...
public class class_name { private void handleException(final Throwable e) { if ( errorListeners.size() == 0 ) { LOG.error("", e); } else { errorListeners.forEach(new Function<UnhandledErrorListener, Void>() { @Override ...
public class class_name { private void handleException(final Throwable e) { if ( errorListeners.size() == 0 ) { LOG.error("", e); // depends on control dependency: [if], data = [none] } else { errorListeners.forEach(new Function<UnhandledErrorListener...
public class class_name { public void removeLast() { if (this.numTypesProperty.get()>0) { switch(this.types[this.numTypesProperty.get()-1]) { case CLOSE: // no coord to remove break; case MOVE_TO: case LINE_TO: this.numCoordsProperty.set(this.numCoordsProperty.get()-3); break; case CUR...
public class class_name { public void removeLast() { if (this.numTypesProperty.get()>0) { switch(this.types[this.numTypesProperty.get()-1]) { case CLOSE: // no coord to remove break; case MOVE_TO: case LINE_TO: this.numCoordsProperty.set(this.numCoordsProperty.get()-3); break; case CUR...
public class class_name { protected SessionNode removeChildFromNode( AbstractSessionCache session, NodeKey childKey ) { // First, manipulate the child node. But we have to see whether this node is a primary parent or an additional parent ... SessionNode ch...
public class class_name { protected SessionNode removeChildFromNode( AbstractSessionCache session, NodeKey childKey ) { // First, manipulate the child node. But we have to see whether this node is a primary parent or an additional parent ... SessionNode ch...
public class class_name { public String toJson(Map<?, ?> map) { StringWriter stringWriter = new StringWriter(); try { toJson(map, stringWriter); } catch (IOException e) { throw new AssertionError(e); // No I/O writing to a Buffer. } return stringWriter.toString(); } }
public class class_name { public String toJson(Map<?, ?> map) { StringWriter stringWriter = new StringWriter(); try { toJson(map, stringWriter); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new AssertionError(e); // No I/O writing to a Buffer. } // ...
public class class_name { public ProxyPolicyHandler setProxyPolicyHandler(String id, ProxyPolicyHandler handler) { if (id == null) { throw new IllegalArgumentException(i18n.getMessage("proxyPolicyId")); } if (handler == null) { throw new IllegalArgumentException(...
public class class_name { public ProxyPolicyHandler setProxyPolicyHandler(String id, ProxyPolicyHandler handler) { if (id == null) { throw new IllegalArgumentException(i18n.getMessage("proxyPolicyId")); } if (handler == null) { throw new IllegalArgumentException(...
public class class_name { @Override public RoundedMoney divide(Number divisor) { BigDecimal bd = MoneyUtils.getBigDecimal(divisor); if (isOne(bd)) { return this; } BigDecimal dec = number.divide(bd, Optional.ofNullable(monetaryContext.get(RoundingMode.class)). ...
public class class_name { @Override public RoundedMoney divide(Number divisor) { BigDecimal bd = MoneyUtils.getBigDecimal(divisor); if (isOne(bd)) { return this; // depends on control dependency: [if], data = [none] } BigDecimal dec = number.divide(bd, Optional.ofNullabl...
public class class_name { ThrowableInformation getException(Connection connection, long id) throws SQLException { PreparedStatement statement = null; try { statement = connection.prepareStatement(sqlException); statement.setLong(1, id); ResultSet rs = statement.executeQuery(); ...
public class class_name { ThrowableInformation getException(Connection connection, long id) throws SQLException { PreparedStatement statement = null; try { statement = connection.prepareStatement(sqlException); statement.setLong(1, id); ResultSet rs = statement.executeQuery(); ...