code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override public void validate(ValidationHelper helper, Context context, String key, Schema t) { if (t != null) { String reference = t.getRef(); if (reference != null && !reference.isEmpty()) { ValidatorUtils.referenceValidatorHelper(refer...
public class class_name { @Override public void validate(ValidationHelper helper, Context context, String key, Schema t) { if (t != null) { String reference = t.getRef(); if (reference != null && !reference.isEmpty()) { ValidatorUtils.referenceValidatorHelper(refer...
public class class_name { public boolean hasNext( int windowSize, int increment ) { if( windowSize <= 0 ) { throw new IllegalArgumentException( "Window size must be positive." ); } try { if( increment > 0 ) { return windowSize == mBounds.suffix( mPosition ).prefix( windowSize ).length(); } ...
public class class_name { public boolean hasNext( int windowSize, int increment ) { if( windowSize <= 0 ) { throw new IllegalArgumentException( "Window size must be positive." ); } try { if( increment > 0 ) { return windowSize == mBounds.suffix( mPosition ).prefix( windowSize ).length(); // de...
public class class_name { protected T getObject() { final T object; if (reusedObject != null) { // REUSE THE SAME RECORD AFTER HAVING RESETTED IT object = reusedObject; object.reset(); } else // CREATE A NEW ONE object = (T) database.newInstance(className); return object; } }
public class class_name { protected T getObject() { final T object; if (reusedObject != null) { // REUSE THE SAME RECORD AFTER HAVING RESETTED IT object = reusedObject; // depends on control dependency: [if], data = [none] object.reset(); // depends on control dependency: [if], data = [none] } els...
public class class_name { public boolean getValue (String name, boolean defval) { String val = _props.getProperty(name); if (val != null) { defval = !val.equalsIgnoreCase("false"); } return defval; } }
public class class_name { public boolean getValue (String name, boolean defval) { String val = _props.getProperty(name); if (val != null) { defval = !val.equalsIgnoreCase("false"); // depends on control dependency: [if], data = [none] } return defval; } }
public class class_name { public static <T> boolean hasIntersection(T[] from, T[] target) { if (isEmpty(target)) { return true; } if (isEmpty(from)) { return false; } for (int i = 0; i < from.length; i++) { for (int j = 0; j < target.length;...
public class class_name { public static <T> boolean hasIntersection(T[] from, T[] target) { if (isEmpty(target)) { return true; // depends on control dependency: [if], data = [none] } if (isEmpty(from)) { return false; // depends on control dependency: [if], data = [non...
public class class_name { private void moveHorizontally(int offset) { if (offset < 0) { moveLeft(Math.abs(offset)); } else if (offset > 0) { moveRight(offset); } } }
public class class_name { private void moveHorizontally(int offset) { if (offset < 0) { moveLeft(Math.abs(offset)); // depends on control dependency: [if], data = [(offset] } else if (offset > 0) { moveRight(offset); // depends on control dependency: [if], data = [(offset] ...
public class class_name { public List<EPSProjectWBSSpreadType.Period> getPeriod() { if (period == null) { period = new ArrayList<EPSProjectWBSSpreadType.Period>(); } return this.period; } }
public class class_name { public List<EPSProjectWBSSpreadType.Period> getPeriod() { if (period == null) { period = new ArrayList<EPSProjectWBSSpreadType.Period>(); // depends on control dependency: [if], data = [none] } return this.period; } }
public class class_name { public void pinVisiblePanels() { if (layout == Layout.FULL) { getTabbedFull().pinVisibleTabs(); } else { getTabbedSelect().pinVisibleTabs(); getTabbedWork().pinVisibleTabs(); getTabbedStatus().pinVisibleTabs(); } } }
public class class_name { public void pinVisiblePanels() { if (layout == Layout.FULL) { getTabbedFull().pinVisibleTabs(); // depends on control dependency: [if], data = [none] } else { getTabbedSelect().pinVisibleTabs(); // depends on control dependency: [if], data = [none] getTabbedWork().pinVisible...
public class class_name { public int getAutowireMode(String attValue) { String att = attValue; int autowire = AbstractBeanDefinition.AUTOWIRE_NO; if (AUTOWIRE_BY_NAME_VALUE.equals(att)) { autowire = AbstractBeanDefinition.AUTOWIRE_BY_NAME; } else if (AUTOWIRE_BY_TYPE_VALUE.equals(att)) { au...
public class class_name { public int getAutowireMode(String attValue) { String att = attValue; int autowire = AbstractBeanDefinition.AUTOWIRE_NO; if (AUTOWIRE_BY_NAME_VALUE.equals(att)) { autowire = AbstractBeanDefinition.AUTOWIRE_BY_NAME; // depends on control dependency: [if], data = [none] } e...
public class class_name { public void initialize(final MetricContext metricContext, final Class<E> enumClass, final Class<?> instrumentedClass) { Builder<E, Counter> builder = ImmutableMap.builder(); for (E e : Arrays.asList(enumClass.getEnumConstants())) { builder.put(e, metricContext.counter(MetricRe...
public class class_name { public void initialize(final MetricContext metricContext, final Class<E> enumClass, final Class<?> instrumentedClass) { Builder<E, Counter> builder = ImmutableMap.builder(); for (E e : Arrays.asList(enumClass.getEnumConstants())) { builder.put(e, metricContext.counter(MetricRe...
public class class_name { public void destroy() { for (int i = 0; i < rules.size(); i++) { final Rule rule = (Rule) rules.get(i); rule.destroy(); } } }
public class class_name { public void destroy() { for (int i = 0; i < rules.size(); i++) { final Rule rule = (Rule) rules.get(i); rule.destroy(); // depends on control dependency: [for], data = [none] } } }
public class class_name { public Set<Instance> runOnceOn(InetAddress localhost) throws IOException { logger.debug("Running query on {}", localhost); initialQuestion = new Question(service, domain); instances = Collections.synchronizedSet(new HashSet<>()); try { Thread listen...
public class class_name { public Set<Instance> runOnceOn(InetAddress localhost) throws IOException { logger.debug("Running query on {}", localhost); initialQuestion = new Question(service, domain); instances = Collections.synchronizedSet(new HashSet<>()); try { Thread listen...
public class class_name { private <K, V, T extends RedisChannelHandler<K, V>, S> ConnectionFuture<S> connectStatefulAsync(T connection, RedisCodec<K, V> codec, DefaultEndpoint endpoint, RedisURI connectionSettings, Mono<SocketAddress> socketAddressSupplier, Supplier<CommandHandler> ...
public class class_name { private <K, V, T extends RedisChannelHandler<K, V>, S> ConnectionFuture<S> connectStatefulAsync(T connection, RedisCodec<K, V> codec, DefaultEndpoint endpoint, RedisURI connectionSettings, Mono<SocketAddress> socketAddressSupplier, Supplier<CommandHandler> ...
public class class_name { public void failed(Throwable failureCause) { Map<ClientTransport.PingCallback, Executor> callbacks; synchronized (this) { if (completed) { return; } completed = true; this.failureCause = failureCause; callbacks = this.callbacks; this.callbac...
public class class_name { public void failed(Throwable failureCause) { Map<ClientTransport.PingCallback, Executor> callbacks; synchronized (this) { if (completed) { return; // depends on control dependency: [if], data = [none] } completed = true; this.failureCause = failureCause...
public class class_name { public static Expression createExpressionForField(FieldExtension fieldExtension) { if (StringUtils.isNotEmpty(fieldExtension.getExpression())) { ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager(); return express...
public class class_name { public static Expression createExpressionForField(FieldExtension fieldExtension) { if (StringUtils.isNotEmpty(fieldExtension.getExpression())) { ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager(); return express...
public class class_name { protected GoogleJsonError getDetails(IOException e) { if (e instanceof GoogleJsonResponseException) { return ((GoogleJsonResponseException) e).getDetails(); } return null; } }
public class class_name { protected GoogleJsonError getDetails(IOException e) { if (e instanceof GoogleJsonResponseException) { return ((GoogleJsonResponseException) e).getDetails(); // depends on control dependency: [if], data = [none] } return null; } }
public class class_name { private String getErrorCode(SQLException ex) { String result = null; SQLException nestedEx = null; if (ex.getErrorCode() != 0) { result = Integer.toString(ex.getErrorCode()); } if (result == null) { nestedEx = ex.getNextExcepti...
public class class_name { private String getErrorCode(SQLException ex) { String result = null; SQLException nestedEx = null; if (ex.getErrorCode() != 0) { result = Integer.toString(ex.getErrorCode()); // depends on control dependency: [if], data = [(ex.getErrorCode()] } ...
public class class_name { void unregisterOutputStream(OutStream stream) { lock.lock(); try { // only decrement if we actually remove the stream if (openOutputStreams.remove(stream)) { numReservedOutputStreams--; available.signalAll(); } } finally { lock.unlock(); } } }
public class class_name { void unregisterOutputStream(OutStream stream) { lock.lock(); try { // only decrement if we actually remove the stream if (openOutputStreams.remove(stream)) { numReservedOutputStreams--; // depends on control dependency: [if], data = [none] available.signalAll(); // depends o...
public class class_name { public static <MSG extends Message> MSG read(File file, Parser<MSG> parser) { InputStream input = null; try { input = new BufferedInputStream(new FileInputStream(file)); return parser.parseFrom(input); } catch (Exception e) { throw ContextException.of("Unable to ...
public class class_name { public static <MSG extends Message> MSG read(File file, Parser<MSG> parser) { InputStream input = null; try { input = new BufferedInputStream(new FileInputStream(file)); // depends on control dependency: [try], data = [none] return parser.parseFrom(input); // depends on co...
public class class_name { public static String prettyPrint(String unformattedJsonString) { StringBuilder sb = new StringBuilder(); int indentLevel = 0; boolean inQuote = false; for (char charFromUnformattedJson : unformattedJsonString.toCharArray()) { switch (charFromUnforma...
public class class_name { public static String prettyPrint(String unformattedJsonString) { StringBuilder sb = new StringBuilder(); int indentLevel = 0; boolean inQuote = false; for (char charFromUnformattedJson : unformattedJsonString.toCharArray()) { switch (charFromUnforma...
public class class_name { private void triggerEvents(WebElement element, WebDriver driver) { if ("input".equalsIgnoreCase(element.getTagName())) { driver.findElement(By.tagName("body")).click(); } } }
public class class_name { private void triggerEvents(WebElement element, WebDriver driver) { if ("input".equalsIgnoreCase(element.getTagName())) { driver.findElement(By.tagName("body")).click(); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void addPostParams(final Request request) { if (body != null) { request.addPostParam("Body", body); } if (attributes != null) { request.addPostParam("Attributes", attributes); } } }
public class class_name { private void addPostParams(final Request request) { if (body != null) { request.addPostParam("Body", body); // depends on control dependency: [if], data = [none] } if (attributes != null) { request.addPostParam("Attributes", attributes); // dep...
public class class_name { public int parseNaturalIntAscii(final int index, final int length) { boundsCheck0(index, length); final int end = index + length; int tally = 0; for (int i = index; i < end; i++) { tally = (tally * 10) + AsciiEncoding.getDigit(i, byteAr...
public class class_name { public int parseNaturalIntAscii(final int index, final int length) { boundsCheck0(index, length); final int end = index + length; int tally = 0; for (int i = index; i < end; i++) { tally = (tally * 10) + AsciiEncoding.getDigit(i, byteAr...
public class class_name { public static ALasDataManager getDataManager( File dataFile, GridCoverage2D inDem, double elevThreshold, CoordinateReferenceSystem inCrs ) { String lcName = dataFile.getName().toLowerCase(); if (lcName.endsWith(".las")) { return new LasFileDataManager(d...
public class class_name { public static ALasDataManager getDataManager( File dataFile, GridCoverage2D inDem, double elevThreshold, CoordinateReferenceSystem inCrs ) { String lcName = dataFile.getName().toLowerCase(); if (lcName.endsWith(".las")) { return new LasFileDataManager(d...
public class class_name { Chronology getEffectiveChronology() { Chronology chrono = currentParsed().chrono; if (chrono == null) { chrono = formatter.getChronology(); if (chrono == null) { chrono = IsoChronology.INSTANCE; } } return chr...
public class class_name { Chronology getEffectiveChronology() { Chronology chrono = currentParsed().chrono; if (chrono == null) { chrono = formatter.getChronology(); // depends on control dependency: [if], data = [none] if (chrono == null) { chrono = IsoChronolog...
public class class_name { private int getTotalLandscapePointsInPage(CriterionBidLandscapePage page) { int totalLandscapePointsInPage = 0; for (CriterionBidLandscape criterionBidLandscape : page.getEntries()) { totalLandscapePointsInPage += criterionBidLandscape.getLandscapePoints().size(); } retu...
public class class_name { private int getTotalLandscapePointsInPage(CriterionBidLandscapePage page) { int totalLandscapePointsInPage = 0; for (CriterionBidLandscape criterionBidLandscape : page.getEntries()) { totalLandscapePointsInPage += criterionBidLandscape.getLandscapePoints().size(); // depends on ...
public class class_name { private void trimToSize(int maxSize) { while (true) { String key; Bitmap value; synchronized (this) { if (size < 0 || (map.isEmpty() && size != 0)) { throw new IllegalStateException(getClass().getName() + ".sizeOf() is reporting inconsistent results!"); } if (size...
public class class_name { private void trimToSize(int maxSize) { while (true) { String key; Bitmap value; synchronized (this) { // depends on control dependency: [while], data = [none] if (size < 0 || (map.isEmpty() && size != 0)) { throw new IllegalStateException(getClass().getName() + ".sizeOf() ...
public class class_name { @Override public List<List<O>> finish(Collection<? extends OutputWriter<O>> writers) { ImmutableList.Builder<List<O>> out = ImmutableList.builder(); for (OutputWriter<O> w : writers) { InMemoryOutputWriter<O> writer = (InMemoryOutputWriter<O>) w; out.add(ImmutableList.co...
public class class_name { @Override public List<List<O>> finish(Collection<? extends OutputWriter<O>> writers) { ImmutableList.Builder<List<O>> out = ImmutableList.builder(); for (OutputWriter<O> w : writers) { InMemoryOutputWriter<O> writer = (InMemoryOutputWriter<O>) w; out.add(ImmutableList.co...
public class class_name { void retriggerSubpartitionRequest(Timer timer, final int subpartitionIndex) { synchronized (requestLock) { checkState(subpartitionView == null, "already requested partition"); timer.schedule(new TimerTask() { @Override public void run() { try { requestSubpartition(...
public class class_name { void retriggerSubpartitionRequest(Timer timer, final int subpartitionIndex) { synchronized (requestLock) { checkState(subpartitionView == null, "already requested partition"); timer.schedule(new TimerTask() { @Override public void run() { try { requestSubpartition(...
public class class_name { public KVStore toKVStore() { KVStore store = new KVStore(); store.putValue("status", statusCode()); store.putValue("message", getLocalizedMessage()); store.putValue("timestamp", timestamp()); Integer code = errorCode(); if (null != code) { ...
public class class_name { public KVStore toKVStore() { KVStore store = new KVStore(); store.putValue("status", statusCode()); store.putValue("message", getLocalizedMessage()); store.putValue("timestamp", timestamp()); Integer code = errorCode(); if (null != code) { ...
public class class_name { protected void closeDatabase(Database database) { try { if(database != null) { database.close(); } } catch (DatabaseException e) { log("Error closing the database connection.", e, Project.MSG_WARN); } } }
public class class_name { protected void closeDatabase(Database database) { try { if(database != null) { database.close(); // depends on control dependency: [if], data = [none] } } catch (DatabaseException e) { log("Error closing the database connecti...
public class class_name { public void incRunningTasks(String poolName, TaskType type, int inc) { Map<String, Integer> runningMap = (type == TaskType.MAP ? poolRunningMaps : poolRunningReduces); if (!runningMap.containsKey(poolName)) { runningMap.put(poolName, 0); ...
public class class_name { public void incRunningTasks(String poolName, TaskType type, int inc) { Map<String, Integer> runningMap = (type == TaskType.MAP ? poolRunningMaps : poolRunningReduces); if (!runningMap.containsKey(poolName)) { runningMap.put(poolName, 0); //...
public class class_name { @SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processType(final Object component, final Context context, final ContextDestroyer contextDestroyer) { final com.badlogic.gdx.utils.reflect.Annotation[] annotations =...
public class class_name { @SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processType(final Object component, final Context context, final ContextDestroyer contextDestroyer) { final com.badlogic.gdx.utils.reflect.Annotation[] annotations =...
public class class_name { public ListByteMatchSetsResult withByteMatchSets(ByteMatchSetSummary... byteMatchSets) { if (this.byteMatchSets == null) { setByteMatchSets(new java.util.ArrayList<ByteMatchSetSummary>(byteMatchSets.length)); } for (ByteMatchSetSummary ele : byteMatchSets) ...
public class class_name { public ListByteMatchSetsResult withByteMatchSets(ByteMatchSetSummary... byteMatchSets) { if (this.byteMatchSets == null) { setByteMatchSets(new java.util.ArrayList<ByteMatchSetSummary>(byteMatchSets.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public javax.slee.profile.ProfileSpecificationDescriptor getSpecsDescriptor() { if (specsDescriptor == null) { final LibraryID[] libraryIDs = descriptor.getLibraryRefs().toArray(new LibraryID[descriptor.getLibraryRefs().size()]); final ProfileSpecificationID[] profileSpecs = new Pr...
public class class_name { public javax.slee.profile.ProfileSpecificationDescriptor getSpecsDescriptor() { if (specsDescriptor == null) { final LibraryID[] libraryIDs = descriptor.getLibraryRefs().toArray(new LibraryID[descriptor.getLibraryRefs().size()]); final ProfileSpecificationID[] profileSpecs = new Pr...
public class class_name { @GuardedBy("evictionLock") void drainWriteBuffer() { if (!buffersWrites()) { return; } for (int i = 0; i < WRITE_BUFFER_MAX; i++) { Runnable task = writeBuffer().poll(); if (task == null) { return; } task.run(); } lazySetDrainStatus...
public class class_name { @GuardedBy("evictionLock") void drainWriteBuffer() { if (!buffersWrites()) { return; // depends on control dependency: [if], data = [none] } for (int i = 0; i < WRITE_BUFFER_MAX; i++) { Runnable task = writeBuffer().poll(); if (task == null) { return; ...
public class class_name { private Object toMBean(Object object) throws IllegalArgumentException, NotCompliantMBeanException { JmxBean jmxBean = AnnotationUtils.getAnnotation(object.getClass(), JmxBean.class); if (DynamicMBean.class.isAssignableFrom(object.getClass())) { return object; ...
public class class_name { private Object toMBean(Object object) throws IllegalArgumentException, NotCompliantMBeanException { JmxBean jmxBean = AnnotationUtils.getAnnotation(object.getClass(), JmxBean.class); if (DynamicMBean.class.isAssignableFrom(object.getClass())) { return object; ...
public class class_name { public boolean insertAfter(final AbstractHtml... abstractHtmls) { if (parent == null) { throw new NoParentException("There must be a parent for this tag."); } final Lock lock = sharedObject.getLock(ACCESS_OBJECT).writeLock(); boolean result = fals...
public class class_name { public boolean insertAfter(final AbstractHtml... abstractHtmls) { if (parent == null) { throw new NoParentException("There must be a parent for this tag."); } final Lock lock = sharedObject.getLock(ACCESS_OBJECT).writeLock(); boolean result = fals...
public class class_name { @Override public int enqueue(JobRequest jd) { try { return target.path("ji").request().post(Entity.entity(jd, MediaType.APPLICATION_XML), JobInstance.class).getId(); } catch (BadRequestException e) { throw new JqmInvalidR...
public class class_name { @Override public int enqueue(JobRequest jd) { try { return target.path("ji").request().post(Entity.entity(jd, MediaType.APPLICATION_XML), JobInstance.class).getId(); // depends on control dependency: [try], data = [none] } catch (BadRequestE...
public class class_name { private void storeData(Job key, TileBitmap bitmap) { OutputStream outputStream = null; try { File file = getOutputFile(key); if (file == null) { // if the file cannot be written, silently return return; } ...
public class class_name { private void storeData(Job key, TileBitmap bitmap) { OutputStream outputStream = null; try { File file = getOutputFile(key); if (file == null) { // if the file cannot be written, silently return return; // depends on cont...
public class class_name { private void visitNonMethodMember(Node member, ClassDeclarationMetadata metadata) { if (member.isComputedProp() && member.isStaticMember()) { cannotConvertYet(compiler, member, "Static computed property"); return; } if (member.isComputedProp() && !member.getFirstChild(...
public class class_name { private void visitNonMethodMember(Node member, ClassDeclarationMetadata metadata) { if (member.isComputedProp() && member.isStaticMember()) { cannotConvertYet(compiler, member, "Static computed property"); // depends on control dependency: [if], data = [none] return; // depend...
public class class_name { void reschedule(long delay, TimeUnit timeUnit) { long delayNanos = timeUnit.toNanos(delay); long newRunAtNanos = nanoTime() + delayNanos; enabled = true; if (newRunAtNanos - runAtNanos < 0 || wakeUp == null) { if (wakeUp != null) { wakeUp.cancel(false); } ...
public class class_name { void reschedule(long delay, TimeUnit timeUnit) { long delayNanos = timeUnit.toNanos(delay); long newRunAtNanos = nanoTime() + delayNanos; enabled = true; if (newRunAtNanos - runAtNanos < 0 || wakeUp == null) { if (wakeUp != null) { wakeUp.cancel(false); // depend...
public class class_name { public long getMS(String methodName, FacadeOperation op, Type type) { String cacheKey = type + "-" + methodName; if (methodTimeouts.containsKey(cacheKey)) { return methodTimeouts.get(cacheKey); } String configurationKeyPrefix = CONFIG_PREFIX+type+...
public class class_name { public long getMS(String methodName, FacadeOperation op, Type type) { String cacheKey = type + "-" + methodName; if (methodTimeouts.containsKey(cacheKey)) { return methodTimeouts.get(cacheKey); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override protected String doBuildColumnString(String dm) { StringBuilder sb = new StringBuilder(); sb.append(dm).append(createdAt); sb.append(dm).append(docId); sb.append(dm).append(queryId); sb.append(dm).append(url); sb.append(dm).append(...
public class class_name { @Override protected String doBuildColumnString(String dm) { StringBuilder sb = new StringBuilder(); sb.append(dm).append(createdAt); sb.append(dm).append(docId); sb.append(dm).append(queryId); sb.append(dm).append(url); sb.append(dm).append(...
public class class_name { public double Function1D(double x) { double frequency = initFrequency; double amplitude = initAmplitude; double sum = 0; // octaves for (int i = 0; i < octaves; i++) { sum += SmoothedNoise(x * frequency) * amplitude; frequency ...
public class class_name { public double Function1D(double x) { double frequency = initFrequency; double amplitude = initAmplitude; double sum = 0; // octaves for (int i = 0; i < octaves; i++) { sum += SmoothedNoise(x * frequency) * amplitude; // depends on control d...
public class class_name { private static List<AnnotationValidator> getAllAnnotationValidators(Registry registry, Class<?> clazz) { List<AnnotationValidator> annotationValidators = CollectionUtil.createArrayList(); Field[] fields = ReflectionUtil.getAnnotationFields(clazz, FluentValidate.class); ...
public class class_name { private static List<AnnotationValidator> getAllAnnotationValidators(Registry registry, Class<?> clazz) { List<AnnotationValidator> annotationValidators = CollectionUtil.createArrayList(); Field[] fields = ReflectionUtil.getAnnotationFields(clazz, FluentValidate.class); ...
public class class_name { public List<T> apply(List<T> selectedCandidates, Random rng) { List<T> population = selectedCandidates; for (EvolutionaryOperator<T> operator : pipeline) { population = operator.apply(population, rng); } return population; } }
public class class_name { public List<T> apply(List<T> selectedCandidates, Random rng) { List<T> population = selectedCandidates; for (EvolutionaryOperator<T> operator : pipeline) { population = operator.apply(population, rng); // depends on control dependency: [for], data = [op...
public class class_name { public synchronized void unlockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "unlockExclusive", this); // Synchronize on the locking Mutex. synchronized (iMutex) { // Only release the lock if the holder is the current thread. if (Thread.currentThr...
public class class_name { public synchronized void unlockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "unlockExclusive", this); // Synchronize on the locking Mutex. synchronized (iMutex) { // Only release the lock if the holder is the current thread. if (Thread.currentThr...
public class class_name { public void smoothOpenMenu(int position, @DirectionMode int direction, int duration) { if (mOldSwipedLayout != null) { if (mOldSwipedLayout.isMenuOpen()) { mOldSwipedLayout.smoothCloseMenu(); } } position += getHeaderCount(); ...
public class class_name { public void smoothOpenMenu(int position, @DirectionMode int direction, int duration) { if (mOldSwipedLayout != null) { if (mOldSwipedLayout.isMenuOpen()) { mOldSwipedLayout.smoothCloseMenu(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static MediaInfo parseMediaInfo(String url) { if (StringUtils.isEmpty(url)) { return null; } Matcher matcher = PATTERN.matcher(url.trim()); if (!matcher.matches()) { return null; } if (matcher.groupCount() < 1) { ...
public class class_name { public static MediaInfo parseMediaInfo(String url) { if (StringUtils.isEmpty(url)) { return null; // depends on control dependency: [if], data = [none] } Matcher matcher = PATTERN.matcher(url.trim()); if (!matcher.matches()) { return nul...
public class class_name { private void updateStreamState(Map<TaskStream, WindowState> state) { for (Map.Entry<TaskStream, WindowState> entry : state.entrySet()) { TaskStream taskStream = entry.getKey(); WindowState newState = entry.getValue(); WindowState curState = streamSt...
public class class_name { private void updateStreamState(Map<TaskStream, WindowState> state) { for (Map.Entry<TaskStream, WindowState> entry : state.entrySet()) { TaskStream taskStream = entry.getKey(); WindowState newState = entry.getValue(); WindowState curState = streamSt...
public class class_name { public void removeAStarListener(AStarListener<ST, PT> listener) { if (this.listeners != null) { this.listeners.remove(listener); if (this.listeners.isEmpty()) { this.listeners = null; } } } }
public class class_name { public void removeAStarListener(AStarListener<ST, PT> listener) { if (this.listeners != null) { this.listeners.remove(listener); // depends on control dependency: [if], data = [none] if (this.listeners.isEmpty()) { this.listeners = null; // depends on control dependency: [if], dat...
public class class_name { private void readInternalSubset() throws IOException, KriptonRuntimeException { read('['); while (true) { skip(); if (peekCharacter() == ']') { position++; return; } int declarationType = peekType(true); switch (declarationType) { case ELEMENTDECL: readElem...
public class class_name { private void readInternalSubset() throws IOException, KriptonRuntimeException { read('['); while (true) { skip(); if (peekCharacter() == ']') { position++; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { protected void initialize() { this.mappedFields = new HashMap<String, PropertyDescriptor>(); PropertyDescriptor[] pds = BeanUtils.getPropertyDescriptors(mappedClass); if (checkProperties) { mappedProperties = new HashSet<String>(); } for (in...
public class class_name { protected void initialize() { this.mappedFields = new HashMap<String, PropertyDescriptor>(); PropertyDescriptor[] pds = BeanUtils.getPropertyDescriptors(mappedClass); if (checkProperties) { mappedProperties = new HashSet<String>(); // depends on control dep...
public class class_name { protected void startPurge() { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEventEnabled()) { Tr.event(tc, "Running purge of expired sessions"); } try { List<SessionImpl> toPurge = new ArrayList<SessionI...
public class class_name { protected void startPurge() { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEventEnabled()) { Tr.event(tc, "Running purge of expired sessions"); // depends on control dependency: [if], data = [none] } try { ...
public class class_name { private void readOpBits(ImageInputStream pStream, boolean hasRegion) throws IOException { // Get rowBytes int rowBytesRaw = pStream.readUnsignedShort(); int rowBytes = rowBytesRaw & 0x7FFF; boolean isPixMap = (rowBytesRaw & 0x8000) > 0; if (DEBUG) { ...
public class class_name { private void readOpBits(ImageInputStream pStream, boolean hasRegion) throws IOException { // Get rowBytes int rowBytesRaw = pStream.readUnsignedShort(); int rowBytes = rowBytesRaw & 0x7FFF; boolean isPixMap = (rowBytesRaw & 0x8000) > 0; if (DEBUG) { ...
public class class_name { public DescribeAggregateComplianceByConfigRulesResult withAggregateComplianceByConfigRules( AggregateComplianceByConfigRule... aggregateComplianceByConfigRules) { if (this.aggregateComplianceByConfigRules == null) { setAggregateComplianceByConfigRules(new com.a...
public class class_name { public DescribeAggregateComplianceByConfigRulesResult withAggregateComplianceByConfigRules( AggregateComplianceByConfigRule... aggregateComplianceByConfigRules) { if (this.aggregateComplianceByConfigRules == null) { setAggregateComplianceByConfigRules(new com.a...
public class class_name { public static String jpaFetch(PackageImportAdder adder, FetchTypeGetter... fetchTypeGetters) { Assert.notNull(adder); if (fetchTypeGetters == null) { return ""; } // we look for the first non empty conf. // not that it could be a NONE conf...
public class class_name { public static String jpaFetch(PackageImportAdder adder, FetchTypeGetter... fetchTypeGetters) { Assert.notNull(adder); if (fetchTypeGetters == null) { return ""; // depends on control dependency: [if], data = [none] } // we look for the first non e...
public class class_name { public static List<LineParametric2D_F32> pruneSimilarLines( List<LineParametric2D_F32> lines , float intensity[] , float toleranceAngle , float toleranceDist , int imgWidth , int imgHeight ) { int indexSort[] = new int[ intensity.length ]; QuickS...
public class class_name { public static List<LineParametric2D_F32> pruneSimilarLines( List<LineParametric2D_F32> lines , float intensity[] , float toleranceAngle , float toleranceDist , int imgWidth , int imgHeight ) { int indexSort[] = new int[ intensity.length ]; QuickS...
public class class_name { public String remainder() { StringBuilder accum = new StringBuilder(); while (!isEmpty()) { accum.append(consume()); } return accum.toString(); } }
public class class_name { public String remainder() { StringBuilder accum = new StringBuilder(); while (!isEmpty()) { accum.append(consume()); // depends on control dependency: [while], data = [none] } return accum.toString(); } }
public class class_name { private synchronized void waitForCommands(final ActiveContext context) { while (!scheduler.hasPendingTasks()) { // Wait until any command enters in the queue try { wait(); } catch (final InterruptedException e) { LOG.log(Level.WARNING, "InterruptedExcepti...
public class class_name { private synchronized void waitForCommands(final ActiveContext context) { while (!scheduler.hasPendingTasks()) { // Wait until any command enters in the queue try { wait(); // depends on control dependency: [try], data = [none] } catch (final InterruptedException ...
public class class_name { public void notifyDataSetChanged() { mIconsLayout.removeAllViews(); IconPagerAdapter iconAdapter = (IconPagerAdapter) mRecyclerView.getAdapter(); int count = mRecyclerView.getAdapter().getItemCount(); for (int i = 0; i < count; i++) { ImageView view...
public class class_name { public void notifyDataSetChanged() { mIconsLayout.removeAllViews(); IconPagerAdapter iconAdapter = (IconPagerAdapter) mRecyclerView.getAdapter(); int count = mRecyclerView.getAdapter().getItemCount(); for (int i = 0; i < count; i++) { ImageView view...
public class class_name { public static int getInteger( Object value) { if (value == null) { return 0; } if (value instanceof Number) { return ((Number) value).intValue(); } return Integer.valueOf(value.toString()).intValue(); } }
public class class_name { public static int getInteger( Object value) { if (value == null) { return 0; // depends on control dependency: [if], data = [none] } if (value instanceof Number) { return ((Number) value).intValue(); // depends on control dependency: [if], data = [n...
public class class_name { public static boolean needsQuoting(String str) { if (str == null) { return false; } byte[] bytes = str.getBytes(); return needsQuoting(bytes, 0 , bytes.length); } }
public class class_name { public static boolean needsQuoting(String str) { if (str == null) { return false; // depends on control dependency: [if], data = [none] } byte[] bytes = str.getBytes(); return needsQuoting(bytes, 0 , bytes.length); } }
public class class_name { boolean canCastToTypeAndMatchesConstraints( JcrSession session, JcrPropertyDefinition propertyDefinition, Value value ) { try { assert value instanceof JcrValue : "Illegal imple...
public class class_name { boolean canCastToTypeAndMatchesConstraints( JcrSession session, JcrPropertyDefinition propertyDefinition, Value value ) { try { assert value instanceof JcrValue : "Illegal imple...
public class class_name { public User setEnabled(String userName, boolean enabled, boolean broadcast) throws Exception, UnsupportedOperationException { User foundUser = findUserByName(userName, UserStatus.ANY); if (foundUser == null || foundUser.isEnabled() == enabled) { return fou...
public class class_name { public User setEnabled(String userName, boolean enabled, boolean broadcast) throws Exception, UnsupportedOperationException { User foundUser = findUserByName(userName, UserStatus.ANY); if (foundUser == null || foundUser.isEnabled() == enabled) { return fou...
public class class_name { @SuppressWarnings("unchecked") public static boolean isRunnable(Class cl, String methodName, String[] filters) { try { Method m = cl.getMethod(methodName); return isRunnable(m, filters); } catch (NoSuchMethodException | SecurityException e) { return true; } } }
public class class_name { @SuppressWarnings("unchecked") public static boolean isRunnable(Class cl, String methodName, String[] filters) { try { Method m = cl.getMethod(methodName); return isRunnable(m, filters); // depends on control dependency: [try], data = [none] } catch (NoSuchMethodException | Secur...
public class class_name { protected IMessagePublication addAsynchronousPublication(MessagePublication publication, long timeout, TimeUnit unit) { try { return pendingMessages.offer(publication, timeout, unit) ? publication.markScheduled() : publication; ...
public class class_name { protected IMessagePublication addAsynchronousPublication(MessagePublication publication, long timeout, TimeUnit unit) { try { return pendingMessages.offer(publication, timeout, unit) ? publication.markScheduled() : publication; // de...
public class class_name { private int getOxygenCount(IAtomContainer ac, IAtom atom) { List<IAtom> neighbours = ac.getConnectedAtomsList(atom); int ocounter = 0; for (IAtom neighbour : neighbours) { if (neighbour.getSymbol().equals("O")) { if (!neighbour.getFlag(CDKCo...
public class class_name { private int getOxygenCount(IAtomContainer ac, IAtom atom) { List<IAtom> neighbours = ac.getConnectedAtomsList(atom); int ocounter = 0; for (IAtom neighbour : neighbours) { if (neighbour.getSymbol().equals("O")) { if (!neighbour.getFlag(CDKCo...
public class class_name { @SafeVarargs public static <T extends Comparable<? super T>> T min(final T... values) { T result = null; if (values != null) { for (final T value : values) { if (compare(value, result, true) < 0) { result = value; ...
public class class_name { @SafeVarargs public static <T extends Comparable<? super T>> T min(final T... values) { T result = null; if (values != null) { for (final T value : values) { if (compare(value, result, true) < 0) { result = value; // depends ...
public class class_name { @Override public void decode(final FacesContext context, final UIComponent component) { final Sheet sheet = (Sheet) component; // update Sheet references to work around issue with getParent sometimes // being null for (final SheetColumn column : sheet.getCo...
public class class_name { @Override public void decode(final FacesContext context, final UIComponent component) { final Sheet sheet = (Sheet) component; // update Sheet references to work around issue with getParent sometimes // being null for (final SheetColumn column : sheet.getCo...
public class class_name { public UnicodeSet compact() { checkFrozen(); if (len != list.length) { int[] temp = new int[len]; System.arraycopy(list, 0, temp, 0, len); list = temp; } rangeList = null; buffer = null; return this; } }
public class class_name { public UnicodeSet compact() { checkFrozen(); if (len != list.length) { int[] temp = new int[len]; System.arraycopy(list, 0, temp, 0, len); // depends on control dependency: [if], data = [none] list = temp; // depends on control dependency: [...
public class class_name { private ListenerToken addDatabaseChangeListener(Executor executor, DatabaseChangeListener listener) { // NOTE: caller method is synchronized. if (dbChangeNotifier == null) { dbChangeNotifier = new ChangeNotifier<>(); registerC4DBObserver(); } ...
public class class_name { private ListenerToken addDatabaseChangeListener(Executor executor, DatabaseChangeListener listener) { // NOTE: caller method is synchronized. if (dbChangeNotifier == null) { dbChangeNotifier = new ChangeNotifier<>(); // depends on control dependency: [if], data = [...
public class class_name { public void marshall(ModerationLabel moderationLabel, ProtocolMarshaller protocolMarshaller) { if (moderationLabel == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(moderat...
public class class_name { public void marshall(ModerationLabel moderationLabel, ProtocolMarshaller protocolMarshaller) { if (moderationLabel == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(moderat...
public class class_name { protected static InternetAddress[] add(InternetAddress[] oldArr, InternetAddress newValue) { if (oldArr == null) return new InternetAddress[] { newValue }; // else { InternetAddress[] tmp = new InternetAddress[oldArr.length + 1]; for (int i = 0; i < oldArr.length; i++) { tmp[i] = old...
public class class_name { protected static InternetAddress[] add(InternetAddress[] oldArr, InternetAddress newValue) { if (oldArr == null) return new InternetAddress[] { newValue }; // else { InternetAddress[] tmp = new InternetAddress[oldArr.length + 1]; for (int i = 0; i < oldArr.length; i++) { tmp[i] = old...
public class class_name { public static SamlEndpoint ofHttpRedirect(String uri) { requireNonNull(uri, "uri"); try { return ofHttpRedirect(new URI(uri)); } catch (URISyntaxException e) { return Exceptions.throwUnsafely(e); } } }
public class class_name { public static SamlEndpoint ofHttpRedirect(String uri) { requireNonNull(uri, "uri"); try { return ofHttpRedirect(new URI(uri)); // depends on control dependency: [try], data = [none] } catch (URISyntaxException e) { return Exceptions.throwUnsafel...
public class class_name { long getPrimaryBefore(long p, boolean isCompressible) { int index = findPrimary(p); int step; long q = elements[index]; if(p == (q & 0xffffff00L)) { // Found p itself. Return the previous primary. // See if p is at the end of a previous ...
public class class_name { long getPrimaryBefore(long p, boolean isCompressible) { int index = findPrimary(p); int step; long q = elements[index]; if(p == (q & 0xffffff00L)) { // Found p itself. Return the previous primary. // See if p is at the end of a previous ...
public class class_name { @Override public void removeActiveMessages(int messages) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeActiveMessages", new Object[] { Integer.valueOf(messages), ...
public class class_name { @Override public void removeActiveMessages(int messages) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeActiveMessages", new Object[] { Integer.valueOf(messages), ...
public class class_name { public static boolean isSuperType(Type superType, Type subType) { if (superType instanceof ParameterizedType || superType instanceof Class || superType instanceof GenericArrayType) { Class<?> superClass = erase(superType); Type mappedSubType = getExactSuperType(capture(subType), super...
public class class_name { public static boolean isSuperType(Type superType, Type subType) { if (superType instanceof ParameterizedType || superType instanceof Class || superType instanceof GenericArrayType) { Class<?> superClass = erase(superType); Type mappedSubType = getExactSuperType(capture(subType), super...
public class class_name { public void marshall(ListBackupPlansRequest listBackupPlansRequest, ProtocolMarshaller protocolMarshaller) { if (listBackupPlansRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(ListBackupPlansRequest listBackupPlansRequest, ProtocolMarshaller protocolMarshaller) { if (listBackupPlansRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public Person getMother() { if (!isSet()) { return new Person(); } final Person mother = (Person) find(getToString()); if (mother == null) { return new Person(); } else { return mother; } } }
public class class_name { public Person getMother() { if (!isSet()) { return new Person(); // depends on control dependency: [if], data = [none] } final Person mother = (Person) find(getToString()); if (mother == null) { return new Person(); // depends on control...
public class class_name { @Override public Optional<Cache> getCache(final String name) { try { return Optional.fromNullable(objectMapper.readValue( requestFactory.buildGetRequest(new CacheUrl(hostName, projectId, name)).execute().getContent(), Cache.class)); } catch (final HTTPException e) { if ...
public class class_name { @Override public Optional<Cache> getCache(final String name) { try { return Optional.fromNullable(objectMapper.readValue( requestFactory.buildGetRequest(new CacheUrl(hostName, projectId, name)).execute().getContent(), Cache.class)); // depends on control dependency: [try], da...
public class class_name { @Override public EClass getIfcRelDefinesByProperties() { if (ifcRelDefinesByPropertiesEClass == null) { ifcRelDefinesByPropertiesEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(549); } return ifcRelDefinesByPropertiesEC...
public class class_name { @Override public EClass getIfcRelDefinesByProperties() { if (ifcRelDefinesByPropertiesEClass == null) { ifcRelDefinesByPropertiesEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(549); // depends on control dependency: [if], d...
public class class_name { private static <T extends Enum<T>> T getSystemOption(final String name, T defaultValue, T secureValue) { Class<T> enumType = defaultValue.getDeclaringClass(); String value = null; try { value = AccessController.doPrivileged( new PrivilegedAction...
public class class_name { private static <T extends Enum<T>> T getSystemOption(final String name, T defaultValue, T secureValue) { Class<T> enumType = defaultValue.getDeclaringClass(); String value = null; try { value = AccessController.doPrivileged( new PrivilegedAction...
public class class_name { public Object saveState(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!initialStateMarked()) { Object values[] = new Object[1]; values[0] = validationGroups; return values; ...
public class class_name { public Object saveState(FacesContext context) { if (context == null) { throw new NullPointerException(); } if (!initialStateMarked()) { Object values[] = new Object[1]; values[0] = validationGroups; // depends on control dependency: ...
public class class_name { void doTransform(String text) { try { final StringReader reader = new StringReader(text); final NetcdfDataset ncd = NcMLReader.readNcML(reader, null); final StringWriter sw = new StringWriter(10000); ncd.writeNcML(sw, null); ...
public class class_name { void doTransform(String text) { try { final StringReader reader = new StringReader(text); final NetcdfDataset ncd = NcMLReader.readNcML(reader, null); final StringWriter sw = new StringWriter(10000); ncd.writeNcML(sw, null); // depends o...
public class class_name { public final void ruleXEqualityExpression() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalXbase.g:271:2: ( ( ( rule__XEqualityExpression__Group__0 ) ) ) // InternalXbase.g:272:2: ( ( rule__XEqualityExpressi...
public class class_name { public final void ruleXEqualityExpression() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalXbase.g:271:2: ( ( ( rule__XEqualityExpression__Group__0 ) ) ) // InternalXbase.g:272:2: ( ( rule__XEqualityExpressi...
public class class_name { public static Iterable<String> getParameterNames (HttpServletRequest req) { List<String> params = new ArrayList<String>(); Enumeration<?> iter = req.getParameterNames(); while (iter.hasMoreElements()) { params.add((String)iter.nextElement()); } ...
public class class_name { public static Iterable<String> getParameterNames (HttpServletRequest req) { List<String> params = new ArrayList<String>(); Enumeration<?> iter = req.getParameterNames(); while (iter.hasMoreElements()) { params.add((String)iter.nextElement()); // depends...
public class class_name { List<Language> getLanguages() throws IllegalAccessException, InstantiationException { List<Language> languages = new ArrayList<>(); for (File ruleFile : ruleFiles) { if (ruleFile != null) { Language newLanguage = LanguageBuilder.makeAdditionalLanguage(ruleFile); ...
public class class_name { List<Language> getLanguages() throws IllegalAccessException, InstantiationException { List<Language> languages = new ArrayList<>(); for (File ruleFile : ruleFiles) { if (ruleFile != null) { Language newLanguage = LanguageBuilder.makeAdditionalLanguage(ruleFile); ...
public class class_name { protected void failAttempt(RaftMemberContext member, RaftRequest request, Throwable error) { // If any append error occurred, increment the failure count for the member. Log the first three failures, // and thereafter log 1% of the failures. This keeps the log from filling up with ann...
public class class_name { protected void failAttempt(RaftMemberContext member, RaftRequest request, Throwable error) { // If any append error occurred, increment the failure count for the member. Log the first three failures, // and thereafter log 1% of the failures. This keeps the log from filling up with ann...
public class class_name { public Boolean validate(String token, JwtUserDetail userDetails) { if (StringUtils.isBlank(token) || userDetails == null) { return false; } String key = jwtProperties.getPrefix() + Md5Utils.digestMD5(token); JwtToken jwtToken = cacheService.get(key)...
public class class_name { public Boolean validate(String token, JwtUserDetail userDetails) { if (StringUtils.isBlank(token) || userDetails == null) { return false; // depends on control dependency: [if], data = [none] } String key = jwtProperties.getPrefix() + Md5Utils.digestMD5(tok...
public class class_name { private Formatter createFormatter(Method method, Class<?>[] sig, int prio) { if (method.getReturnType() != Component.class) { throw new InvalidFormatMethodException(getClass(), method, "Format methods must return Component!"); } final Invoker i...
public class class_name { private Formatter createFormatter(Method method, Class<?>[] sig, int prio) { if (method.getReturnType() != Component.class) { throw new InvalidFormatMethodException(getClass(), method, "Format methods must return Component!"); } final Invoker i...
public class class_name { public final VEvent getOccurrence(final Date date) throws IOException, URISyntaxException, ParseException { final PeriodList consumedTime = getConsumedTime(date, date); for (final Period p : consumedTime) { if (p.getStart().equals(date)) { ...
public class class_name { public final VEvent getOccurrence(final Date date) throws IOException, URISyntaxException, ParseException { final PeriodList consumedTime = getConsumedTime(date, date); for (final Period p : consumedTime) { if (p.getStart().equals(date)) { ...
public class class_name { @Override public EClass getIfcBendingParameterSelect() { if (ifcBendingParameterSelectEClass == null) { ifcBendingParameterSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1118); } return ifcBendingParameterSelectE...
public class class_name { @Override public EClass getIfcBendingParameterSelect() { if (ifcBendingParameterSelectEClass == null) { ifcBendingParameterSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1118); // depends on control dependency: [if], ...
public class class_name { public void marshall(DescribeJobFlowsRequest describeJobFlowsRequest, ProtocolMarshaller protocolMarshaller) { if (describeJobFlowsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(DescribeJobFlowsRequest describeJobFlowsRequest, ProtocolMarshaller protocolMarshaller) { if (describeJobFlowsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } RemoteCommand remoteCommand = (RemoteCommand) component; ResponseWriter rw = context.getResponseWriter(); String clientId = remoteCommand....
public class class_name { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } RemoteCommand remoteCommand = (RemoteCommand) component; ResponseWriter rw = context.getResponseWriter(); String clientId = remoteCommand....
public class class_name { public final void merge(final Properties properties) { for (Map.Entry<Object, Object> entry : properties.entrySet()) { setProperty(entry.getKey().toString(), entry.getValue().toString()); } } }
public class class_name { public final void merge(final Properties properties) { for (Map.Entry<Object, Object> entry : properties.entrySet()) { setProperty(entry.getKey().toString(), entry.getValue().toString()); // depends on control dependency: [for], data = [entry] } } }
public class class_name { public void setForegroundPaint(final Paint PAINT) { if (null == foregroundPaint) { _foregroundPaint = PAINT; fireUpdateEvent(REDRAW_EVENT); } else { foregroundPaint.set(PAINT); } } }
public class class_name { public void setForegroundPaint(final Paint PAINT) { if (null == foregroundPaint) { _foregroundPaint = PAINT; // depends on control dependency: [if], data = [none] fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none] } els...
public class class_name { public GetAggregateDiscoveredResourceCountsResult withGroupedResourceCounts(GroupedResourceCount... groupedResourceCounts) { if (this.groupedResourceCounts == null) { setGroupedResourceCounts(new com.amazonaws.internal.SdkInternalList<GroupedResourceCount>(groupedResourceC...
public class class_name { public GetAggregateDiscoveredResourceCountsResult withGroupedResourceCounts(GroupedResourceCount... groupedResourceCounts) { if (this.groupedResourceCounts == null) { setGroupedResourceCounts(new com.amazonaws.internal.SdkInternalList<GroupedResourceCount>(groupedResourceC...
public class class_name { public void removeTarget(final ImageConsumer consumer) { if (imagesManager.debug) { Log.d(TAG, "Cancel request: " + request.getKey() + "\nLoader: " + this); } consumer.onCancel(request.url); synchronized (targets) { targets.remove(consumer); if (targets.isEmpty()) ...
public class class_name { public void removeTarget(final ImageConsumer consumer) { if (imagesManager.debug) { Log.d(TAG, "Cancel request: " + request.getKey() + "\nLoader: " + this); } // depends on control dependency: [if], data = [none] consumer.onCancel(request.url); synchronized (targets) { ta...