Changeset 51c5da3 for apps/streaming


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
  • apps/streaming/java/src/net/i2p/client/streaming/impl/I2PSocketManagerFull.java

    r37a4fcb r51c5da3  
    1010import java.net.Socket;
    1111import java.net.SocketTimeoutException;
     12import java.security.GeneralSecurityException;
    1213import java.util.HashSet;
    1314import java.util.List;
     
    260261                priv.writeBytes(keyStream);
    261262                keys[1].writeBytes(keyStream); // signing priv
    262             } catch (Exception e) {
     263            } catch (GeneralSecurityException e) {
     264                throw new I2PSessionException("Error creating keys", e);
     265            } catch (I2PException e) {
     266                throw new I2PSessionException("Error creating keys", e);
     267            } catch (IOException e) {
     268                throw new I2PSessionException("Error creating keys", e);
     269            } catch (RuntimeException e) {
    263270                throw new I2PSessionException("Error creating keys", e);
    264271            }
Note: See TracChangeset for help on using the changeset viewer.