@Override public boolean match(BugInstance bugInstance) { ClassAnnotation primaryClassAnnotation = bugInstance.getPrimaryClass(); if(primaryClassAnnotation == null){ return false; } String bugFileName = primaryClassAnnotation.getSourceFileName(); if(bugFileName == null || bugFileName.isEmpty()){ return false; } boolean result = fileName.match(bugFileName); if (DEBUG) { System.out.println("Matching " + bugFileName + " with " + fileName + ", result = " + result); } return result; }
String sourceFile = classBugFoundIn.getSourceFileName(); boolean fixed = sourceFile != null && analyzedSourceFiles.contains(sourceFile) || newCollection.getProjectStats().getClassStats(className) != null;
@Override public boolean match(BugInstance bugInstance) { ClassAnnotation primaryClassAnnotation = bugInstance.getPrimaryClass(); if(primaryClassAnnotation == null){ return false; } String bugFileName = primaryClassAnnotation.getSourceFileName(); if(bugFileName == null || bugFileName.isEmpty()){ return false; } boolean result = fileName.match(bugFileName); if (DEBUG) { System.out.println("Matching " + bugFileName + " with " + fileName + ", result = " + result); } return result; }
public String getBugReportSummary(BugInstance b) { return b.getMessageWithoutPrefix() + " in " + b.getPrimaryClass().getSourceFileName(); }
@Override protected ActionResult doAccept(BugInstance issue, Ignore action) { final MethodAnnotation method = issue.getPrimaryMethod(); final String className = issue.getPrimaryClass().getClassName(); final String methodName = method == null ? null : method.getMethodName(); final Language language = Language.byFilename(issue.getPrimaryClass().getSourceFileName()); return action.accept(new NamedLocation(issue.getType(), language, className, methodName, true)); }
@Override protected ActionResult doAccept(BugInstance issue, Ignore action) { final MethodAnnotation method = issue.getPrimaryMethod(); final String className = issue.getPrimaryClass().getClassName(); final String methodName = method == null ? null : method.getMethodName(); final Language language = Language.byFilename(issue.getPrimaryClass().getSourceFileName()); return action.accept(new NamedLocation(issue.getType(), language, className, methodName, true)); }
String sourceFile = classBugFoundIn.getSourceFileName(); boolean fixed = sourceFile != null && analyzedSourceFiles.contains(sourceFile) || newCollection.getProjectStats().getClassStats(className) != null;