Replace Guava Longs.compare with Java 7 Long.compare
As compare is now available as part of the runtime, just use the standard function. Change-Id: I7b2eb2587800a6549263ede90339adeab8c946a5
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
package com.google.gerrit.pgm.util;
|
||||
|
||||
import com.google.common.primitives.Longs;
|
||||
import com.google.gerrit.server.config.GerritServerConfig;
|
||||
import com.google.gerrit.server.config.SitePaths;
|
||||
import com.google.gerrit.server.schema.DataSourceProvider;
|
||||
@@ -68,7 +67,7 @@ public class SiteLibraryBasedDataSourceProvider extends DataSourceProvider {
|
||||
@Override
|
||||
public int compare(File a, File b) {
|
||||
// Sort by reverse last-modified time so newer JARs are first.
|
||||
int cmp = Longs.compare(b.lastModified(), a.lastModified());
|
||||
int cmp = Long.compare(b.lastModified(), a.lastModified());
|
||||
if (cmp != 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user