Clean up Sonar results 1
[aaf/authz.git] / auth / auth-core / src / main / java / org / onap / aaf / auth / local / AbsData.java
index 40e0b22..d9f7ac9 100644 (file)
@@ -71,7 +71,7 @@ public abstract class AbsData implements Iterable<String> {
        
        public void open(AuthzTrans trans, long timeout) throws IOException {
                TimeTaken tt = trans.start("Open Data File", Env.SUB);
-               boolean opened = false, first = true;
+               boolean first = true;
                try {
                                if(!dataf.exists()) {
                                        throw new FileNotFoundException("Data File Missing:" + dataf.getCanonicalPath());
@@ -102,14 +102,10 @@ public abstract class AbsData implements Iterable<String> {
                                        throw e;
                                }
                                ti.open();
-                               opened = true;
                        
                } finally {
                        tt.done();
                }
-               if(!opened) {
-                       throw new IOException("DataFile pair for " + name + " was not able to be opened in " + timeout + "ms");
-               }
        }
        
        private synchronized void ensureIdxGood(AuthzTrans trans) throws IOException {