Codota Logo
AsmMethod.isUsed
Code IndexAdd Codota to your IDE (free)

How to use
isUsed
method
in
org.sonar.java.bytecode.asm.AsmMethod

Best Java code snippets using org.sonar.java.bytecode.asm.AsmMethod.isUsed (Showing top 4 results out of 315)

  • Common ways to obtain AsmMethod
private void myMethod () {
AsmMethod a =
  • Codota IconAsmEdge asmEdge;(AsmMethod) asmEdge.getTo()
  • Smart code suggestions by Codota
}
origin: org.codehaus.sonar-plugins.java/java-checks

private boolean isPrivateUnused(AsmMethod asmMethod) {
 return !asmMethod.isUsed() && asmMethod.isPrivate();
}
origin: org.codehaus.sonar-plugins.java/java-squid

public void process(AsmMethod method) {
 if (!method.isBodyLoaded() && method.isUsed()) {
  AsmMethod implementation = findImplementation(method.getParent(), method.getKey());
  if (implementation != null) {
   implementation.setUsed(true);
   method.linkTo(implementation);
  }
 }
}
origin: org.sonarsource.java/java-squid

public void process(AsmMethod method) {
 if (!method.isBodyLoaded() && method.isUsed()) {
  AsmMethod implementation = findImplementation(method.getParent(), method.getKey());
  if (implementation != null) {
   implementation.setUsed(true);
   method.linkTo(implementation);
  }
 }
}
origin: org.codehaus.sonar-plugins.java/java-checks

@Override
public void visitMethod(AsmMethod asmMethod) {
 if (!asmMethod.isUsed() && asmMethod.isProtected() && !asmClass.isAbstract() && !SerializableContract.methodMatch(asmMethod)
  && !asmMethod.isInherited()) {
  CheckMessage message = new CheckMessage(this, "Protected method '" + asmMethod.getName() + "(...)' is never used.");
  int line = getMethodLineNumber(asmMethod);
  if (line > 0) {
   message.setLine(line);
  }
  SourceFile file = getSourceFile(asmClass);
  file.log(message);
 }
}
org.sonar.java.bytecode.asmAsmMethodisUsed

Popular methods of AsmMethod

  • getGenericKey
  • getKey
  • getParent
  • isConstructor
  • <init>
  • addEdge
  • addThrowsOfClasses
  • addUsesOfClasses
  • clearOutogingEdges
  • computeAccessedField
  • getAccessedField
  • getOutgoingEdges
  • getAccessedField,
  • getOutgoingEdges,
  • isAccessor,
  • isBodyLoaded,
  • isCallToNonStaticInternalField,
  • isCallToNonStaticInternalMethod,
  • isFieldAccesingDifferentField,
  • isMethodNotAccessorOrAccessingDifferentField,
  • isStatic

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • findViewById (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now