code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { protected void addRequestHandler(I_CmsRequestHandler handler) { if (handler == null) { return; } String[] names = handler.getHandlerNames(); for (int i = 0; i < names.length; i++) { String name = names[i]; if (m_requestHandl...
public class class_name { protected void addRequestHandler(I_CmsRequestHandler handler) { if (handler == null) { return; // depends on control dependency: [if], data = [none] } String[] names = handler.getHandlerNames(); for (int i = 0; i < names.length; i++) { ...
public class class_name { @Override public void init() { ControlType type = ctrl.getControlType(); if (type != null && type.toString().startsWith("I")) { sign = NEGATIVE; } else { sign = POSITIVE; } if (ctrl instanceof TemplateReactionRegulation) transcription = true; } }
public class class_name { @Override public void init() { ControlType type = ctrl.getControlType(); if (type != null && type.toString().startsWith("I")) { sign = NEGATIVE; // depends on control dependency: [if], data = [none] } else { sign = POSITIVE; // depends on control dependency: [if], data = ...
public class class_name { public List<LogEvent> getLogsFrom(LogLevel level) { List<LogEvent> levelLogs = new LinkedList<LogEvent>(); for (LogEvent log : this) { if (log.getLevel().compareTo(level) <= 0) { levelLogs.add(log); } } return level...
public class class_name { public List<LogEvent> getLogsFrom(LogLevel level) { List<LogEvent> levelLogs = new LinkedList<LogEvent>(); for (LogEvent log : this) { if (log.getLevel().compareTo(level) <= 0) { levelLogs.add(log); // depends on control dependency: [if], data ...
public class class_name { private static <I> boolean checkInputs(Query<I, ?> query, Collection<? extends I> inputs) { for (I sym : query.getPrefix()) { if (!inputs.contains(sym)) { return false; } } for (I sym : query.getSuffix()) { if (!input...
public class class_name { private static <I> boolean checkInputs(Query<I, ?> query, Collection<? extends I> inputs) { for (I sym : query.getPrefix()) { if (!inputs.contains(sym)) { return false; // depends on control dependency: [if], data = [none] } } fo...
public class class_name { public void setCascadingDelete(Class target, String referenceField, boolean doCascade) { ClassDescriptor cld = getBroker().getClassDescriptor(target); ObjectReferenceDescriptor ord = cld.getObjectReferenceDescriptorByName(referenceField); if(ord == null) ...
public class class_name { public void setCascadingDelete(Class target, String referenceField, boolean doCascade) { ClassDescriptor cld = getBroker().getClassDescriptor(target); ObjectReferenceDescriptor ord = cld.getObjectReferenceDescriptorByName(referenceField); if(ord == null) ...
public class class_name { private Collection<MailFolder> listMailboxes(GreenMailUser user, String mailboxPattern, boolean subscribedOnly) throws FolderException { List<MailFolder> mailboxes = new ArrayList<>(); S...
public class class_name { private Collection<MailFolder> listMailboxes(GreenMailUser user, String mailboxPattern, boolean subscribedOnly) throws FolderException { List<MailFolder> mailboxes = new ArrayList<>(); S...
public class class_name { public static int[] range(int includedStart, int excludedEnd, int step) { if (includedStart > excludedEnd) { int tmp = includedStart; includedStart = excludedEnd; excludedEnd = tmp; } if (step <= 0) { step = 1; } int deviation = excludedEnd - includedStart; ...
public class class_name { public static int[] range(int includedStart, int excludedEnd, int step) { if (includedStart > excludedEnd) { int tmp = includedStart; includedStart = excludedEnd; // depends on control dependency: [if], data = [none] excludedEnd = tmp; // depends on control dependency: [if], d...
public class class_name { public static void squashNulls( Object input ) { if ( input instanceof List ) { List inputList = (List) input; inputList.removeIf( java.util.Objects::isNull ); } else if ( input instanceof Map ) { Map<String,Object> inputMap = (Map<S...
public class class_name { public static void squashNulls( Object input ) { if ( input instanceof List ) { List inputList = (List) input; inputList.removeIf( java.util.Objects::isNull ); // depends on control dependency: [if], data = [none] } else if ( input instanceof Ma...
public class class_name { public URL discoverResource(Method m, String uri) { for (String s : possibleLocations(m, uri)) { try { URL resource = this.getClass().getClassLoader().getResource(resourcePrefix + "/" + URLDecoder.decode(s, UTF_8)); if (resource == null) { ...
public class class_name { public URL discoverResource(Method m, String uri) { for (String s : possibleLocations(m, uri)) { try { URL resource = this.getClass().getClassLoader().getResource(resourcePrefix + "/" + URLDecoder.decode(s, UTF_8)); if (resource == null) { ...
public class class_name { public void marshall(UpdateConstraintRequest updateConstraintRequest, ProtocolMarshaller protocolMarshaller) { if (updateConstraintRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(UpdateConstraintRequest updateConstraintRequest, ProtocolMarshaller protocolMarshaller) { if (updateConstraintRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { private void loadDataAsynchronously( @NonNull final Task<DataType, KeyType, ViewType, ParamType> task) { threadPool.submit(new Runnable() { @Override public void run() { if (!isCanceled()) { while (!notifyOnLoad(...
public class class_name { private void loadDataAsynchronously( @NonNull final Task<DataType, KeyType, ViewType, ParamType> task) { threadPool.submit(new Runnable() { @Override public void run() { if (!isCanceled()) { while (!notifyOnLoad(...
public class class_name { public void setPadding(float padding, Layout.Axis axis) { OrientedLayout layout = null; switch(axis) { case X: layout = mShiftLayout; break; case Y: layout = mShiftLayout; break; ...
public class class_name { public void setPadding(float padding, Layout.Axis axis) { OrientedLayout layout = null; switch(axis) { case X: layout = mShiftLayout; break; case Y: layout = mShiftLayout; break; ...
public class class_name { protected RetryInfo evaluateRetryInfo(final RetryContext retryContext, final boolean secondaryNotFound, final long retryInterval) { RetryInfo retryInfo = new RetryInfo(retryContext); // Moreover, in case of 404 when trying the secondary location, instead of retryi...
public class class_name { protected RetryInfo evaluateRetryInfo(final RetryContext retryContext, final boolean secondaryNotFound, final long retryInterval) { RetryInfo retryInfo = new RetryInfo(retryContext); // Moreover, in case of 404 when trying the secondary location, instead of retryi...
public class class_name { @Nullable // Since Bundle#getParcelableArrayList returns concrete ArrayList type, so this method follows that implementation. public static <T extends Parcelable> ArrayList<T> optParcelableArrayList(@Nullable Bundle bundle, @Nullable String key, @Nullable ArrayList<T> fallback) { ...
public class class_name { @Nullable // Since Bundle#getParcelableArrayList returns concrete ArrayList type, so this method follows that implementation. public static <T extends Parcelable> ArrayList<T> optParcelableArrayList(@Nullable Bundle bundle, @Nullable String key, @Nullable ArrayList<T> fallback) { ...
public class class_name { private void renderScopeItems(final ContextTreeConfig config, final TreeNode root, final Class<?> scope) { final List<Class<Object>> items = service.getData() .getItems(Filters.registeredBy(scope).and(Filters.type(ConfigItem.Bundle).negate())); final List<Stri...
public class class_name { private void renderScopeItems(final ContextTreeConfig config, final TreeNode root, final Class<?> scope) { final List<Class<Object>> items = service.getData() .getItems(Filters.registeredBy(scope).and(Filters.type(ConfigItem.Bundle).negate())); final List<Stri...
public class class_name { private void configureFormatter(NumberFormat formatter) { if (groupingUsedSpecified) { formatter.setGroupingUsed(isGroupingUsed); } if (maxIntegerDigitsSpecified) { formatter.setMaximumIntegerDigits(maxIntegerDigits); } if (minIn...
public class class_name { private void configureFormatter(NumberFormat formatter) { if (groupingUsedSpecified) { formatter.setGroupingUsed(isGroupingUsed); // depends on control dependency: [if], data = [none] } if (maxIntegerDigitsSpecified) { formatter.setMaximumIntege...
public class class_name { static double getZmqVersion() { XLOGGER.entry(); if (zmqVersion < 0.0) { // Not already checked. zmqVersion = 0.0; try { String strVersion = org.zeromq.ZMQ.getVersionString(); final StringTokenizer stk = new StringTokeniz...
public class class_name { static double getZmqVersion() { XLOGGER.entry(); if (zmqVersion < 0.0) { // Not already checked. zmqVersion = 0.0; // depends on control dependency: [if], data = [none] try { String strVersion = org.zeromq.ZMQ.getVersionString(); ...
public class class_name { public static byte[] toAsciiByteArray(CharSequence charSequence) { byte[] barr = new byte[charSequence.length()]; for (int i = 0; i < barr.length; i++) { char c = charSequence.charAt(i); barr[i] = (byte) ((int) (c <= 0xFF ? c : 0x3F)); } ...
public class class_name { public static byte[] toAsciiByteArray(CharSequence charSequence) { byte[] barr = new byte[charSequence.length()]; for (int i = 0; i < barr.length; i++) { char c = charSequence.charAt(i); barr[i] = (byte) ((int) (c <= 0xFF ? c : 0x3F)); // depends on con...
public class class_name { private double manhattanSegmentalDistance(NumberVector o1, double[] o2, long[] dimensions) { double result = 0; int card = 0; for(int d = BitsUtil.nextSetBit(dimensions, 0); d >= 0; d = BitsUtil.nextSetBit(dimensions, d + 1)) { result += Math.abs(o1.doubleValue(d) - o2[d]); ...
public class class_name { private double manhattanSegmentalDistance(NumberVector o1, double[] o2, long[] dimensions) { double result = 0; int card = 0; for(int d = BitsUtil.nextSetBit(dimensions, 0); d >= 0; d = BitsUtil.nextSetBit(dimensions, d + 1)) { result += Math.abs(o1.doubleValue(d) - o2[d]); ...
public class class_name { protected Boolean checkHandshake() { if (this.sentHandshake == null) { log.debug("Sent handshake is null, not checking."); return null; } if (this.receivedHandshake == null) { log.debug("Received handshake is null, not checking."); return null; } if (!this.sentHandshake...
public class class_name { protected Boolean checkHandshake() { if (this.sentHandshake == null) { log.debug("Sent handshake is null, not checking."); // depends on control dependency: [if], data = [none] return null; // depends on control dependency: [if], data = [none] } if (this.receivedHandshake == null)...
public class class_name { public void update(final float value) { if (Float.isNaN(value)) { return; } if (isEmpty()) { minValue_ = value; maxValue_ = value; } else { if (value < minValue_) { minValue_ = value; } if (value > maxValue_) { maxValue_ = value; } } if (levels_[0] ...
public class class_name { public void update(final float value) { if (Float.isNaN(value)) { return; } // depends on control dependency: [if], data = [none] if (isEmpty()) { minValue_ = value; // depends on control dependency: [if], data = [none] maxValue_ = value; // depends on control dependency: ...
public class class_name { private boolean areNextStatesAvailable(Automaton source) { ArrayList<Transition> r = possibleTransitions.get(source); if (r != null) { for (Transition t : r) { if (t.evaluate()) { return true; } } ...
public class class_name { private boolean areNextStatesAvailable(Automaton source) { ArrayList<Transition> r = possibleTransitions.get(source); if (r != null) { for (Transition t : r) { if (t.evaluate()) { return true; // depends on control dependency: [i...
public class class_name { private MutablePage getWrittenPage(long alignedAddress) { MutablePage currentPage = this.currentPage; do { final long highPageAddress = currentPage.pageAddress; if (alignedAddress == highPageAddress) { return currentPage; } ...
public class class_name { private MutablePage getWrittenPage(long alignedAddress) { MutablePage currentPage = this.currentPage; do { final long highPageAddress = currentPage.pageAddress; if (alignedAddress == highPageAddress) { return currentPage; // depends on c...
public class class_name { private void configureFromBundles() { context.lifecycle().runPhase(context.getConfiguration(), context.getConfigurationTree(), context.getEnvironment()); final Stopwatch timer = context.stat().timer(BundleTime); final Stopwatch resolutionTimer = context...
public class class_name { private void configureFromBundles() { context.lifecycle().runPhase(context.getConfiguration(), context.getConfigurationTree(), context.getEnvironment()); final Stopwatch timer = context.stat().timer(BundleTime); final Stopwatch resolutionTimer = context...
public class class_name { public static String truncate(String contentType) { if (contentType == null) { contentType = NO_TYPE_MIMETYPE; } else { Matcher matcher = TRUNCATION_REGEX.matcher(contentType); if (matcher.matches()) { contentType = matcher.grou...
public class class_name { public static String truncate(String contentType) { if (contentType == null) { contentType = NO_TYPE_MIMETYPE; // depends on control dependency: [if], data = [none] } else { Matcher matcher = TRUNCATION_REGEX.matcher(contentType); if (matche...
public class class_name { public void setImage(Resource resource) { ImageIcon image = null; if (resource != null && resource.exists()) { try { image = new ImageIcon(resource.getURL()); } catch (IOException e) { ...
public class class_name { public void setImage(Resource resource) { ImageIcon image = null; if (resource != null && resource.exists()) { try { image = new ImageIcon(resource.getURL()); // depends on control dependency: [try], data = [none] ...
public class class_name { public static void sort( List list, String sortBy, boolean ascending, boolean nullsFirst ) { if ( list == null || list.size() == 0 ) { return; } if (sortBy.equals("this")) { Collections.sort(list, thisUniversalComparator(ascending, nullsFirst)...
public class class_name { public static void sort( List list, String sortBy, boolean ascending, boolean nullsFirst ) { if ( list == null || list.size() == 0 ) { return; // depends on control dependency: [if], data = [none] } if (sortBy.equals("this")) { Collections.sor...
public class class_name { public static final Parser<Date> instance() { // NOPMD it's thread save! if (MonthParser.instanceParser == null) { synchronized (MonthParser.class) { if (MonthParser.instanceParser == null) { MonthParser.instanceParser = new MonthParser("yyyy-MM"); } ...
public class class_name { public static final Parser<Date> instance() { // NOPMD it's thread save! if (MonthParser.instanceParser == null) { synchronized (MonthParser.class) { // depends on control dependency: [if], data = [none] if (MonthParser.instanceParser == null) { MonthParser.instanc...
public class class_name { protected void unpackEmbeddedDb() { if (configuration.getBinariesClassPathLocation() == null) { logger.info("Not unpacking any embedded database (as BinariesClassPathLocation configuration is null)"); return; } try { Util.extractFro...
public class class_name { protected void unpackEmbeddedDb() { if (configuration.getBinariesClassPathLocation() == null) { logger.info("Not unpacking any embedded database (as BinariesClassPathLocation configuration is null)"); // depends on control dependency: [if], data = [null)] retur...
public class class_name { public static boolean isAbstractInterface(Class<?> valueClass, int rmicCompatible) { if (JITDeploy.isRMICCompatibleValues(rmicCompatible)) { for (Method method : valueClass.getMethods()) { if (!hasRemoteException(method)) ...
public class class_name { public static boolean isAbstractInterface(Class<?> valueClass, int rmicCompatible) { if (JITDeploy.isRMICCompatibleValues(rmicCompatible)) { for (Method method : valueClass.getMethods()) { if (!hasRemoteException(method)) ...
public class class_name { protected boolean onBusLineAdded(BusLine line, int index) { if (this.autoUpdate.get()) { try { addMapLayer(index, new BusLineLayer(line, isLayerAutoUpdated())); return true; } catch (Throwable exception) { // } } return false; } }
public class class_name { protected boolean onBusLineAdded(BusLine line, int index) { if (this.autoUpdate.get()) { try { addMapLayer(index, new BusLineLayer(line, isLayerAutoUpdated())); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [no...
public class class_name { protected final void notifyStarted() { monitor.enter(); try { // We have to examine the internal state of the snapshot here to properly handle the stop // while starting case. if (snapshot.state != STARTING) { IllegalStateException failure = new I...
public class class_name { protected final void notifyStarted() { monitor.enter(); try { // We have to examine the internal state of the snapshot here to properly handle the stop // while starting case. if (snapshot.state != STARTING) { IllegalStateException failure = new I...
public class class_name { protected boolean isSarlFile(IPackageFragment packageFragment, String filename) { if (isFileExists(packageFragment, filename, this.sarlFileExtension)) { return true; } final IJavaProject project = getPackageFragmentRoot().getJavaProject(); if (project != null) { try { final ...
public class class_name { protected boolean isSarlFile(IPackageFragment packageFragment, String filename) { if (isFileExists(packageFragment, filename, this.sarlFileExtension)) { return true; // depends on control dependency: [if], data = [none] } final IJavaProject project = getPackageFragmentRoot().getJavaP...
public class class_name { @Override protected void onShutDown() { for (PoolKey<K> k : pool.keySet()) { PoolableObjects<V> pobjs = objectPool(k, Boolean.FALSE); pobjs.shutdown(); } } }
public class class_name { @Override protected void onShutDown() { for (PoolKey<K> k : pool.keySet()) { PoolableObjects<V> pobjs = objectPool(k, Boolean.FALSE); pobjs.shutdown(); // depends on control dependency: [for], data = [none] } } }
public class class_name { private MethodSpec newBuilder(NameAllocator nameAllocator, MessageType message) { NameAllocator localNameAllocator = nameAllocator.clone(); String builderName = localNameAllocator.newName("builder"); ClassName javaType = (ClassName) typeName(message.type()); ClassName builder...
public class class_name { private MethodSpec newBuilder(NameAllocator nameAllocator, MessageType message) { NameAllocator localNameAllocator = nameAllocator.clone(); String builderName = localNameAllocator.newName("builder"); ClassName javaType = (ClassName) typeName(message.type()); ClassName builder...
public class class_name { public void push(double value) { if (top >= stack.length) { stack = Arrays.copyOf(stack, (int) (stack.length*growFactor)); } stack[top++] = value; } }
public class class_name { public void push(double value) { if (top >= stack.length) { stack = Arrays.copyOf(stack, (int) (stack.length*growFactor)); // depends on control dependency: [if], data = [none] } stack[top++] = value; } }
public class class_name { public Histogram toHistogram(int size) { Preconditions.checkArgument(size > 1, "histogram size must be greater than 1"); float[] breaks = new float[size + 1]; float delta = (max - min) / (size - 1); breaks[0] = min - delta; for (int i = 1; i < breaks.length - 1; ++i) { ...
public class class_name { public Histogram toHistogram(int size) { Preconditions.checkArgument(size > 1, "histogram size must be greater than 1"); float[] breaks = new float[size + 1]; float delta = (max - min) / (size - 1); breaks[0] = min - delta; for (int i = 1; i < breaks.length - 1; ++i) { ...
public class class_name { public void free() { super.free(); if (m_closeOnFreeBehavior != null) if (m_record != null) { FileListener listener = m_closeOnFreeBehavior; m_closeOnFreeBehavior = null; m_record.removeListener(listener, false); ...
public class class_name { public void free() { super.free(); if (m_closeOnFreeBehavior != null) if (m_record != null) { FileListener listener = m_closeOnFreeBehavior; m_closeOnFreeBehavior = null; // depends on control dependency: [if], data = [none] ...
public class class_name { public static QueryParameters updateTypesByName(QueryParameters original, QueryParameters source) { QueryParameters updatedParams = new QueryParameters(original); if (source != null) { for (String sourceKey : source.keySet()) { if (updatedPara...
public class class_name { public static QueryParameters updateTypesByName(QueryParameters original, QueryParameters source) { QueryParameters updatedParams = new QueryParameters(original); if (source != null) { for (String sourceKey : source.keySet()) { if (updatedPara...
public class class_name { protected PseudoExpression expression() throws ParserException { List<Item> items = new ArrayList<Item>(); StringBuilder sb = new StringBuilder(); int initialPos = pos; if (current == '\'' || current == '"') { //string Character quot...
public class class_name { protected PseudoExpression expression() throws ParserException { List<Item> items = new ArrayList<Item>(); StringBuilder sb = new StringBuilder(); int initialPos = pos; if (current == '\'' || current == '"') { //string Character quot...
public class class_name { @Override public Map<String, Object> detail() { final Map<String, Object> details = super.detail(); details.put("link", link); details.put("caption", caption); if (pendingPhotos != null && pendingPhotos.size() > 0) { PhotoType type = pendingPho...
public class class_name { @Override public Map<String, Object> detail() { final Map<String, Object> details = super.detail(); details.put("link", link); details.put("caption", caption); if (pendingPhotos != null && pendingPhotos.size() > 0) { PhotoType type = pendingPho...
public class class_name { public java.util.List<Queue> getQueues() { if (queues == null) { queues = new com.amazonaws.internal.SdkInternalList<Queue>(); } return queues; } }
public class class_name { public java.util.List<Queue> getQueues() { if (queues == null) { queues = new com.amazonaws.internal.SdkInternalList<Queue>(); // depends on control dependency: [if], data = [none] } return queues; } }
public class class_name { public synchronized int purge() { int recordsRemaining = -1; SQLiteDatabase db = null; Cursor cursor = null; try { db = getWritableDatabase(); // Purge records. long earliestValidTime = System.currentTimeMillis() - RECORD_EX...
public class class_name { public synchronized int purge() { int recordsRemaining = -1; SQLiteDatabase db = null; Cursor cursor = null; try { db = getWritableDatabase(); // depends on control dependency: [try], data = [none] // Purge records. long ear...
public class class_name { public boolean isArtefactClass(@SuppressWarnings("rawtypes") Class clazz) { if (clazz == null) return false; boolean ok = clazz.getName().endsWith(artefactSuffix) && !Closure.class.isAssignableFrom(clazz); if (ok && !allowAbstract) { ok &= !Modifier.isAbst...
public class class_name { public boolean isArtefactClass(@SuppressWarnings("rawtypes") Class clazz) { if (clazz == null) return false; boolean ok = clazz.getName().endsWith(artefactSuffix) && !Closure.class.isAssignableFrom(clazz); if (ok && !allowAbstract) { ok &= !Modifier.isAbst...
public class class_name { public static Date parseUsingPattern(String date, String pattern) { SimpleDateFormat df = new SimpleDateFormat(pattern); df.setLenient(false); try { ParsePosition pp = new ParsePosition(0); Date d = df.parse(date, pp); if (d != null...
public class class_name { public static Date parseUsingPattern(String date, String pattern) { SimpleDateFormat df = new SimpleDateFormat(pattern); df.setLenient(false); try { ParsePosition pp = new ParsePosition(0); Date d = df.parse(date, pp); if (d != null...
public class class_name { public int[] extractUShortArray() { final short[] argOut = element.value.ushort_att_value(); final int[] val = new int[argOut.length]; for (int i = 0; i < argOut.length; i++) { val[i] = 0xFFFF & argOut[i]; } return val; } }
public class class_name { public int[] extractUShortArray() { final short[] argOut = element.value.ushort_att_value(); final int[] val = new int[argOut.length]; for (int i = 0; i < argOut.length; i++) { val[i] = 0xFFFF & argOut[i]; // depends on control dependency: [for], data = [i]...
public class class_name { public void setItemFocusEnabled(boolean enabled) { if (enabled != mItemFocusEnabled) { mItemFocusEnabled = enabled; Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "setItemFocusEnabled(%s): item focus enabled: %b", getName(), enabled); for (Wi...
public class class_name { public void setItemFocusEnabled(boolean enabled) { if (enabled != mItemFocusEnabled) { mItemFocusEnabled = enabled; // depends on control dependency: [if], data = [none] Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "setItemFocusEnabled(%s): item focus enabled: %b", ...
public class class_name { public void setSymbolPosition(CurrencySymbolPosition posn) { if (posn == null) { posn = DEFAULT_CURRENCY_SYMBOL_POSITION; } set(ProjectField.CURRENCY_SYMBOL_POSITION, posn); } }
public class class_name { public void setSymbolPosition(CurrencySymbolPosition posn) { if (posn == null) { posn = DEFAULT_CURRENCY_SYMBOL_POSITION; // depends on control dependency: [if], data = [none] } set(ProjectField.CURRENCY_SYMBOL_POSITION, posn); } }
public class class_name { public void marshall(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest, ProtocolMarshaller protocolMarshaller) { if (listCuratedEnvironmentImagesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest, ProtocolMarshaller protocolMarshaller) { if (listCuratedEnvironmentImagesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void warn(Object o) { if (o instanceof Throwable) { logger.warn(o, (Throwable) o); } else { logger.warn(o); } } }
public class class_name { public void warn(Object o) { if (o instanceof Throwable) { logger.warn(o, (Throwable) o); // depends on control dependency: [if], data = [none] } else { logger.warn(o); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void readImageResources(final boolean pParseData) throws IOException { readHeader(); if (pParseData && metadata.imageResources == null || metadata.layerAndMaskInfoStart == 0) { imageInput.seek(metadata.imageResourcesStart); long imageResources...
public class class_name { private void readImageResources(final boolean pParseData) throws IOException { readHeader(); if (pParseData && metadata.imageResources == null || metadata.layerAndMaskInfoStart == 0) { imageInput.seek(metadata.imageResourcesStart); long imageResources...
public class class_name { protected void addSiblings(Set<CmsResource> publishResources) { List<CmsResource> toAdd = Lists.newArrayList(); for (CmsResource resource : publishResources) { if (!resource.getState().isUnchanged()) { try { List<CmsResource> ch...
public class class_name { protected void addSiblings(Set<CmsResource> publishResources) { List<CmsResource> toAdd = Lists.newArrayList(); for (CmsResource resource : publishResources) { if (!resource.getState().isUnchanged()) { try { List<CmsResource> ch...
public class class_name { @Override public void run() { if (state.compareAndSet(State.STARTED, State.STOPPING)) { for (final Runnable hook : hooks) { try { hook.run(); } catch (final Throwable t) { LOGGER.error(SHUTDOWN_HOO...
public class class_name { @Override public void run() { if (state.compareAndSet(State.STARTED, State.STOPPING)) { for (final Runnable hook : hooks) { try { hook.run(); // depends on control dependency: [try], data = [none] } catch (final Throw...
public class class_name { public R run(A... arg) throws E { final TransactionManager tm = getTransactionManager(); Transaction tx = null; try { if (tm != null) { try { tx = tm.suspend(); } catch (SystemException...
public class class_name { public R run(A... arg) throws E { final TransactionManager tm = getTransactionManager(); Transaction tx = null; try { if (tm != null) { try { tx = tm.suspend(); // depends on control dependency: [try], data = ...
public class class_name { public boolean isValidProfileSize(String profileSize) { if (StringUtils.isBlank(profileSize) || profileSizes.isEmpty()) { return false; } return profileSizes.contains(profileSize); } }
public class class_name { public boolean isValidProfileSize(String profileSize) { if (StringUtils.isBlank(profileSize) || profileSizes.isEmpty()) { return false; // depends on control dependency: [if], data = [none] } return profileSizes.contains(profileSize); } }
public class class_name { @SuppressWarnings("unchecked") // types must agree public static <T> T createMockObject(Type type) { Class<T> rawType; if (type instanceof ParameterizedType) { rawType = (Class<T>) ((ParameterizedType) type).getRawType(); } else if (type instanceof Class) { rawType ...
public class class_name { @SuppressWarnings("unchecked") // types must agree public static <T> T createMockObject(Type type) { Class<T> rawType; if (type instanceof ParameterizedType) { rawType = (Class<T>) ((ParameterizedType) type).getRawType(); // depends on control dependency: [if], data = [none] ...
public class class_name { private static String toReadableString(Collection<TypedDependency> dependencies) { StringBuilder buf = new StringBuilder(); buf.append(String.format("%-20s%-20s%-20s%n", "dep", "reln", "gov")); buf.append(String.format("%-20s%-20s%-20s%n", "---", "----", "---")); for (Type...
public class class_name { private static String toReadableString(Collection<TypedDependency> dependencies) { StringBuilder buf = new StringBuilder(); buf.append(String.format("%-20s%-20s%-20s%n", "dep", "reln", "gov")); buf.append(String.format("%-20s%-20s%-20s%n", "---", "----", "---")); for (Type...
public class class_name { public File convertDocumentToPDF(File inputDocumentParam) { if(inputDocumentParam == null || !inputDocumentParam.exists()) { throw new UtilException( "Input document to convert not provided or does not exist.", UtilException.ErrorCode.COMMAND); } if(!inputDocumentPa...
public class class_name { public File convertDocumentToPDF(File inputDocumentParam) { if(inputDocumentParam == null || !inputDocumentParam.exists()) { throw new UtilException( "Input document to convert not provided or does not exist.", UtilException.ErrorCode.COMMAND); } if(!inputDocumentPa...
public class class_name { @Override public void sawOpcode(int seen) { JPAUserValue userValue = null; try { switch (seen) { case Const.INVOKEVIRTUAL: case Const.INVOKEINTERFACE: { userValue = processInvoke(); break;...
public class class_name { @Override public void sawOpcode(int seen) { JPAUserValue userValue = null; try { switch (seen) { case Const.INVOKEVIRTUAL: case Const.INVOKEINTERFACE: { userValue = processInvoke(); break;...
public class class_name { private static String notReadyToString(Iterable<HasMetadata> resources) { StringBuilder sb = new StringBuilder(); sb.append("Resources that are not ready: "); boolean first = true; for (HasMetadata r : resources) { if (first) { first = false; } else { ...
public class class_name { private static String notReadyToString(Iterable<HasMetadata> resources) { StringBuilder sb = new StringBuilder(); sb.append("Resources that are not ready: "); boolean first = true; for (HasMetadata r : resources) { if (first) { first = false; // depends on contro...
public class class_name { public List<ConfigPropertyType<ConnectionDefinitionType<T>>> getAllConfigProperty() { List<ConfigPropertyType<ConnectionDefinitionType<T>>> list = new ArrayList<ConfigPropertyType<ConnectionDefinitionType<T>>>(); List<Node> nodeList = childNode.get("config-property"); for...
public class class_name { public List<ConfigPropertyType<ConnectionDefinitionType<T>>> getAllConfigProperty() { List<ConfigPropertyType<ConnectionDefinitionType<T>>> list = new ArrayList<ConfigPropertyType<ConnectionDefinitionType<T>>>(); List<Node> nodeList = childNode.get("config-property"); for...
public class class_name { @Override public PipelineEventReader<XMLEventReader, XMLEvent> getEventReader( HttpServletRequest request, HttpServletResponse response) { final PipelineEventReader<XMLEventReader, XMLEvent> pipelineEventReader = this.wrappedComponent.getEventReader(req...
public class class_name { @Override public PipelineEventReader<XMLEventReader, XMLEvent> getEventReader( HttpServletRequest request, HttpServletResponse response) { final PipelineEventReader<XMLEventReader, XMLEvent> pipelineEventReader = this.wrappedComponent.getEventReader(req...
public class class_name { public static InetAddress forUriString(String hostAddr) { Preconditions.checkNotNull(hostAddr); // Decide if this should be an IPv6 or IPv4 address. String ipString; int expectBytes; if (hostAddr.startsWith("[") && hostAddr.endsWith("]")) { ipString = hostAddr.subst...
public class class_name { public static InetAddress forUriString(String hostAddr) { Preconditions.checkNotNull(hostAddr); // Decide if this should be an IPv6 or IPv4 address. String ipString; int expectBytes; if (hostAddr.startsWith("[") && hostAddr.endsWith("]")) { ipString = hostAddr.subst...
public class class_name { public static FormatterBuilder createFormatterBuilder(Properties formatterProperties) throws Exception { FormatterBuilder builder; AbstractFormatterFactory factory; if (formatterProperties.size() > 0) { String formatterClass = formatterProperties.getPrope...
public class class_name { public static FormatterBuilder createFormatterBuilder(Properties formatterProperties) throws Exception { FormatterBuilder builder; AbstractFormatterFactory factory; if (formatterProperties.size() > 0) { String formatterClass = formatterProperties.getPrope...
public class class_name { static Dimension getSize(int pOriginalWidth, int pOriginalHeight, int pWidth, int pHeight, boolean pPercent, boolean pUniform) { // If uniform, make sure width and height are scaled the same amount ...
public class class_name { static Dimension getSize(int pOriginalWidth, int pOriginalHeight, int pWidth, int pHeight, boolean pPercent, boolean pUniform) { // If uniform, make sure width and height are scaled the same amount ...
public class class_name { boolean matchText( final boolean blockMatching, final int markupLevel, final int markupBlockIndex) { checkMarkupLevel(markupLevel); if (this.markupSelectorItem.anyLevel() || markupLevel == 0 || (this.prev != null && this.prev.matchedMarkupLevels[marku...
public class class_name { boolean matchText( final boolean blockMatching, final int markupLevel, final int markupBlockIndex) { checkMarkupLevel(markupLevel); if (this.markupSelectorItem.anyLevel() || markupLevel == 0 || (this.prev != null && this.prev.matchedMarkupLevels[marku...
public class class_name { public VpnConnectionOptionsSpecification withTunnelOptions(VpnTunnelOptionsSpecification... tunnelOptions) { if (this.tunnelOptions == null) { setTunnelOptions(new com.amazonaws.internal.SdkInternalList<VpnTunnelOptionsSpecification>(tunnelOptions.length)); } ...
public class class_name { public VpnConnectionOptionsSpecification withTunnelOptions(VpnTunnelOptionsSpecification... tunnelOptions) { if (this.tunnelOptions == null) { setTunnelOptions(new com.amazonaws.internal.SdkInternalList<VpnTunnelOptionsSpecification>(tunnelOptions.length)); // depends on c...
public class class_name { protected String findValue(T object,String path) { String value=null; if((path!=null)&&(object!=null)) { //find value value=this.findValueImpl(object,path); if(value!=null) { value=value.trim(); ...
public class class_name { protected String findValue(T object,String path) { String value=null; if((path!=null)&&(object!=null)) { //find value value=this.findValueImpl(object,path); // depends on control dependency: [if], data = [none] if(value!=null) ...
public class class_name { public void writer(String bucketName, String blobName) throws IOException { // [START writer] BlobId blobId = BlobId.of(bucketName, blobName); byte[] content = "Hello, World!".getBytes(UTF_8); BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build()...
public class class_name { public void writer(String bucketName, String blobName) throws IOException { // [START writer] BlobId blobId = BlobId.of(bucketName, blobName); byte[] content = "Hello, World!".getBytes(UTF_8); BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build()...
public class class_name { private void saveNestedVariables() { if (nestedVars != null) { Iterator iter = nestedVars.iterator(); while (iter.hasNext()) { String varName = (String) iter.next(); varName = findAlias(varName); Object obj = invokingJspCtxt.getAttribute(varName); if (obj != null) { o...
public class class_name { private void saveNestedVariables() { if (nestedVars != null) { Iterator iter = nestedVars.iterator(); while (iter.hasNext()) { String varName = (String) iter.next(); varName = findAlias(varName); // depends on control dependency: [while], data = [none] Object obj = invokingJs...
public class class_name { public static String replace(String text, String searchString, String replacement, int max) { if (isEmpty(text) || isEmpty(searchString) || replacement == null || max == 0) { return text; } int start = 0; int end = text.indexOf(searchString, start);...
public class class_name { public static String replace(String text, String searchString, String replacement, int max) { if (isEmpty(text) || isEmpty(searchString) || replacement == null || max == 0) { return text; // depends on control dependency: [if], data = [none] } int start = 0...
public class class_name { public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { CdnConfigurationServiceInterface cdnConfigurationService = adManagerServices.get(session, CdnConfigurationServiceInterface.class); // Create a statement...
public class class_name { public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { CdnConfigurationServiceInterface cdnConfigurationService = adManagerServices.get(session, CdnConfigurationServiceInterface.class); // Create a statement...
public class class_name { public static UUID getOrCreateUserToken() { UUID userToken; if (Request.getPerThreadRequestData().getRequestId() != null) { try { userToken = UUID.fromString(Request.getPerThreadRequestData().getRequestId()); } catch (final IllegalArgum...
public class class_name { public static UUID getOrCreateUserToken() { UUID userToken; if (Request.getPerThreadRequestData().getRequestId() != null) { try { userToken = UUID.fromString(Request.getPerThreadRequestData().getRequestId()); // depends on control dependency: [try]...
public class class_name { public GVRTexture loadTexture(GVRAndroidResource resource, TextureCallback callback, GVRTextureParameters texparams, int priority, int quality) { if (texparams == null) { texparams = mDefaultTextureParameters; } GVRTexture texture = new GVRTextu...
public class class_name { public GVRTexture loadTexture(GVRAndroidResource resource, TextureCallback callback, GVRTextureParameters texparams, int priority, int quality) { if (texparams == null) { texparams = mDefaultTextureParameters; // depends on control dependency: [if], data = [non...
public class class_name { public void saveToFilename(String file) { try { File tgtFile = new File(file); BufferedWriter out = new BufferedWriter(new FileWriter(tgtFile)); // output index first, blank delimiter, outline feature index, then weights labelIndex.saveToWriter(out); fe...
public class class_name { public void saveToFilename(String file) { try { File tgtFile = new File(file); BufferedWriter out = new BufferedWriter(new FileWriter(tgtFile)); // output index first, blank delimiter, outline feature index, then weights labelIndex.saveToWriter(out); // depen...
public class class_name { public static final void chkBMTFromAnnotations(Method[] beanMethods, J2EEName j2eeName) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "chkBMTFromAnnotations"); javax.ejb.Transaction...
public class class_name { public static final void chkBMTFromAnnotations(Method[] beanMethods, J2EEName j2eeName) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "chkBMTFromAnnotations"); javax.ejb.Transaction...
public class class_name { protected void renderDirectly(int statusCode, RouteContext routeContext) { if (application.getPippoSettings().isProd()) { routeContext.getResponse().commit(); } else { if (statusCode == HttpConstants.StatusCode.NOT_FOUND) { StringBuilder...
public class class_name { protected void renderDirectly(int statusCode, RouteContext routeContext) { if (application.getPippoSettings().isProd()) { routeContext.getResponse().commit(); // depends on control dependency: [if], data = [none] } else { if (statusCode == HttpConstants...
public class class_name { public GetReservedInstancesExchangeQuoteResult withReservedInstanceValueSet(ReservedInstanceReservationValue... reservedInstanceValueSet) { if (this.reservedInstanceValueSet == null) { setReservedInstanceValueSet(new com.amazonaws.internal.SdkInternalList<ReservedInstanceR...
public class class_name { public GetReservedInstancesExchangeQuoteResult withReservedInstanceValueSet(ReservedInstanceReservationValue... reservedInstanceValueSet) { if (this.reservedInstanceValueSet == null) { setReservedInstanceValueSet(new com.amazonaws.internal.SdkInternalList<ReservedInstanceR...
public class class_name { public void addDirtyRegion (Rectangle rect) { // Only add dirty regions where rect intersects our actual media as the set region will // propagate out to the repaint manager. for (AbstractMedia media : _metamgr) { Rectangle intersection = media.getBound...
public class class_name { public void addDirtyRegion (Rectangle rect) { // Only add dirty regions where rect intersects our actual media as the set region will // propagate out to the repaint manager. for (AbstractMedia media : _metamgr) { Rectangle intersection = media.getBound...
public class class_name { public static char[] toPrimitive(Character[] array, char valueForNull) { if (array == null) { return null; } else if (array.length == 0) { return EMPTY_CHAR_ARRAY; } final char[] result = new char[array.length]; for (int i = 0; i...
public class class_name { public static char[] toPrimitive(Character[] array, char valueForNull) { if (array == null) { return null; // depends on control dependency: [if], data = [none] } else if (array.length == 0) { return EMPTY_CHAR_ARRAY; // depends on control dependency: [...
public class class_name { public FacesConfigPropertyType<FacesConfigConverterType<T>> getOrCreateProperty() { List<Node> nodeList = childNode.get("property"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigPropertyTypeImpl<FacesConfigConverterType<T>>(this, "propert...
public class class_name { public FacesConfigPropertyType<FacesConfigConverterType<T>> getOrCreateProperty() { List<Node> nodeList = childNode.get("property"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigPropertyTypeImpl<FacesConfigConverterType<T>>(this, "propert...
public class class_name { public void remove(E edge) { if (! edge.added){ return; } boolean contained; contained = edges.remove(edge); assert(contained); contained = edge.getChild().inEdges.remove(edge); assert(contained); contained =...
public class class_name { public void remove(E edge) { if (! edge.added){ return; // depends on control dependency: [if], data = [none] } boolean contained; contained = edges.remove(edge); assert(contained); contained = edge.getChild().inEdges.remove...
public class class_name { public static String encode(Byte[] in) { byte[] tmp = new byte[in.length]; for(int i = 0; i < tmp.length; i++) { tmp[i] = in[i]; } return encode(tmp); } }
public class class_name { public static String encode(Byte[] in) { byte[] tmp = new byte[in.length]; for(int i = 0; i < tmp.length; i++) { tmp[i] = in[i]; // depends on control dependency: [for], data = [i] } return encode(tmp); } }
public class class_name { @Override public IScan getScanByNumClosest(int scanNum) { IScan result = null; Map.Entry<Integer, IScan> lower = getNum2scan().lowerEntry(scanNum); Map.Entry<Integer, IScan> upper = getNum2scan().ceilingEntry(scanNum); if (upper != null && lower != null) { result = ...
public class class_name { @Override public IScan getScanByNumClosest(int scanNum) { IScan result = null; Map.Entry<Integer, IScan> lower = getNum2scan().lowerEntry(scanNum); Map.Entry<Integer, IScan> upper = getNum2scan().ceilingEntry(scanNum); if (upper != null && lower != null) { result = ...
public class class_name { public Object get(Object old) { if (old == null || old.getClass() == String.class) { return old; } return oldNewMap.get(old); } }
public class class_name { public Object get(Object old) { if (old == null || old.getClass() == String.class) { return old; // depends on control dependency: [if], data = [none] } return oldNewMap.get(old); } }
public class class_name { public Element appendToXml(Element parentNode, List<String> parametersToIgnore) { for (Map.Entry<String, Serializable> entry : m_configurationObjects.entrySet()) { String name = entry.getKey(); // check if the parameter should be ignored if ((...
public class class_name { public Element appendToXml(Element parentNode, List<String> parametersToIgnore) { for (Map.Entry<String, Serializable> entry : m_configurationObjects.entrySet()) { String name = entry.getKey(); // check if the parameter should be ignored if ((...
public class class_name { @Action(name = "Convert XML to Json", outputs = { @Output(NAMESPACES_PREFIXES), @Output(NAMESPACES_URIS), @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) ...
public class class_name { @Action(name = "Convert XML to Json", outputs = { @Output(NAMESPACES_PREFIXES), @Output(NAMESPACES_URIS), @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) ...
public class class_name { private void setExcludeDefaultInterceptors() { EJBInterceptorBinding binding = ivClassInterceptorBinding; boolean useAnnotation = false; if (binding == null) { // Use annotation provided metadata-complete is false. useAnnotation = !i...
public class class_name { private void setExcludeDefaultInterceptors() { EJBInterceptorBinding binding = ivClassInterceptorBinding; boolean useAnnotation = false; if (binding == null) { // Use annotation provided metadata-complete is false. useAnnotation = !i...
public class class_name { public static File normalizePath(File file) { if (file == null) { return new File(""); } String normalizedFile = file.getPath(); // remove all '//'... String quotedSeparator = Pattern.quote(File.separator); String replacementSeparator = File.separator.equals("/") ? File.separator ...
public class class_name { public static File normalizePath(File file) { if (file == null) { return new File(""); // depends on control dependency: [if], data = [none] } String normalizedFile = file.getPath(); // remove all '//'... String quotedSeparator = Pattern.quote(File.separator); String replacementSep...
public class class_name { public static String escapeHtml(String htmlString) { StringBuffer sb = new StringBuffer(htmlString.length()); // true if last char was blank boolean lastWasBlankChar = false; int len = htmlString.length(); char c; for (int i = 0; i < len; i++) { c = htmlString.charAt(i); ...
public class class_name { public static String escapeHtml(String htmlString) { StringBuffer sb = new StringBuffer(htmlString.length()); // true if last char was blank boolean lastWasBlankChar = false; int len = htmlString.length(); char c; for (int i = 0; i < len; i++) { c = htmlString.charAt(i); // ...
public class class_name { public Map<String, String> extract(InputStream xml, String[] fields) { Map<String, String> parsedFields = Maps.newHashMap(); try { DocumentBuilder documentBuilder = documentBuilderSupplier.get(); if (documentBuilder == null) { logger.warn("Could not create Document...
public class class_name { public Map<String, String> extract(InputStream xml, String[] fields) { Map<String, String> parsedFields = Maps.newHashMap(); try { DocumentBuilder documentBuilder = documentBuilderSupplier.get(); if (documentBuilder == null) { logger.warn("Could not create Document...
public class class_name { @Deprecated public Decoder<S> getDecoder(int generation) throws FetchNoneException, FetchException { try { synchronized (mLayout) { IntHashMap decoders = mDecoders; if (decoders == null) { mDecoders = decoders =...
public class class_name { @Deprecated public Decoder<S> getDecoder(int generation) throws FetchNoneException, FetchException { try { synchronized (mLayout) { IntHashMap decoders = mDecoders; if (decoders == null) { mDecoders = decoders =...
public class class_name { private boolean matches(MethodDescription target, List<? extends TypeDefinition> typeDefinitions, Set<TypeDescription> duplicates) { for (TypeDefinition anInterface : typeDefinitions) { if (duplicates.add(anInterface.asErasure()) && (matches(target, anInterface) || matches...
public class class_name { private boolean matches(MethodDescription target, List<? extends TypeDefinition> typeDefinitions, Set<TypeDescription> duplicates) { for (TypeDefinition anInterface : typeDefinitions) { if (duplicates.add(anInterface.asErasure()) && (matches(target, anInterface) || matches...
public class class_name { public Collection<String> getValues(String property) { Multimap<Optional<String>, String> values = properties.get(property); if (values == null) { return Collections.emptyList(); } return values.values(); } }
public class class_name { public Collection<String> getValues(String property) { Multimap<Optional<String>, String> values = properties.get(property); if (values == null) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } return values...
public class class_name { protected void closeStatement(PreparedStatement preparedStatementParam, ResultSet resultSetParam ) { if(resultSetParam == null) { this.closeStatement(preparedStatementParam); return; } try { resultSetParam.close(); this.closeStatement(preparedStatementParam); }...
public class class_name { protected void closeStatement(PreparedStatement preparedStatementParam, ResultSet resultSetParam ) { if(resultSetParam == null) { this.closeStatement(preparedStatementParam); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if...
public class class_name { private static String toJsonCollection(Collection objects) { Iterator iterator = objects.iterator(); if (!iterator.hasNext()) { return ""; } final Object first = iterator.next(); if (!iterator.hasNext()) { return toJson(first); ...
public class class_name { private static String toJsonCollection(Collection objects) { Iterator iterator = objects.iterator(); if (!iterator.hasNext()) { return ""; // depends on control dependency: [if], data = [none] } final Object first = iterator.next(); if (!ite...
public class class_name { public QueryNode[] getPredicates() { if (operands == null) { return EMPTY; } else { return (QueryNode[]) operands.toArray(new QueryNode[operands.size()]); } } }
public class class_name { public QueryNode[] getPredicates() { if (operands == null) { return EMPTY; // depends on control dependency: [if], data = [none] } else { return (QueryNode[]) operands.toArray(new QueryNode[operands.size()]); // depends on control dependency: [if], data...
public class class_name { public AssetAttributes withIpv4Addresses(String... ipv4Addresses) { if (this.ipv4Addresses == null) { setIpv4Addresses(new java.util.ArrayList<String>(ipv4Addresses.length)); } for (String ele : ipv4Addresses) { this.ipv4Addresses.add(ele); ...
public class class_name { public AssetAttributes withIpv4Addresses(String... ipv4Addresses) { if (this.ipv4Addresses == null) { setIpv4Addresses(new java.util.ArrayList<String>(ipv4Addresses.length)); // depends on control dependency: [if], data = [none] } for (String ele : ipv4Addr...
public class class_name { private static boolean processAtomLabels(final CharIter iter, final Map<Integer, String> dest) { int atomIdx = 0; while (iter.hasNext()) { // fast forward through empty labels while (iter.nextIf(';')) atomIdx++; char c = it...
public class class_name { private static boolean processAtomLabels(final CharIter iter, final Map<Integer, String> dest) { int atomIdx = 0; while (iter.hasNext()) { // fast forward through empty labels while (iter.nextIf(';')) atomIdx++; char c = it...
public class class_name { @Override public boolean removeListener(NotificationListener listenerToRemove) { // Find the listener we actually registered and remove that NotificationListener interpretedListener = this.listeners.remove(listenerToRemove); if (interpretedListener != null) { ...
public class class_name { @Override public boolean removeListener(NotificationListener listenerToRemove) { // Find the listener we actually registered and remove that NotificationListener interpretedListener = this.listeners.remove(listenerToRemove); if (interpretedListener != null) { ...