Merge "Install tools/libs from doc hub image"
[aaf/authz.git] / cadi / aaf / src / main / java / org / onap / aaf / cadi / persist / Persisting.java
index f75527d..8b98f5b 100644 (file)
@@ -33,7 +33,7 @@ public class Persisting<T> implements Persistable<T> {
        private static final byte[] EMPTY = new byte[0];
        private final byte[] hash; // need to be able to validate disk entry
 
-       private static final long SYNC_TIME = 1000*60*1; // Checking File change max 1 min
+       private static final long SYNC_TIME = 1000*60*1L; // Checking File change max 1 min
        private FileTime lastTouched;
        private int count;
        private long expires;
@@ -113,11 +113,7 @@ public class Persisting<T> implements Persistable<T> {
                //TODO other elements to add here... 
                // Ideas:  Is it valid?
                //         if not, How many times has it been checked in the last minute
-               if(expired()) {
-                       return true;
-               } else {
-                       return false;
-               }
+               return expired();
        }
 
        @Override