XMLBugReporter xmlBugReporter = new XMLBugReporter(project);
xmlBugReporter.setPriorityThreshold(Detector.LOW_PRIORITY);
xmlBugReporter.setAddMessages(true);
- // xmlBugReporter.setErrorVerbosity(BugReporter.SILENT);
File xmlReport = configuration.getTargetXMLReport();
if (xmlReport != null) {
}
public void leaveClass(AsmClass asmClass) {
- // filterIsolatedMethods();
int lcom4 = unrelatedBlocks.size();
if (lcom4 == 0) {
lcom4 = 1;
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);
if (level == cyclesNumber) {
minimumFeedbackEdgesWeight = pendingWeight;
feedbackEdges = new HashSet<FeedbackEdge>(pendingFeedbackEdges);
- //System.out.println("Weight : " + minimumFeedbackEdgesWeight + " in " + numberOfLoops + " loops");
return;
}
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;
-// }
}