From 22e260133fe8ed951c80b8df1b48059918a94fa1 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Thu, 5 May 2011 13:59:17 +0200 Subject: [PATCH] Remove some dead code --- .../plugins/findbugs/FindbugsExecutor.java | 1 - .../java/bytecode/visitor/LCOM4Visitor.java | 1 - .../org/sonar/application/JettyEmbedder.java | 2 +- .../graph/MinimumFeedbackEdgeSetSolver.java | 1 - .../org/sonar/api/resources/JavaFile.java | 20 ------------------- 5 files changed, 1 insertion(+), 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(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 { 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; -// } } -- 2.39.5