Codota Logo
JavaTestClasspath.hasJavaSources
Code IndexAdd Codota to your IDE (free)

How to use
hasJavaSources
method
in
org.sonar.java.JavaTestClasspath

Best Java code snippets using org.sonar.java.JavaTestClasspath.hasJavaSources (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: SonarSource/sonar-java

@Override
protected void init() {
 if (!initialized) {
  validateLibraries = fs.hasFiles(fs.predicates().all());
  Profiler profiler = Profiler.create(LOG).startInfo("JavaTestClasspath initialization");
  initialized = true;
  binaries = new ArrayList<>(getFilesFromProperty(JavaClasspathProperties.SONAR_JAVA_TEST_BINARIES));
  Set<File> libraries = getFilesFromProperty(JavaClasspathProperties.SONAR_JAVA_TEST_LIBRARIES);
  if (libraries.isEmpty() && hasJavaSources()) {
   LOG.warn("Bytecode of dependencies was not provided for analysis of test files, you might end up with less precise results. " +
    "Bytecode can be provided using sonar.java.test.libraries property.");
  }
  elements = new ArrayList<>(binaries);
  elements.addAll(libraries);
  profiler.stopInfo();
 }
}
origin: org.sonarsource.java/java-frontend

@Override
protected void init() {
 if (!initialized) {
  validateLibraries = fs.hasFiles(fs.predicates().all());
  Profiler profiler = Profiler.create(LOG).startInfo("JavaTestClasspath initialization");
  initialized = true;
  binaries = new ArrayList<>(getFilesFromProperty(JavaClasspathProperties.SONAR_JAVA_TEST_BINARIES));
  Set<File> libraries = getFilesFromProperty(JavaClasspathProperties.SONAR_JAVA_TEST_LIBRARIES);
  if (libraries.isEmpty() && hasJavaSources()) {
   LOG.warn("Bytecode of dependencies was not provided for analysis of test files, you might end up with less precise results. " +
    "Bytecode can be provided using sonar.java.test.libraries property.");
  }
  elements = new ArrayList<>(binaries);
  elements.addAll(libraries);
  profiler.stopInfo();
 }
}
org.sonar.javaJavaTestClasspathhasJavaSources

Popular methods of JavaTestClasspath

  • getElements
  • getFilesFromProperty

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Notification (javax.management)
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