Ensure constants always used for fields in remaining places.

This commit is contained in:
Peter Serwylo 2016-07-02 07:58:36 +10:00
parent 9135026362
commit 88107cf94e

View File

@ -199,7 +199,7 @@ public class RepoUpdater {
reader.setContentHandler(repoXMLHandler);
reader.parse(new InputSource(indexInputStream));
long timestamp = repoDetailsToSave.getAsLong("timestamp");
long timestamp = repoDetailsToSave.getAsLong(RepoTable.Cols.TIMESTAMP);
if (timestamp < repo.timestamp) {
throw new UpdateException(repo, "index.jar is older that current index! "
+ timestamp + " < " + repo.timestamp);