/** * Add an analysis error. * * @param message * the error message */ @Override public void addError(String message) { addError(message, null); }
@Override public void addMissingClass(String className) { if (className == null || className.length() == 0) { return; } if (className.startsWith("[")) { assert false : "Bad class name " + className; return; } if (className.endsWith(";")) { addError("got signature rather than classname: " + className, new IllegalArgumentException()); } else { missingClassSet.add(className); } }
@Override public void logError(String message) { bugCollection.addError(message); super.logError(message); }
@Override public void logError(String message) { bugCollection.addError(message); super.logError(message); }
@Override public void logError(String message, Throwable e) { if (e instanceof MissingClassException) { MissingClassException e2 = (MissingClassException) e; reportMissingClass(e2.getClassNotFoundException()); return; } if (e instanceof MethodUnprofitableException) { // TODO: log this return; } bugCollection.addError(message, e); super.logError(message, e); }
static public void merge(HashSet<String> hashes, SortedBugCollection into, SortedBugCollection from) { for (BugInstance bugInstance : from.getCollection()) { if (hashes == null || hashes.add(bugInstance.getInstanceHash())) { into.add(bugInstance); } } ProjectStats stats = into.getProjectStats(); ProjectStats stats2 = from.getProjectStats(); stats.addStats(stats2); Project project = into.getProject(); Project project2 = from.getProject(); project.add(project2); for(AnalysisError error : from.getErrors()) { into.addError(error); } return; }
/** * Add an analysis error. * * @param message * the error message */ @Override public void addError(String message) { addError(message, null); }
private static void disconnect(boolean verbose, final FilterCommandLine commandLine, SortedBugCollection resultCollection, String msg) { if (verbose) { System.out.println(msg); } resultCollection.addError(msg); commandLine.maxAgeSpecified = commandLine.notAProblemSpecified = commandLine.shouldFixSpecified = false; }
@Override public void logError(String message) { bugCollection.addError(message); super.logError(message); }
@Override public void addMissingClass(String className) { if (className == null || className.length() == 0) { return; } if (className.startsWith("[")) { assert false : "Bad class name " + className; return; } if (className.endsWith(";")) { addError("got signature rather than classname: " + className, new IllegalArgumentException()); } else { missingClassSet.add(className); } }
@Override public void logError(String message) { bugCollection.addError(message); super.logError(message); }
@Override public void logError(String message, Throwable e) { if (e instanceof MissingClassException) { MissingClassException e2 = (MissingClassException) e; reportMissingClass(e2.getClassNotFoundException()); return; } if (e instanceof MethodUnprofitableException) { // TODO: log this return; } bugCollection.addError(message, e); super.logError(message, e); }
static public void merge(HashSet<String> hashes, SortedBugCollection into, SortedBugCollection from) { for (BugInstance bugInstance : from.getCollection()) { if (hashes == null || hashes.add(bugInstance.getInstanceHash())) { into.add(bugInstance); } } ProjectStats stats = into.getProjectStats(); ProjectStats stats2 = from.getProjectStats(); stats.addStats(stats2); Project project = into.getProject(); Project project2 = from.getProject(); project.add(project2); for(AnalysisError error : from.getErrors()) { into.addError(error); } return; }