code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static boolean packageInstalled(@NotNull final Context context, @NotNull final String packageName) { final PackageManager packageManager = context.getPackageManager(); boolean result = false; try { packageManager.getPackageInfo(packageName, PackageMa...
public class class_name { public static boolean packageInstalled(@NotNull final Context context, @NotNull final String packageName) { final PackageManager packageManager = context.getPackageManager(); boolean result = false; try { packageManager.getPackageInfo(packageName, PackageMa...
public class class_name { static public String getLongFormattedDays(long dt) { StringBuffer ret = new StringBuffer(); long days = dt/86400000L; long millis = dt-(days*86400000L); if(days > 0) { ret.append(Long.toString(days)); ret.append(" day"); ...
public class class_name { static public String getLongFormattedDays(long dt) { StringBuffer ret = new StringBuffer(); long days = dt/86400000L; long millis = dt-(days*86400000L); if(days > 0) { ret.append(Long.toString(days)); // depends on control dependency: [...
public class class_name { public List<List<IWord>> getComplexSentenceList() { List<List<IWord>> complexList = new LinkedList<List<IWord>>(); for (Sentence sentence : sentenceList) { complexList.add(sentence.wordList); } return complexList; } }
public class class_name { public List<List<IWord>> getComplexSentenceList() { List<List<IWord>> complexList = new LinkedList<List<IWord>>(); for (Sentence sentence : sentenceList) { complexList.add(sentence.wordList); // depends on control dependency: [for], data = [sentence] ...
public class class_name { private static Set<ClassLoader> allDeploymentModuleClassLoaders(DeploymentUnit deploymentUnit) { Set<ClassLoader> deploymentClassLoaders = new HashSet<ClassLoader>(); final DeploymentUnit topDeploymentUnit = DeploymentUtils.getTopDeploymentUnit(deploymentUnit); final M...
public class class_name { private static Set<ClassLoader> allDeploymentModuleClassLoaders(DeploymentUnit deploymentUnit) { Set<ClassLoader> deploymentClassLoaders = new HashSet<ClassLoader>(); final DeploymentUnit topDeploymentUnit = DeploymentUtils.getTopDeploymentUnit(deploymentUnit); final M...
public class class_name { private void handleDelete() { log.debug(String.format("%s - Network configuration removed from cluster: %s", NetworkManager.this, cluster.address())); tasks.runTask(new Handler<Task>() { @Override public void handle(final Task task) { unready(new Handler<AsyncResul...
public class class_name { private void handleDelete() { log.debug(String.format("%s - Network configuration removed from cluster: %s", NetworkManager.this, cluster.address())); tasks.runTask(new Handler<Task>() { @Override public void handle(final Task task) { unready(new Handler<AsyncResul...
public class class_name { private void validateTableCompatibility(String theName, String otherName, Table theTable, Table otherTable, FailureMessage failureMessage) { if (theTable.getIsdred() != otherTable.getIsdred()) { failureMessage.addReason("To swap table " + theName + " with tabl...
public class class_name { private void validateTableCompatibility(String theName, String otherName, Table theTable, Table otherTable, FailureMessage failureMessage) { if (theTable.getIsdred() != otherTable.getIsdred()) { failureMessage.addReason("To swap table " + theName + " with tabl...
public class class_name { @Nonnull @MustNotContainNull public static Topic[] removeSuccessorsAndDuplications(@Nonnull @MustNotContainNull final Topic... topics) { final List<Topic> result = new ArrayList<Topic>(); for (final Topic t : topics) { final Iterator<Topic> iterator = result.iterator(); ...
public class class_name { @Nonnull @MustNotContainNull public static Topic[] removeSuccessorsAndDuplications(@Nonnull @MustNotContainNull final Topic... topics) { final List<Topic> result = new ArrayList<Topic>(); for (final Topic t : topics) { final Iterator<Topic> iterator = result.iterator(); ...
public class class_name { public static BitSet getBitSet(IAtomContainer atomContainer) { BitSet bitSet; int size = atomContainer.getBondCount(); if (size != 0) { bitSet = new BitSet(size); for (int i = 0; i < size; i++) { bitSet.set(i); } ...
public class class_name { public static BitSet getBitSet(IAtomContainer atomContainer) { BitSet bitSet; int size = atomContainer.getBondCount(); if (size != 0) { bitSet = new BitSet(size); // depends on control dependency: [if], data = [(size] for (int i = 0; i < size; ...
public class class_name { public static synchronized OmemoManager getInstanceFor(XMPPConnection connection) { TreeMap<Integer, OmemoManager> managers = INSTANCES.get(connection); if (managers == null) { managers = new TreeMap<>(); INSTANCES.put(connection, managers); } ...
public class class_name { public static synchronized OmemoManager getInstanceFor(XMPPConnection connection) { TreeMap<Integer, OmemoManager> managers = INSTANCES.get(connection); if (managers == null) { managers = new TreeMap<>(); // depends on control dependency: [if], data = [none] ...
public class class_name { public void clearOutputs() { unCache(); for (TransactionOutput output : outputs) { output.setParent(null); } outputs.clear(); // You wanted to reserialize, right? this.length = this.unsafeBitcoinSerialize().length; } }
public class class_name { public void clearOutputs() { unCache(); for (TransactionOutput output : outputs) { output.setParent(null); // depends on control dependency: [for], data = [output] } outputs.clear(); // You wanted to reserialize, right? this.length =...
public class class_name { @Override public EClass getIfcModulusOfElasticityMeasure() { if (ifcModulusOfElasticityMeasureEClass == null) { ifcModulusOfElasticityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(838); } return ifcModulusOfEla...
public class class_name { @Override public EClass getIfcModulusOfElasticityMeasure() { if (ifcModulusOfElasticityMeasureEClass == null) { ifcModulusOfElasticityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(838); // depends on control depende...
public class class_name { public void validateCompletely (@Nonnull final IPSErrorHandler aErrorHandler) { ValueEnforcer.notNull (aErrorHandler, "ErrorHandler"); try { getOrCreateBoundSchema ().getOriginalSchema ().validateCompletely (aErrorHandler); } catch (final RuntimeException ex) ...
public class class_name { public void validateCompletely (@Nonnull final IPSErrorHandler aErrorHandler) { ValueEnforcer.notNull (aErrorHandler, "ErrorHandler"); try { getOrCreateBoundSchema ().getOriginalSchema ().validateCompletely (aErrorHandler); // depends on control dependency: [try], data = ...
public class class_name { protected String getGeneSymbol(ProteinReference pr) { for (Xref xr : pr.getXref()) { String db = xr.getDb(); if (db != null) { db = db.toLowerCase(); if (db.startsWith("hgnc")) { String id = xr.getId(); if (id != null) { String symbol = HGNC.getS...
public class class_name { protected String getGeneSymbol(ProteinReference pr) { for (Xref xr : pr.getXref()) { String db = xr.getDb(); if (db != null) { db = db.toLowerCase(); // depends on control dependency: [if], data = [none] if (db.startsWith("hgnc")) { String id = xr.getId(); ...
public class class_name { private Map<String, String> replaceInMapValues(Map<String, String> map, String oldVal, String newVal) { for (String key : map.keySet()) { String value = map.get(key); ...
public class class_name { private Map<String, String> replaceInMapValues(Map<String, String> map, String oldVal, String newVal) { for (String key : map.keySet()) { String value = map.get(key); ...
public class class_name { public void remove(String key) { Map<String, String> map = inheritableThreadLocal.get(); if (map != null) { map.remove(key); } } }
public class class_name { public void remove(String key) { Map<String, String> map = inheritableThreadLocal.get(); if (map != null) { map.remove(key); // depends on control dependency: [if], data = [none] } } }
public class class_name { public Set<SuppressedEvent> getSuppressedEvents() { if (this.suppressedEvents == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(this.suppressedEvents); } }
public class class_name { public Set<SuppressedEvent> getSuppressedEvents() { if (this.suppressedEvents == null) { return Collections.emptySet(); // depends on control dependency: [if], data = [none] } return Collections.unmodifiableSet(this.suppressedEvents); } }
public class class_name { @Override public EClass getIfcBuildingElementProxyType() { if (ifcBuildingElementProxyTypeEClass == null) { ifcBuildingElementProxyTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(62); } return ifcBuildingElementProx...
public class class_name { @Override public EClass getIfcBuildingElementProxyType() { if (ifcBuildingElementProxyTypeEClass == null) { ifcBuildingElementProxyTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(62); // depends on control dependency: [i...
public class class_name { public Set<String> getIdsPerName(final String surname, final String name) { if (surname == null || name == null) { return Collections.emptySet(); } final Map<String, SortedSet<String>> namesPerSurname = getNamesPerSurnameMap(surname); ...
public class class_name { public Set<String> getIdsPerName(final String surname, final String name) { if (surname == null || name == null) { return Collections.emptySet(); // depends on control dependency: [if], data = [none] } final Map<String, SortedSet<String>> namesPerSurname = ...
public class class_name { @Override public void close() { synchronized (lock) { closed = true; while (leaseCount > 0) { try { lock.wait(); } catch (InterruptedException ignore) { // Even on interruption, we cannot terminate the loop until all open leases are closed. } } } } }
public class class_name { @Override public void close() { synchronized (lock) { closed = true; while (leaseCount > 0) { try { lock.wait(); // depends on control dependency: [try], data = [none] } catch (InterruptedException ignore) { // Even on interruption, we cannot terminate the loop ...
public class class_name { public final VoltTableRow fetchRow(int index) { assert(verifyTableInvariants()); // check bounds if ((index < 0) || (index >= m_rowCount)) { throw new IndexOutOfBoundsException("index = " + index + "; rows = " + m_rowCount); } // if no mem...
public class class_name { public final VoltTableRow fetchRow(int index) { assert(verifyTableInvariants()); // check bounds if ((index < 0) || (index >= m_rowCount)) { throw new IndexOutOfBoundsException("index = " + index + "; rows = " + m_rowCount); } // if no mem...
public class class_name { void considerConnect(SquareNode node0, SquareNode node1) { // Find the side on each line which intersects the line connecting the two centers lineA.a = node0.center; lineA.b = node1.center; int intersection0 = graph.findSideIntersect(node0,lineA,intersection,lineB); connectLine.a.s...
public class class_name { void considerConnect(SquareNode node0, SquareNode node1) { // Find the side on each line which intersects the line connecting the two centers lineA.a = node0.center; lineA.b = node1.center; int intersection0 = graph.findSideIntersect(node0,lineA,intersection,lineB); connectLine.a.s...
public class class_name { boolean matchStandaloneElement( final boolean blockMatching, final int markupLevel, final int markupBlockIndex, final SelectorElementBuffer elementBuffer) { checkMarkupLevel(markupLevel); if (this.markupSelectorItem.anyLevel() || markupLevel == 0 || (...
public class class_name { boolean matchStandaloneElement( final boolean blockMatching, final int markupLevel, final int markupBlockIndex, final SelectorElementBuffer elementBuffer) { checkMarkupLevel(markupLevel); if (this.markupSelectorItem.anyLevel() || markupLevel == 0 || (...
public class class_name { public static <T> boolean arrayContainsRef(T[] array, T value) { for (int i = 0; i < array.length; i++) { if (array[i] == value) { return true; } } return false; } }
public class class_name { public static <T> boolean arrayContainsRef(T[] array, T value) { for (int i = 0; i < array.length; i++) { if (array[i] == value) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { @Override public List readAll(final String tableName, Class clazz, EntityMetadata m, final List<Object> rowKey, List<String> relationNames, String... columns) throws IOException { List output = null; Object entity = null; HTableInterface hTable =...
public class class_name { @Override public List readAll(final String tableName, Class clazz, EntityMetadata m, final List<Object> rowKey, List<String> relationNames, String... columns) throws IOException { List output = null; Object entity = null; HTableInterface hTable =...
public class class_name { public void createBlob(String key, InputStream in, SettableBlobMeta meta) throws KeyAlreadyExistsException, IOException { AtomicOutputStream out = null; try { out = createBlob(key, meta); byte[] buffer = new byte[2048]; int len = 0; ...
public class class_name { public void createBlob(String key, InputStream in, SettableBlobMeta meta) throws KeyAlreadyExistsException, IOException { AtomicOutputStream out = null; try { out = createBlob(key, meta); byte[] buffer = new byte[2048]; int len = 0; ...
public class class_name { public static Panel vertical(Component... components) { Panel panel = new Panel(); panel.setLayoutManager(new LinearLayout(Direction.VERTICAL)); for(Component component: components) { panel.addComponent(component); } return panel; } }
public class class_name { public static Panel vertical(Component... components) { Panel panel = new Panel(); panel.setLayoutManager(new LinearLayout(Direction.VERTICAL)); for(Component component: components) { panel.addComponent(component); // depends on control dependency: [for], d...
public class class_name { public void marshall(Subnet subnet, ProtocolMarshaller protocolMarshaller) { if (subnet == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(subnet.getSubnetIdentifier(), SUBN...
public class class_name { public void marshall(Subnet subnet, ProtocolMarshaller protocolMarshaller) { if (subnet == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(subnet.getSubnetIdentifier(), SUBN...
public class class_name { public static String stripDelimiters(final String value) { if (value != null && value.length() > 1) { if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\'')) { return value.substring(1, value.length() - 1); ...
public class class_name { public static String stripDelimiters(final String value) { if (value != null && value.length() > 1) { if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\'')) { return value.substring(1, value.length() - 1); ...
public class class_name { static String shortenPathName(Path path, int bytes) { String pathString = path.toUri().getPath(); String replaced = pathString.replace("/", "_"); if (replaced.length() <= bytes) { return replaced; } int bytesPerHalf = (bytes - 3) / 2; return replaced.substring(...
public class class_name { static String shortenPathName(Path path, int bytes) { String pathString = path.toUri().getPath(); String replaced = pathString.replace("/", "_"); if (replaced.length() <= bytes) { return replaced; // depends on control dependency: [if], data = [none] } int bytesPer...
public class class_name { public void marshall(ParameterHistory parameterHistory, ProtocolMarshaller protocolMarshaller) { if (parameterHistory == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(para...
public class class_name { public void marshall(ParameterHistory parameterHistory, ProtocolMarshaller protocolMarshaller) { if (parameterHistory == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(para...
public class class_name { void analyze(JCStatement statement, Env<AttrContext> env) { AnalysisContext context = new AnalysisContext(); StatementScanner statementScanner = new StatementScanner(context); statementScanner.scan(statement); if (!context.treesToAnalyzer.isEmpty()) { ...
public class class_name { void analyze(JCStatement statement, Env<AttrContext> env) { AnalysisContext context = new AnalysisContext(); StatementScanner statementScanner = new StatementScanner(context); statementScanner.scan(statement); if (!context.treesToAnalyzer.isEmpty()) { ...
public class class_name { public static <First extends Comparable<? super First>, Second extends Comparable<? super Second>> int compare( final First firstOfLeft, final Second secondOfLeft, final First firstOfRight, final Second secondOfRight) { // (?, ?) and (?, ?) if (firstOfLeft ...
public class class_name { public static <First extends Comparable<? super First>, Second extends Comparable<? super Second>> int compare( final First firstOfLeft, final Second secondOfLeft, final First firstOfRight, final Second secondOfRight) { // (?, ?) and (?, ?) if (firstOfLeft ...
public class class_name { public static void recordDefaultAnnotationHandlerMappingInstance(Object obj) { if (debug) { System.out.println("SPRING_PLUGIN: Recording new instance of DefaultAnnotationHandlerMappingInstance"); } defaultAnnotationHandlerMappingInstances.add(obj); } }
public class class_name { public static void recordDefaultAnnotationHandlerMappingInstance(Object obj) { if (debug) { System.out.println("SPRING_PLUGIN: Recording new instance of DefaultAnnotationHandlerMappingInstance"); // depends on control dependency: [if], data = [none] } defaultAnnotationHandlerMappingI...
public class class_name { public final Throwable[] determineCauseChain(Throwable throwable) { if (throwable == null) { throw new IllegalArgumentException("Invalid throwable: null"); } List<Throwable> chain = new ArrayList<>(); Throwable currentThrowable = throwable; while (currentThrowable != null) { ...
public class class_name { public final Throwable[] determineCauseChain(Throwable throwable) { if (throwable == null) { throw new IllegalArgumentException("Invalid throwable: null"); } List<Throwable> chain = new ArrayList<>(); Throwable currentThrowable = throwable; while (currentThrowable != null) { ...
public class class_name { @SuppressWarnings("unchecked") public static Response get(String url, Object... params) throws HttpException { try { Map<String, Object> map = new HashMap<>(); for (Object bean : params) { if (bean instanceof Parameter) { Parameter p = (Parameter) bean; map.put(p.getNam...
public class class_name { @SuppressWarnings("unchecked") public static Response get(String url, Object... params) throws HttpException { try { Map<String, Object> map = new HashMap<>(); for (Object bean : params) { if (bean instanceof Parameter) { Parameter p = (Parameter) bean; map.put(p.getNam...
public class class_name { @Override public MessageEvent parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException { MessageEvent messageEvent = new MessageEvent(); boolean done = false; while (!done) { ...
public class class_name { @Override public MessageEvent parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException { MessageEvent messageEvent = new MessageEvent(); boolean done = false; while (!done) { ...
public class class_name { public static SparseBitmap bitmapOf(int... k) { SparseBitmap s = new SparseBitmap(); for (int i : k) { s.set(i); } return s; } }
public class class_name { public static SparseBitmap bitmapOf(int... k) { SparseBitmap s = new SparseBitmap(); for (int i : k) { s.set(i); // depends on control dependency: [for], data = [i] } return s; } }
public class class_name { public static <T extends BioPAXElement> Set<T> searchAndCollect( Collection<? extends BioPAXElement> eles, Pattern pattern, int index, Class<T> c) { Set<T> set = new HashSet<T>(); for (Match match : searchPlain(eles, pattern)) { set.add((T) match.get(index)); } return set; }...
public class class_name { public static <T extends BioPAXElement> Set<T> searchAndCollect( Collection<? extends BioPAXElement> eles, Pattern pattern, int index, Class<T> c) { Set<T> set = new HashSet<T>(); for (Match match : searchPlain(eles, pattern)) { set.add((T) match.get(index)); // depends on contro...
public class class_name { protected boolean moduleCanHandlePath( ModuleConfig moduleConfig, RequestProcessor rp, String servletPath ) { if ( moduleConfig.getPrefix().equals( "" ) && servletPath.lastIndexOf( '/' ) > 0 && rp instanceof PageFlowRequestProcessor ) { return fals...
public class class_name { protected boolean moduleCanHandlePath( ModuleConfig moduleConfig, RequestProcessor rp, String servletPath ) { if ( moduleConfig.getPrefix().equals( "" ) && servletPath.lastIndexOf( '/' ) > 0 && rp instanceof PageFlowRequestProcessor ) { return fals...
public class class_name { private void addPostParams(final Request request) { if (username != null) { request.addPostParam("Username", username); } if (password != null) { request.addPostParam("Password", password); } } }
public class class_name { private void addPostParams(final Request request) { if (username != null) { request.addPostParam("Username", username); // depends on control dependency: [if], data = [none] } if (password != null) { request.addPostParam("Password", password); ...
public class class_name { protected void setKeyEvent(KeyEvent keyEvent) { if (gvrCursorController instanceof GVRExternalCursorController) { GVRExternalCursorController controller = (GVRExternalCursorController) gvrCursorController; controller.setKeyEvent(keyEvent); ...
public class class_name { protected void setKeyEvent(KeyEvent keyEvent) { if (gvrCursorController instanceof GVRExternalCursorController) { GVRExternalCursorController controller = (GVRExternalCursorController) gvrCursorController; controller.setKeyEvent(keyEvent); /...
public class class_name { private void writeResp(ServletResponse response, SolrQueryRequest queryRequest, SolrQueryResponse queryResponse) throws IOException, UnsupportedEncodingException { if (m_solr instanceof EmbeddedSolrServer) { SolrCore core = ((EmbeddedSolrServer)m_solr).getCoreCont...
public class class_name { private void writeResp(ServletResponse response, SolrQueryRequest queryRequest, SolrQueryResponse queryResponse) throws IOException, UnsupportedEncodingException { if (m_solr instanceof EmbeddedSolrServer) { SolrCore core = ((EmbeddedSolrServer)m_solr).getCoreCont...
public class class_name { public void addWarning(SQLWarning warn) { // Add the warning to the chain if (firstWarning != null) { firstWarning.setNextWarning(warn); } else { firstWarning = warn; } } }
public class class_name { public void addWarning(SQLWarning warn) { // Add the warning to the chain if (firstWarning != null) { firstWarning.setNextWarning(warn); // depends on control dependency: [if], data = [none] } else { firstWarning = warn; // depends on control dependency: [if], data = [...
public class class_name { private static void closeQuietly(State state) { // ensure only closed once and avoid race conditions if (state.closed.compareAndSet(false, true)) { // set the state fields to null after closing for garbage // collection purposes log.debug("c...
public class class_name { private static void closeQuietly(State state) { // ensure only closed once and avoid race conditions if (state.closed.compareAndSet(false, true)) { // set the state fields to null after closing for garbage // collection purposes log.debug("c...
public class class_name { public Signature getSignatureBySigner(String email, String name) { if (email == null || name == null) { return null; } for (Signature s : getSignatures()) { if (name.equalsIgnoreCase(s.getName()) && email.equalsIgnoreCase(s.getEmail())) { ...
public class class_name { public Signature getSignatureBySigner(String email, String name) { if (email == null || name == null) { return null; // depends on control dependency: [if], data = [none] } for (Signature s : getSignatures()) { if (name.equalsIgnoreCase(s.getNam...
public class class_name { public void marshall(StartLoggingRequest startLoggingRequest, ProtocolMarshaller protocolMarshaller) { if (startLoggingRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(StartLoggingRequest startLoggingRequest, ProtocolMarshaller protocolMarshaller) { if (startLoggingRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public static CharSequence applyTypefaceSpan(CharSequence s, Typeface typeface) { if (s != null && s.length() > 0) { if (!(s instanceof Spannable)) { s = new SpannableString(s); } ((Spannable) s).setSpan(TypefaceUtils.getSpan(typefac...
public class class_name { public static CharSequence applyTypefaceSpan(CharSequence s, Typeface typeface) { if (s != null && s.length() > 0) { if (!(s instanceof Spannable)) { s = new SpannableString(s); // depends on control dependency: [if], data = [none] } ...
public class class_name { public ClassPool getClassPool() { if (classPool == null) { if (classLoader == null) { throw new IllegalStateException("can't init javassit classpool, there is no class loader set for the component"); } classPool = new ClassPool(); // add class path for domain and dependencie...
public class class_name { public ClassPool getClassPool() { if (classPool == null) { if (classLoader == null) { throw new IllegalStateException("can't init javassit classpool, there is no class loader set for the component"); } classPool = new ClassPool(); // depends on control dependency: [if], data = ...
public class class_name { public GetApiKeysResult withWarnings(String... warnings) { if (this.warnings == null) { setWarnings(new java.util.ArrayList<String>(warnings.length)); } for (String ele : warnings) { this.warnings.add(ele); } return this; } }
public class class_name { public GetApiKeysResult withWarnings(String... warnings) { if (this.warnings == null) { setWarnings(new java.util.ArrayList<String>(warnings.length)); // depends on control dependency: [if], data = [none] } for (String ele : warnings) { this.war...
public class class_name { private FieldIndex registerFieldIndex(final int index, final InternalReadAccessor fieldExtractor) { FieldIndex fieldIndex = null; // is linkedlist null, if so create and add if ( this.hashedFieldIndexes == null ) { ...
public class class_name { private FieldIndex registerFieldIndex(final int index, final InternalReadAccessor fieldExtractor) { FieldIndex fieldIndex = null; // is linkedlist null, if so create and add if ( this.hashedFieldIndexes == null ) { ...
public class class_name { public @Nullable Info lookup(String httpMethod, String url) { httpMethod = httpMethod.toLowerCase(); if (url.startsWith("/")) { url = url.substring(1); } url = StringUtils.stripTrailingSlash(url); List<Info> infos = infosByHttpMethod.get(httpMethod); if (infos ==...
public class class_name { public @Nullable Info lookup(String httpMethod, String url) { httpMethod = httpMethod.toLowerCase(); if (url.startsWith("/")) { url = url.substring(1); // depends on control dependency: [if], data = [none] } url = StringUtils.stripTrailingSlash(url); List<Info> infos...
public class class_name { public void removeDocumentFromCache(int n) { if(DTM.NULL ==n) return; for(int i=m_sourceTree.size()-1;i>=0;--i) { SourceTree st=(SourceTree)m_sourceTree.elementAt(i); if(st!=null && st.m_root==n) { m_sourceTree.removeElementAt(i); return; } } ...
public class class_name { public void removeDocumentFromCache(int n) { if(DTM.NULL ==n) return; for(int i=m_sourceTree.size()-1;i>=0;--i) { SourceTree st=(SourceTree)m_sourceTree.elementAt(i); if(st!=null && st.m_root==n) { m_sourceTree.removeElementAt(i); // depends on control d...
public class class_name { public static boolean isLetter(String string) { boolean result = isNotEmpty(string); int idx = 0; int len = string.length(); while (result) { if (idx >= len) { break; } result = isLetter(string.charAt(idx)); ...
public class class_name { public static boolean isLetter(String string) { boolean result = isNotEmpty(string); int idx = 0; int len = string.length(); while (result) { if (idx >= len) { break; } result = isLetter(string.charAt(idx)); /...
public class class_name { public void marshall(StageDeclaration stageDeclaration, ProtocolMarshaller protocolMarshaller) { if (stageDeclaration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stag...
public class class_name { public void marshall(StageDeclaration stageDeclaration, ProtocolMarshaller protocolMarshaller) { if (stageDeclaration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stag...
public class class_name { public ModifyVpcEndpointRequest withRemoveSubnetIds(String... removeSubnetIds) { if (this.removeSubnetIds == null) { setRemoveSubnetIds(new com.amazonaws.internal.SdkInternalList<String>(removeSubnetIds.length)); } for (String ele : removeSubnetIds) { ...
public class class_name { public ModifyVpcEndpointRequest withRemoveSubnetIds(String... removeSubnetIds) { if (this.removeSubnetIds == null) { setRemoveSubnetIds(new com.amazonaws.internal.SdkInternalList<String>(removeSubnetIds.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public boolean contains(Object key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "contains", key); Bucket bucket = getBucketForKey(key); Element element = null; // d173022.12 if (bucket != null)...
public class class_name { @Override public boolean contains(Object key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "contains", key); Bucket bucket = getBucketForKey(key); Element element = null; // d173022.12 if (bucket != null)...
public class class_name { public void close() { if (_socket!=null) { try { _socket.close(); _socket = null; } catch (IOException e) { System.err.println("Exception: " + e); // throw new SoccomException(SoccomException.RECV_ERROR); } _in = null; ...
public class class_name { public void close() { if (_socket!=null) { try { _socket.close(); // depends on control dependency: [try], data = [none] _socket = null; // depends on control dependency: [try], data = [none] } catch (IOException e) { System.err.println("Excepti...
public class class_name { private int getMatchedDepth(String exceptionType, Throwable ex) { Throwable t = ex.getCause(); if (t != null) { return getMatchedDepth(exceptionType, t); } else { return getMatchedDepth(exceptionType, ex.getClass(), 0); } } }
public class class_name { private int getMatchedDepth(String exceptionType, Throwable ex) { Throwable t = ex.getCause(); if (t != null) { return getMatchedDepth(exceptionType, t); // depends on control dependency: [if], data = [none] } else { return getMatchedDepth(excep...
public class class_name { public void updated(Dictionary<?, ?> props) { String value = (String) props.get(PROP_IDNAME); if (null != value) { this.idName = value.trim(); } value = (String) props.get(PROP_USE_URLS); if (null != value && Boolean.parseBoolean(value.trim(...
public class class_name { public void updated(Dictionary<?, ?> props) { String value = (String) props.get(PROP_IDNAME); if (null != value) { this.idName = value.trim(); // depends on control dependency: [if], data = [none] } value = (String) props.get(PROP_USE_URLS); ...
public class class_name { public PassthroughResources passthroughResources() { if (passthrough.get() == null) { passthrough.compareAndSet(null, new PassthroughResourcesImpl(this)); } return passthrough.get(); } }
public class class_name { public PassthroughResources passthroughResources() { if (passthrough.get() == null) { passthrough.compareAndSet(null, new PassthroughResourcesImpl(this)); // depends on control dependency: [if], data = [none] } return passthrough.get(); } }
public class class_name { private static void setConfigurationFromSystemProperties(Configuration configuration, PropertyKey[] propertyNames) { for (PropertyKey propertyName : propertyNames) { setConfigurationFromSystemProperty(configuration, propertyName.toString()); } } }
public class class_name { private static void setConfigurationFromSystemProperties(Configuration configuration, PropertyKey[] propertyNames) { for (PropertyKey propertyName : propertyNames) { setConfigurationFromSystemProperty(configuration, propertyName.toString()); // depends on control dependency: [...
public class class_name { public void finishSpan() { TraceState ts = traceState.get(); if (ts != null) { Span span = ts.popSpan(); if (log.isLoggable(Level.FINEST)) { log.finest("Finish span = " + span + " trace state = " + ts); } span.f...
public class class_name { public void finishSpan() { TraceState ts = traceState.get(); if (ts != null) { Span span = ts.popSpan(); if (log.isLoggable(Level.FINEST)) { log.finest("Finish span = " + span + " trace state = " + ts); // depends on control dependency:...
public class class_name { public <T extends IGeneratorParameter<S>, S> S getDefault(Class<T> param) { if (renderingParameters.containsKey(param.getName())) return getParameter(param).getDefault(); // OK, this parameter is not registered, but that's fine, as we are // only to return the default...
public class class_name { public <T extends IGeneratorParameter<S>, S> S getDefault(Class<T> param) { if (renderingParameters.containsKey(param.getName())) return getParameter(param).getDefault(); // OK, this parameter is not registered, but that's fine, as we are // only to return the default...
public class class_name { public Observable<ServiceResponse<WorkItemConfigurationInner>> getDefaultWithServiceResponseAsync(String resourceGroupName, String resourceName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be nul...
public class class_name { public Observable<ServiceResponse<WorkItemConfigurationInner>> getDefaultWithServiceResponseAsync(String resourceGroupName, String resourceName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be nul...
public class class_name { public int[] getOccurrences() { int[] res = new int[this.occurrences.size()]; for (int i = 0; i < this.occurrences.size(); i++) { res[i] = this.occurrences.get(i); } return res; } }
public class class_name { public int[] getOccurrences() { int[] res = new int[this.occurrences.size()]; for (int i = 0; i < this.occurrences.size(); i++) { res[i] = this.occurrences.get(i); // depends on control dependency: [for], data = [i] } return res; } }
public class class_name { public static List<String> split(String string, char... separators) { if(string == null) { return null; } class ItemsList { List<String> list = new ArrayList<String>(); void add(StringBuilder wordBuilder) { String value = wordBui...
public class class_name { public static List<String> split(String string, char... separators) { if(string == null) { return null; // depends on control dependency: [if], data = [none] } class ItemsList { List<String> list = new ArrayList<String>(); void add(StringBuilder...
public class class_name { public void marshall(ListViolationEventsRequest listViolationEventsRequest, ProtocolMarshaller protocolMarshaller) { if (listViolationEventsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(ListViolationEventsRequest listViolationEventsRequest, ProtocolMarshaller protocolMarshaller) { if (listViolationEventsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public static void main(final String[] args) { Switch help = new Switch("h", "help", "display help message"); FileArgument aInputFile = new FileArgument("a", "a-input-file", "A input BED file, default stdin", false); FileArgument bInputFile = new FileArgument("b", "b-i...
public class class_name { public static void main(final String[] args) { Switch help = new Switch("h", "help", "display help message"); FileArgument aInputFile = new FileArgument("a", "a-input-file", "A input BED file, default stdin", false); FileArgument bInputFile = new FileArgument("b", "b-i...
public class class_name { protected void fireAction(ActionListener action) { int modifiers = 0; AWTEvent currentEvent = EventQueue.getCurrentEvent(); if (currentEvent instanceof InputEvent) { modifiers = ((InputEvent) currentEvent).getModifiers(); } else if (current...
public class class_name { protected void fireAction(ActionListener action) { int modifiers = 0; AWTEvent currentEvent = EventQueue.getCurrentEvent(); if (currentEvent instanceof InputEvent) { modifiers = ((InputEvent) currentEvent).getModifiers(); // depends on control depe...
public class class_name { @Override public String sendAlignmentRequest(String query, RemotePairwiseAlignmentProperties alignmentProperties) throws Exception { Map<String, String> params = new HashMap<String, String>(); for (String key : alignmentProperties.getAlignmentOptions()) { params.put(key, alignmentProp...
public class class_name { @Override public String sendAlignmentRequest(String query, RemotePairwiseAlignmentProperties alignmentProperties) throws Exception { Map<String, String> params = new HashMap<String, String>(); for (String key : alignmentProperties.getAlignmentOptions()) { params.put(key, alignmentProp...
public class class_name { public FileScanner setSearchTypes(String... srTypes) { if (srTypes == null || srTypes.length == 0) { this.srTypes = new String[0]; } else { this.srTypes = srTypes; } return this; } }
public class class_name { public FileScanner setSearchTypes(String... srTypes) { if (srTypes == null || srTypes.length == 0) { this.srTypes = new String[0]; // depends on control dependency: [if], data = [none] } else { this.srTypes = srTypes; // depends on control dependency: [...
public class class_name { protected void sendErrorIfSender(Throwable throwable) { if (!getSender().equals(ActorRef.noSender())) { getSender().tell(new Status.Failure(throwable), getSelf()); } } }
public class class_name { protected void sendErrorIfSender(Throwable throwable) { if (!getSender().equals(ActorRef.noSender())) { getSender().tell(new Status.Failure(throwable), getSelf()); // depends on control dependency: [if], data = [none] } } }
public class class_name { protected void sendMembershipList(LocalGossipMember me, List<LocalGossipMember> memberList) { GossipService.LOGGER.debug("Send sendMembershipList() is called."); me.setHeartbeat(System.currentTimeMillis()); LocalGossipMember member = selectPartner(memberList); if (member == nu...
public class class_name { protected void sendMembershipList(LocalGossipMember me, List<LocalGossipMember> memberList) { GossipService.LOGGER.debug("Send sendMembershipList() is called."); me.setHeartbeat(System.currentTimeMillis()); LocalGossipMember member = selectPartner(memberList); if (member == nu...
public class class_name { public void marshall(RdsHttpEndpointConfig rdsHttpEndpointConfig, ProtocolMarshaller protocolMarshaller) { if (rdsHttpEndpointConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(RdsHttpEndpointConfig rdsHttpEndpointConfig, ProtocolMarshaller protocolMarshaller) { if (rdsHttpEndpointConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public EClass getIfcReal() { if (ifcRealEClass == null) { ifcRealEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(729); } return ifcRealEClass; } }
public class class_name { public EClass getIfcReal() { if (ifcRealEClass == null) { ifcRealEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(729); // depends on control dependency: [if], data = [none] } return ifcRealEClass; } }
public class class_name { @Override @InterfaceAudience.Public public Map<String, Object> getProperties() { Map<String, Object> properties = revisionInternal.getProperties(); if (!checkedProperties) { if (properties == null) { if (loadProperties() == true) { ...
public class class_name { @Override @InterfaceAudience.Public public Map<String, Object> getProperties() { Map<String, Object> properties = revisionInternal.getProperties(); if (!checkedProperties) { if (properties == null) { if (loadProperties() == true) { ...
public class class_name { public ListStepsRequest withStepIds(String... stepIds) { if (this.stepIds == null) { setStepIds(new com.amazonaws.internal.SdkInternalList<String>(stepIds.length)); } for (String ele : stepIds) { this.stepIds.add(ele); } return t...
public class class_name { public ListStepsRequest withStepIds(String... stepIds) { if (this.stepIds == null) { setStepIds(new com.amazonaws.internal.SdkInternalList<String>(stepIds.length)); // depends on control dependency: [if], data = [none] } for (String ele : stepIds) { ...
public class class_name { public String[] readNext() throws IOException { String[] result = null; do { String nextLine = getNextLine(); if (!hasNext) { return validateResult(result); } String[] r = parser.parseLineMulti(nextLine); ...
public class class_name { public String[] readNext() throws IOException { String[] result = null; do { String nextLine = getNextLine(); if (!hasNext) { return validateResult(result); // depends on control dependency: [if], data = [none] } ...
public class class_name { public TableModel toDistinctValuesTableModel(InputColumn<?> inputColumnOfInterest) { final Map<Object, Integer> valueCounts; final RowAnnotationFactory annotationFactory = _annotationFactoryRef.get(); if (annotationFactory == null) { valueCounts = Collectio...
public class class_name { public TableModel toDistinctValuesTableModel(InputColumn<?> inputColumnOfInterest) { final Map<Object, Integer> valueCounts; final RowAnnotationFactory annotationFactory = _annotationFactoryRef.get(); if (annotationFactory == null) { valueCounts = Collectio...
public class class_name { private ResourceException closeHandles() { ResourceException firstX = null; Object conn = null; // Indicate that we are cleaning up handles, so we know not to send events for // operations done in the cleanup. cleaningUpHandles = true; for (i...
public class class_name { private ResourceException closeHandles() { ResourceException firstX = null; Object conn = null; // Indicate that we are cleaning up handles, so we know not to send events for // operations done in the cleanup. cleaningUpHandles = true; for (i...
public class class_name { public void showErrors(final Set<String> messages) { final InputElement inputElement = this.getInputElement(); if (messages.isEmpty()) { if (FeatureCheck.supportCustomValidity(inputElement)) { inputElement.setCustomValidity(StringUtils.EMPTY); } if (this.vali...
public class class_name { public void showErrors(final Set<String> messages) { final InputElement inputElement = this.getInputElement(); if (messages.isEmpty()) { if (FeatureCheck.supportCustomValidity(inputElement)) { inputElement.setCustomValidity(StringUtils.EMPTY); // depends on control depen...
public class class_name { public void setResultValue(String actionId, Object resultValue) { if (actionId == null || !actionId.contains(ActivityContext.ID_SEPARATOR)) { this.actionId = actionId; this.resultValue = resultValue; } else { String[] ids = StringUtils.token...
public class class_name { public void setResultValue(String actionId, Object resultValue) { if (actionId == null || !actionId.contains(ActivityContext.ID_SEPARATOR)) { this.actionId = actionId; // depends on control dependency: [if], data = [none] this.resultValue = resultValue; // depe...
public class class_name { static @NotNull Resource get(String path, ResourceResolver resolver) { Resource resource = resolver.getResource(path); if (resource != null) { return resource; } return new SyntheticNavigatableResource(path, resolver); } }
public class class_name { static @NotNull Resource get(String path, ResourceResolver resolver) { Resource resource = resolver.getResource(path); if (resource != null) { return resource; // depends on control dependency: [if], data = [none] } return new SyntheticNavigatableResource(path, resolver)...
public class class_name { public static void removeVirtualTokenizationUsingNamespace(SDocumentGraph graph) { if(graph.getTimeline() != null) { // do nothing if the graph does not contain any virtual tokenization return; } TimelineReconstructor reconstructor = new TimelineReconstructo...
public class class_name { public static void removeVirtualTokenizationUsingNamespace(SDocumentGraph graph) { if(graph.getTimeline() != null) { // do nothing if the graph does not contain any virtual tokenization return; // depends on control dependency: [if], data = [none] } Timeline...
public class class_name { private DeepPartition[] calculateShardChunks(DBCollection collection) { DBCursor chuncks = getChunks(collection); Map<String, String[]> shards = getShards(collection); MongoPartition[] deepPartitions = new MongoPartition[chuncks.count()]; int i = 0; ...
public class class_name { private DeepPartition[] calculateShardChunks(DBCollection collection) { DBCursor chuncks = getChunks(collection); Map<String, String[]> shards = getShards(collection); MongoPartition[] deepPartitions = new MongoPartition[chuncks.count()]; int i = 0; ...
public class class_name { public void marshall(UpdateIntegrationResponseRequest updateIntegrationResponseRequest, ProtocolMarshaller protocolMarshaller) { if (updateIntegrationResponseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
public class class_name { public void marshall(UpdateIntegrationResponseRequest updateIntegrationResponseRequest, ProtocolMarshaller protocolMarshaller) { if (updateIntegrationResponseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
public class class_name { public boolean isValidUserAgent(final String agent) { if (!validateUserAgent) { return true; } final Matcher matcher = AGENT_PATTERN.matcher(agent); return matcher.matches(); } }
public class class_name { public boolean isValidUserAgent(final String agent) { if (!validateUserAgent) { return true; // depends on control dependency: [if], data = [none] } final Matcher matcher = AGENT_PATTERN.matcher(agent); return matcher.matches(); } }
public class class_name { @Override public void visitMethod(Method obj) { Attribute[] attributes = obj.getAttributes(); for (Attribute a : attributes) { if ("Signature".equals(a.getName())) { TemplateSignature ts = parseSignatureAttribute((Signature) a); ...
public class class_name { @Override public void visitMethod(Method obj) { Attribute[] attributes = obj.getAttributes(); for (Attribute a : attributes) { if ("Signature".equals(a.getName())) { TemplateSignature ts = parseSignatureAttribute((Signature) a); ...
public class class_name { public static IntList from(Collection<Integer> c) { if (N.isNullOrEmpty(c)) { return new IntList(); } return from(c, 0); } }
public class class_name { public static IntList from(Collection<Integer> c) { if (N.isNullOrEmpty(c)) { return new IntList(); // depends on control dependency: [if], data = [none] } return from(c, 0); } }
public class class_name { @Override public Optional<String> getLogin() { return getAuthentication().map(auth -> { Object principal = auth.getPrincipal(); if (principal instanceof UserDetails) { UserDetails springSecurityUser = UserDetails.class.cast(principal); ...
public class class_name { @Override public Optional<String> getLogin() { return getAuthentication().map(auth -> { Object principal = auth.getPrincipal(); if (principal instanceof UserDetails) { UserDetails springSecurityUser = UserDetails.class.cast(principal); ...
public class class_name { private String printPDBConnections(){ StringBuilder str = new StringBuilder(); for (Chain c:structure.getChains()) { for (Group g:c.getAtomGroups()) { for (Atom a:g.getAtoms()) { if (a.getBonds()!=null) { for (Bond b:a.getBonds()) { //7890123456789012345678901234567...
public class class_name { private String printPDBConnections(){ StringBuilder str = new StringBuilder(); for (Chain c:structure.getChains()) { for (Group g:c.getAtomGroups()) { for (Atom a:g.getAtoms()) { if (a.getBonds()!=null) { for (Bond b:a.getBonds()) { //7890123456789012345678901234567...
public class class_name { private static boolean isValidAddress(InetAddress address) { if (address == null || address.isLoopbackAddress()) { return false; } String name = address.getHostAddress(); return (name != null && !isAnyHost(name) && !isLocalHo...
public class class_name { private static boolean isValidAddress(InetAddress address) { if (address == null || address.isLoopbackAddress()) { return false; // depends on control dependency: [if], data = [none] } String name = address.getHostAddress(); return (name != null ...
public class class_name { @Override public boolean isAllowed(int code, long vendorId) { AvpRepresentation avpRep = new AvpRepresentationImpl(code, vendorId); avpRep = this.unmuttableMessageAvps.get(avpRep); if (avpRep == null) { return true; } return avpRep.isAllowed(); } }
public class class_name { @Override public boolean isAllowed(int code, long vendorId) { AvpRepresentation avpRep = new AvpRepresentationImpl(code, vendorId); avpRep = this.unmuttableMessageAvps.get(avpRep); if (avpRep == null) { return true; // depends on control dependency: [if], data = [non...
public class class_name { private int getNumOfLenBytes(int len) { int numOfLenBytes = 0; if (len < 128) { numOfLenBytes = 1; } else if (len < (1 << 8)) { numOfLenBytes = 2; } else if (len < (1 << 16)) { numOfLenBytes = 3; } else if (len < (1 ...
public class class_name { private int getNumOfLenBytes(int len) { int numOfLenBytes = 0; if (len < 128) { numOfLenBytes = 1; // depends on control dependency: [if], data = [none] } else if (len < (1 << 8)) { numOfLenBytes = 2; // depends on control dependency: [if], dat...
public class class_name { private void addChangeListener(JavaScriptObject changeListener, String changeScope) { try { System.out.println("Adding native listener for scope " + changeScope); m_entityObserver.addEntityChangeListener(new CmsEntityChangeListenerWrapper(changeListener), ...
public class class_name { private void addChangeListener(JavaScriptObject changeListener, String changeScope) { try { System.out.println("Adding native listener for scope " + changeScope); // depends on control dependency: [try], data = [none] m_entityObserver.addEntityChangeListen...
public class class_name { public void putLong(int pos, long l) { adaptSize(pos + 8); ByteBuffer bb = getBuffer(pos); int index = pos % _bufferSize; if (bb.limit() - index >= 8) { bb.putLong(index, l); } else { byte b0 = (byte)l; byte b1 = (byte)(l >> 8); byte b2 = (byte)(l >> 16); byte b3 = (b...
public class class_name { public void putLong(int pos, long l) { adaptSize(pos + 8); ByteBuffer bb = getBuffer(pos); int index = pos % _bufferSize; if (bb.limit() - index >= 8) { bb.putLong(index, l); // depends on control dependency: [if], data = [none] } else { byte b0 = (byte)l; byte b1 = (byte)(...
public class class_name { private static String[] toResources(final Object[] args) { val object = args[0]; if (object instanceof AuthenticationTransaction) { val transaction = AuthenticationTransaction.class.cast(object); return new String[]{SUPPLIED_CREDENTIALS + transaction.ge...
public class class_name { private static String[] toResources(final Object[] args) { val object = args[0]; if (object instanceof AuthenticationTransaction) { val transaction = AuthenticationTransaction.class.cast(object); return new String[]{SUPPLIED_CREDENTIALS + transaction.ge...
public class class_name { public static TraceComponent register(Class<?> aClass) { TraceComponent tc; /* * Check for TraceOptions annotations to specify trace groups and/or * message bundle name. Class-level annotation takes priority over * package-level. */ ...
public class class_name { public static TraceComponent register(Class<?> aClass) { TraceComponent tc; /* * Check for TraceOptions annotations to specify trace groups and/or * message bundle name. Class-level annotation takes priority over * package-level. */ ...
public class class_name { @Nullable protected MentionSpan getTouchedSpan(MotionEvent event) { Layout layout = getLayout(); // Note: Layout can be null if text or width has recently changed, see MOB-38193 if (event == null || layout == null) { return null; } int ...
public class class_name { @Nullable protected MentionSpan getTouchedSpan(MotionEvent event) { Layout layout = getLayout(); // Note: Layout can be null if text or width has recently changed, see MOB-38193 if (event == null || layout == null) { return null; // depends on control d...
public class class_name { public void setBody(byte[] contents) { if (contents == null) { return; } cachedString = null; body = new byte[contents.length]; System.arraycopy(contents, 0, body, 0, contents.length); pos = body.length; } }
public class class_name { public void setBody(byte[] contents) { if (contents == null) { return; // depends on control dependency: [if], data = [none] } cachedString = null; body = new byte[contents.length]; System.arraycopy(contents, 0, body, 0, contents.length); pos = body.length; } }