public static void main(String[] args) throws Exception { if (args.length != 1) { System.out.println("Usage: " + PrintAppVersion.class.getName() + " <bug collection>"); System.exit(1); } FindBugs.setNoAnalysis(); SortedBugCollection bugCollection = new SortedBugCollection(); bugCollection.readXML(args[0]); System.out.println(bugCollection.getCurrentAppVersion()); } }
@Override public AppVersion getAppVersionFromSequenceNumber(long target) { for (AppVersion av : appVersionList) { if (av.getSequenceNumber() == target) { return av; } } if (target == this.getSequenceNumber()) { return this.getCurrentAppVersion(); } return null; }
origCollection.readXML(fileName); AppVersion appVersion = origCollection.getCurrentAppVersion(); ProjectStats stats = origCollection.getProjectStats(); out.print(appVersion.getReleaseName());
AppVersion currentAppVersion = bugCollection.getCurrentAppVersion(); sequenceToAppVersionMap.put(sequenceNumber, currentAppVersion);
AppVersion v = resultCollection.getCurrentAppVersion(); versions.put(v.getReleaseName(), v); timeStamps.put(v.getTimestamp(), v);
public static void main(String[] args) throws Exception { if (args.length != 1) { System.out.println("Usage: " + PrintAppVersion.class.getName() + " <bug collection>"); System.exit(1); } FindBugs.setNoAnalysis(); SortedBugCollection bugCollection = new SortedBugCollection(); bugCollection.readXML(args[0]); System.out.println(bugCollection.getCurrentAppVersion()); } }
@Override public AppVersion getAppVersionFromSequenceNumber(long target) { for (AppVersion av : appVersionList) { if (av.getSequenceNumber() == target) { return av; } } if (target == this.getSequenceNumber()) { return this.getCurrentAppVersion(); } return null; }
origCollection.readXML(fileName); AppVersion appVersion = origCollection.getCurrentAppVersion(); ProjectStats stats = origCollection.getProjectStats(); out.print(appVersion.getReleaseName());
AppVersion currentAppVersion = bugCollection.getCurrentAppVersion(); sequenceToAppVersionMap.put(sequenceNumber, currentAppVersion);
AppVersion v = resultCollection.getCurrentAppVersion(); versions.put(v.getReleaseName(), v); timeStamps.put(v.getTimestamp(), v);