Loading src/java/com/android/internal/telephony/RILUtils.java +9 −1 Original line number Diff line number Diff line Loading @@ -5170,7 +5170,15 @@ public class RILUtils { * @return A string containing all public non-static local variables of a class */ public static String convertToString(Object o) { if (isPrimitiveOrWrapper(o.getClass()) || o.getClass() == String.class) return o.toString(); boolean toStringExists = false; try { toStringExists = o.getClass().getMethod("toString").getDeclaringClass() != Object.class; } catch (NoSuchMethodException e) { loge(e.toString()); } if (toStringExists || isPrimitiveOrWrapper(o.getClass()) || o instanceof ArrayList) { return o.toString(); } if (o.getClass().isArray()) { // Special handling for arrays StringBuilder sb = new StringBuilder("["); Loading Loading
src/java/com/android/internal/telephony/RILUtils.java +9 −1 Original line number Diff line number Diff line Loading @@ -5170,7 +5170,15 @@ public class RILUtils { * @return A string containing all public non-static local variables of a class */ public static String convertToString(Object o) { if (isPrimitiveOrWrapper(o.getClass()) || o.getClass() == String.class) return o.toString(); boolean toStringExists = false; try { toStringExists = o.getClass().getMethod("toString").getDeclaringClass() != Object.class; } catch (NoSuchMethodException e) { loge(e.toString()); } if (toStringExists || isPrimitiveOrWrapper(o.getClass()) || o instanceof ArrayList) { return o.toString(); } if (o.getClass().isArray()) { // Special handling for arrays StringBuilder sb = new StringBuilder("["); Loading