aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-03-02 17:18:18 +0900
committerKen Wakasa <kwakasa@google.com>2013-03-02 17:18:18 +0900
commita8d3d50970cecf961940efc0e908fbb2f9b35472 (patch)
tree889c9c8798370783b98bad791138a98a5f33d690
parent7d2e465ac02157aede689ca3146c9aee79de898c (diff)
downloadlatinime-a8d3d50970cecf961940efc0e908fbb2f9b35472.tar.gz
latinime-a8d3d50970cecf961940efc0e908fbb2f9b35472.tar.xz
latinime-a8d3d50970cecf961940efc0e908fbb2f9b35472.zip
Small cleanup in CompatUtils
Change-Id: I9b4a8d7eae744ba6252a6475b75240248c70a3c0
-rw-r--r--java/src/com/android/inputmethod/compat/CompatUtils.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/compat/CompatUtils.java b/java/src/com/android/inputmethod/compat/CompatUtils.java
index 5a2b6bd2b..660029baf 100644
--- a/java/src/com/android/inputmethod/compat/CompatUtils.java
+++ b/java/src/com/android/inputmethod/compat/CompatUtils.java
@@ -81,7 +81,7 @@ public final class CompatUtils {
try {
return constructor.newInstance(args);
} catch (Exception e) {
- Log.e(TAG, "Exception in newInstance: " + e.getClass().getSimpleName());
+ Log.e(TAG, "Exception in newInstance", e);
}
return null;
}
@@ -92,7 +92,7 @@ public final class CompatUtils {
try {
return method.invoke(receiver, args);
} catch (Exception e) {
- Log.e(TAG, "Exception in invoke: " + e.getClass().getSimpleName());
+ Log.e(TAG, "Exception in invoke", e);
}
return defaultValue;
}
@@ -103,7 +103,7 @@ public final class CompatUtils {
try {
return field.get(receiver);
} catch (Exception e) {
- Log.e(TAG, "Exception in getFieldValue: " + e.getClass().getSimpleName());
+ Log.e(TAG, "Exception in getFieldValue", e);
}
return defaultValue;
}
@@ -113,7 +113,7 @@ public final class CompatUtils {
try {
field.set(receiver, value);
} catch (Exception e) {
- Log.e(TAG, "Exception in setFieldValue: " + e.getClass().getSimpleName());
+ Log.e(TAG, "Exception in setFieldValue", e);
}
}
}