Changeset 51c5da3 for installer/tools


Ignore:
Timestamp:
Nov 12, 2015 6:49:13 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c609781
Parents:
37a4fcb
Message:

lint: don't catch Exception, catch RuntimeException? or checked exception.
omits SAM, BOB, reflection, commented-out code, and a few other places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/tools/java/src/net/i2p/router/networkdb/kademlia/BundleRouterInfos.java

    r37a4fcb r51c5da3  
    110110            ri.readBytes(fis, true);  // true = verify sig on read
    111111            me = ri.getIdentity().getHash();
    112         } catch (Exception e) {
     112        } catch (RuntimeException e) {
    113113            //System.out.println("Can't determine our identity");
    114114        } finally {
     
    210210                else
    211211                    System.out.println("Failed copy of " + file + " to " + toDir);
    212             } catch (Exception e) {
     212            } catch (RuntimeException e) {
    213213                System.out.println("Skipping bad " + file);
    214214            } finally {
Note: See TracChangeset for help on using the changeset viewer.