]> source.dussan.org Git - sonarqube.git/commitdiff
Remove some dead code
authorsimonbrandhof <simon.brandhof@gmail.com>
Thu, 5 May 2011 11:59:17 +0000 (13:59 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Thu, 5 May 2011 11:59:17 +0000 (13:59 +0200)
plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java
plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/visitor/LCOM4Visitor.java
sonar-application/src/main/java/org/sonar/application/JettyEmbedder.java
sonar-graph/src/main/java/org/sonar/graph/MinimumFeedbackEdgeSetSolver.java
sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java

index f4d1ebde08382ec8259c85855112480c3c81887f..3fed8b0a219c30e94b78c86c7063afe615f125fa 100644 (file)
@@ -75,7 +75,6 @@ public class FindbugsExecutor implements BatchExtension {
       XMLBugReporter xmlBugReporter = new XMLBugReporter(project);
       xmlBugReporter.setPriorityThreshold(Detector.LOW_PRIORITY);
       xmlBugReporter.setAddMessages(true);
-      // xmlBugReporter.setErrorVerbosity(BugReporter.SILENT);
 
       File xmlReport = configuration.getTargetXMLReport();
       if (xmlReport != null) {
index e74fb2ea9c6698ab252163b3aca9a1827c8cbf85..df49ca4e500c29bbb5d33546b118318386e5a15c 100644 (file)
@@ -74,7 +74,6 @@ public class LCOM4Visitor extends BytecodeVisitor {
   }
 
   public void leaveClass(AsmClass asmClass) {
-    // filterIsolatedMethods();
     int lcom4 = unrelatedBlocks.size();
     if (lcom4 == 0) {
       lcom4 = 1;
index 369e07b68d3a015e54e3ee12ef670189f12eeec9..37b9c9c216b36cc53351e6d81fa6a70362ef9c4f 100644 (file)
@@ -101,7 +101,7 @@ public class JettyEmbedder {
 
   public void configureRequestLogs(String filenamePattern) {
     RequestLogHandler requestLogHandler = new RequestLogHandler();
-    NCSARequestLog requestLog = new NCSARequestLog(filenamePattern);//"../../logs/jetty-yyyy_mm_dd.request.log");
+    NCSARequestLog requestLog = new NCSARequestLog(filenamePattern);
     requestLog.setRetainDays(7);
     requestLog.setAppend(true);
     requestLog.setExtended(true);
index a37c358188b6e0a0734dca75c4ffff7fab451de7..93d21a0cad1989d6b7215cd728eb3d4ba7e7bf44 100644 (file)
@@ -105,7 +105,6 @@ public class MinimumFeedbackEdgeSetSolver {
     if (level == cyclesNumber) {
       minimumFeedbackEdgesWeight = pendingWeight;
       feedbackEdges = new HashSet<FeedbackEdge>(pendingFeedbackEdges);
-      //System.out.println("Weight : " + minimumFeedbackEdgesWeight + " in " + numberOfLoops + " loops");
       return;
     }
 
index 9b68e000f2476825e83ffe8d4a9cb0b6f918907a..572983a75d921ee4221d082c09f3436f4d9bd885 100644 (file)
@@ -224,24 +224,4 @@ public class JavaFile extends Resource<JavaPackage> {
     return getKey();
   }
 
-//  @Override
-//  public boolean equals(Object o) {
-//    if (this == o) return true;
-//    if (o == null || getClass() != o.getClass()) return false;
-//    if (!super.equals(o)) return false;
-//
-//    JavaFile javaFile = (JavaFile) o;
-//    if (unitTest != javaFile.unitTest) return false;
-//    if (!getKey().equals(javaFile.getKey())) return false;
-//
-//    return true;
-//  }
-//
-//  @Override
-//  public int hashCode() {
-//    int result = super.hashCode();
-//    result = 31 * result + getKey().hashCode();
-//    result = 31 * result + (unitTest ? 1 : 0);
-//    return result;
-//  }
 }