forked from I2P_Developers/i2p.i2p
lint: don't catch Exception, catch RuntimeException or checked exception.
omits SAM, BOB, reflection, commented-out code, and a few other places
This commit is contained in:
@ -109,7 +109,7 @@ public class BundleRouterInfos {
|
||||
RouterInfo ri = new RouterInfo();
|
||||
ri.readBytes(fis, true); // true = verify sig on read
|
||||
me = ri.getIdentity().getHash();
|
||||
} catch (Exception e) {
|
||||
} catch (RuntimeException e) {
|
||||
//System.out.println("Can't determine our identity");
|
||||
} finally {
|
||||
if (fis != null) try { fis.close(); } catch (IOException ioe) {}
|
||||
@ -209,7 +209,7 @@ public class BundleRouterInfos {
|
||||
copied++;
|
||||
else
|
||||
System.out.println("Failed copy of " + file + " to " + toDir);
|
||||
} catch (Exception e) {
|
||||
} catch (RuntimeException e) {
|
||||
System.out.println("Skipping bad " + file);
|
||||
} finally {
|
||||
if (fis != null) try { fis.close(); } catch (IOException ioe) {}
|
||||
|
Reference in New Issue
Block a user