]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Fix some quality flaws
authorSimon Brandhof <simon.brandhof@gmail.com>
Sat, 6 Apr 2013 17:48:07 +0000 (19:48 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Sat, 6 Apr 2013 17:48:07 +0000 (19:48 +0200)
sonar-runner-impl/src/main/java/org/sonar/runner/impl/IsolatedClassloader.java
sonar-runner-impl/src/main/java/org/sonar/runner/impl/Jars30.java
sonar-runner-impl/src/main/java/org/sonar/runner/impl/Jars35.java

index 68f390df3fbe296426311b417bf5e20cde3fefa8..954b3413ab09919f38d6ea53557f39a9c3db1aa4 100644 (file)
@@ -53,22 +53,6 @@ class IsolatedClassloader extends URLClassLoader {
     }
   }
 
-  /**
-   * {@inheritDoc} Visibility of a method has been relaxed to public.
-   */
-  @Override
-  public void addURL(URL url) {
-    super.addURL(url);
-  }
-
-  /**
-   * {@inheritDoc} Visibility of a method has been relaxed to public.
-   */
-  @Override
-  public Class<?> findClass(String name) throws ClassNotFoundException {
-    return super.findClass(name);
-  }
-
   /**
    * @return true, if class can be loaded from parent ClassLoader
    */
index 274bbd7976e5843a32bb37fc7e70b6704c331fc7..f4d9848a7c0e84dad715af9e845b577030921307 100644 (file)
@@ -20,7 +20,6 @@
 package org.sonar.runner.impl;
 
 import java.io.File;
-import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
 
index ff3bbdcf6b8027327c52ed72e74b5f9d1502dab8..0c03a4f0a6db864ea56fb89db9eb635c1a8baed4 100644 (file)
@@ -70,7 +70,7 @@ class Jars35 {
         if (!"".equals(line)) {
           String[] libAndHash = line.split("\\|");
           String filename = libAndHash[0];
-          String hash = libAndHash.length > 0 ? libAndHash[1] : null;
+          String hash = libAndHash.length > 0 ? libAndHash[1] : "";
           files.add(fileCache.get(filename, hash, batchFileDownloader));
         }
       }