Skip to content

Commit

Permalink
Don't exit if we find a bad ClientSignature when creating constants; …
Browse files Browse the repository at this point in the history
…bubble the exception as a RuntimeException
  • Loading branch information
Jmcleodfoss committed Oct 27, 2020
1 parent 5290d2d commit aa6e8c1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ static private ClientSignature factory(byte signature)
try {
return new ClientSignature(signature);
} catch (final UnknownClientSignatureException e) {
e.printStackTrace(System.out);
System.exit(1);
return null;
// This shouldn't happen because we only call this function to define constants within this class with known good values
throw new RuntimeException(e);
}
}
}

0 comments on commit aa6e8c1

Please sign in to comment.