aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-05-05 13:59:17 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-05-05 13:59:17 +0200
commit22e260133fe8ed951c80b8df1b48059918a94fa1 (patch)
treee705a379b6106765a88b66cb3696241d92718fc7
parenteee7fbd2a7c80ee6f0647e67b197bf832dae96cb (diff)
downloadsonarqube-22e260133fe8ed951c80b8df1b48059918a94fa1.tar.gz
sonarqube-22e260133fe8ed951c80b8df1b48059918a94fa1.zip
Remove some dead code
-rw-r--r--plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java1
-rw-r--r--plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/visitor/LCOM4Visitor.java1
-rw-r--r--sonar-application/src/main/java/org/sonar/application/JettyEmbedder.java2
-rw-r--r--sonar-graph/src/main/java/org/sonar/graph/MinimumFeedbackEdgeSetSolver.java1
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java20
5 files changed, 1 insertions, 24 deletions
diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java
index f4d1ebde083..3fed8b0a219 100644
--- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java
+++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java
@@ -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) {
diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/visitor/LCOM4Visitor.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/visitor/LCOM4Visitor.java
index e74fb2ea9c6..df49ca4e500 100644
--- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/visitor/LCOM4Visitor.java
+++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/visitor/LCOM4Visitor.java
@@ -74,7 +74,6 @@ public class LCOM4Visitor extends BytecodeVisitor {
}
public void leaveClass(AsmClass asmClass) {
- // filterIsolatedMethods();
int lcom4 = unrelatedBlocks.size();
if (lcom4 == 0) {
lcom4 = 1;
diff --git a/sonar-application/src/main/java/org/sonar/application/JettyEmbedder.java b/sonar-application/src/main/java/org/sonar/application/JettyEmbedder.java
index 369e07b68d3..37b9c9c216b 100644
--- a/sonar-application/src/main/java/org/sonar/application/JettyEmbedder.java
+++ b/sonar-application/src/main/java/org/sonar/application/JettyEmbedder.java
@@ -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);
diff --git a/sonar-graph/src/main/java/org/sonar/graph/MinimumFeedbackEdgeSetSolver.java b/sonar-graph/src/main/java/org/sonar/graph/MinimumFeedbackEdgeSetSolver.java
index a37c358188b..93d21a0cad1 100644
--- a/sonar-graph/src/main/java/org/sonar/graph/MinimumFeedbackEdgeSetSolver.java
+++ b/sonar-graph/src/main/java/org/sonar/graph/MinimumFeedbackEdgeSetSolver.java
@@ -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;
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java
index 9b68e000f24..572983a75d9 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java
@@ -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;
-// }
}