public static long getVersionNum(BugCollection collection, String val, boolean roundToLaterVersion) { if (val == null) { return -1; } Map<String, AppVersion> versions = new HashMap<>(); SortedMap<Long, AppVersion> timeStamps = new TreeMap<>(); for (Iterator<AppVersion> i = collection.appVersionIterator(); i.hasNext();) { AppVersion v = i.next(); versions.put(v.getReleaseName(), v); timeStamps.put(v.getTimestamp(), v); } // add current version to the maps AppVersion v = collection.getCurrentAppVersion(); versions.put(v.getReleaseName(), v); timeStamps.put(v.getTimestamp(), v); return getVersionNum(versions, timeStamps, val, roundToLaterVersion, v.getSequenceNumber()); }
long newVersion = origCollection.getCurrentAppVersion().getSequenceNumber() + 1; for (BugInstance bug : newCollection.getCollection()) { if (!mapFromNewToOldBug.containsKey(bug)) {
printRow("kind", "name", "density/KNCSS", "bugs", "NCSS"); double projectDensity = density(stats.getTotalBugs(), stats.getCodeSize()); printRow("project", origCollection.getCurrentAppVersion().getReleaseName(), projectDensity, stats.getTotalBugs(), stats.getCodeSize()); for (PackageStats p : stats.getPackageStats()) {
resultCollection.addAppVersion((AppVersion) appVersion.clone()); AppVersion origCollectionVersion = origCollection.getCurrentAppVersion(); AppVersion origCollectionVersionClone = new AppVersion(lastSequence); origCollectionVersionClone.setTimestamp(origCollectionVersion.getTimestamp());
@Override public boolean isAvailable(MainFrame mainframe) { BugCollection bugCollection = mainframe.getBugCollection(); if (bugCollection == null) { return true; } long sequenceNumber = bugCollection.getCurrentAppVersion().getSequenceNumber(); return sequenceNumber > 0; } },
@Override public boolean isAvailable(MainFrame mainframe) { BugCollection bugCollection = mainframe.getBugCollection(); if (bugCollection == null) { return true; } return bugCollection.getCurrentAppVersion().getSequenceNumber() > 0; }
public static long getVersionNum(BugCollection collection, String val, boolean roundToLaterVersion) { if (val == null) { return -1; } Map<String, AppVersion> versions = new HashMap<String, AppVersion>(); SortedMap<Long, AppVersion> timeStamps = new TreeMap<Long, AppVersion>(); for (Iterator<AppVersion> i = collection.appVersionIterator(); i.hasNext();) { AppVersion v = i.next(); versions.put(v.getReleaseName(), v); timeStamps.put(v.getTimestamp(), v); } // add current version to the maps AppVersion v = collection.getCurrentAppVersion(); versions.put(v.getReleaseName(), v); timeStamps.put(v.getTimestamp(), v); return getVersionNum(versions, timeStamps, val, roundToLaterVersion, v.getSequenceNumber()); }
long newVersion = origCollection.getCurrentAppVersion().getSequenceNumber() + 1; for (BugInstance bug : newCollection.getCollection()) { if (!mapFromNewToOldBug.containsKey(bug)) {
printRow("kind", "name", "density/KNCSS", "bugs", "NCSS"); double projectDensity = density(stats.getTotalBugs(), stats.getCodeSize()); printRow("project", origCollection.getCurrentAppVersion().getReleaseName(), projectDensity, stats.getTotalBugs(), stats.getCodeSize()); for (PackageStats p : stats.getPackageStats()) {
resultCollection.addAppVersion((AppVersion) appVersion.clone()); AppVersion origCollectionVersion = origCollection.getCurrentAppVersion(); AppVersion origCollectionVersionClone = new AppVersion(lastSequence); origCollectionVersionClone.setTimestamp(origCollectionVersion.getTimestamp());