Document that read/write methods may throw IAE and make sure this is true:
- Replace !! with requireNotNull() - Add try/catch to wrap all other exceptions (mainly protobuf parser ones) - Add tests for malformed input for both read and write - Hide InconsistentMetadataException from public API - Replace its external usages with IllegalArgumentException
This commit is contained in:
committed by
Space Team
parent
64838d5ec9
commit
4b524b8589
@@ -121,11 +121,6 @@ public final class kotlinx/metadata/FlagsKt {
|
||||
public static final fun flagsOf ([Lkotlinx/metadata/Flag;)I
|
||||
}
|
||||
|
||||
public final class kotlinx/metadata/InconsistentKotlinMetadataException : java/lang/RuntimeException {
|
||||
public fun <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
|
||||
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/Throwable;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
}
|
||||
|
||||
public final class kotlinx/metadata/KmAnnotation {
|
||||
public fun <init> (Ljava/lang/String;Ljava/util/Map;)V
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
|
||||
Reference in New Issue
Block a user