diff options
author | Brian Carlstrom <bdc@google.com> | 2013-04-30 21:51:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-04-30 21:51:22 +0000 |
commit | 1d28a94d118bc227a6158dba6925fa3dc22e73a7 (patch) | |
tree | 2bbfdd52a87c1158185010d055c4ba07d034d7bd | |
parent | 73082851de098e1c56d7d19a10d5d0cb722d5fd9 (diff) | |
parent | 1f203dc168cd4ab457d9690bc78766fe63da2cf9 (diff) | |
download | libcore-1d28a94d118bc227a6158dba6925fa3dc22e73a7.zip libcore-1d28a94d118bc227a6158dba6925fa3dc22e73a7.tar.gz libcore-1d28a94d118bc227a6158dba6925fa3dc22e73a7.tar.bz2 |
Merge "Improve exception detail message"
-rw-r--r-- | dex/src/main/java/com/android/dex/EncodedValueReader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dex/src/main/java/com/android/dex/EncodedValueReader.java b/dex/src/main/java/com/android/dex/EncodedValueReader.java index a263464..6f60538 100644 --- a/dex/src/main/java/com/android/dex/EncodedValueReader.java +++ b/dex/src/main/java/com/android/dex/EncodedValueReader.java @@ -280,8 +280,8 @@ public final class EncodedValueReader { private void checkType(int expected) { if (peek() != expected) { - throw new IllegalStateException("Expected array but was " - + Integer.toHexString(peek())); + throw new IllegalStateException( + String.format("Expected %x but was %x", expected, peek())); } } } |