diff options
author | Brian Carlstrom <bdc@google.com> | 2013-04-29 16:50:13 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-04-30 14:50:12 -0700 |
commit | 1f203dc168cd4ab457d9690bc78766fe63da2cf9 (patch) | |
tree | 2bbfdd52a87c1158185010d055c4ba07d034d7bd /dex/src/main/java/com/android | |
parent | df60589435658db76be61708bfa66515ffba40af (diff) | |
download | libcore-1f203dc168cd4ab457d9690bc78766fe63da2cf9.zip libcore-1f203dc168cd4ab457d9690bc78766fe63da2cf9.tar.gz libcore-1f203dc168cd4ab457d9690bc78766fe63da2cf9.tar.bz2 |
Improve exception detail message
(cherry picked from commit 345a87a2e40955ad999e56cbd3674ccc95e16537)
Change-Id: I4ecb9d07bd3bf50cdcfe67c21a53181dfcbc670b
Diffstat (limited to 'dex/src/main/java/com/android')
-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())); } } } |