mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Catch ClassCastException when the encountered type doesn't match the
expected type, and re-throw as FormatException.
This commit is contained in:
@@ -66,6 +66,6 @@ public interface Reader {
|
||||
boolean hasUserDefinedTag() throws IOException;
|
||||
int readUserDefinedTag() throws IOException;
|
||||
void readUserDefinedTag(int tag) throws IOException;
|
||||
<T> T readUserDefinedObject(int tag) throws IOException,
|
||||
<T> T readUserDefinedObject(int tag, Class<T> t) throws IOException,
|
||||
GeneralSecurityException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user