diff options
-rw-r--r-- | src/main/java/at/gv/util/ToStringUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/gv/util/ToStringUtil.java b/src/main/java/at/gv/util/ToStringUtil.java index 2498eb6..badebe5 100644 --- a/src/main/java/at/gv/util/ToStringUtil.java +++ b/src/main/java/at/gv/util/ToStringUtil.java @@ -55,8 +55,9 @@ public final class ToStringUtil { StringBuffer sb = new StringBuffer(2); int h = (b & 0xf0) >> 4; int l = (b & 0x0f); - sb.append(new Character((char) ((h > 9) ? 'a' + h - 10 : '0' + h))); - sb.append(new Character((char) ((l > 9) ? 'a' + l - 10 : '0' + l))); + sb.append(Character.valueOf((char)((h > 9) ? 'a' + h - 10 : '0' + h))); + sb.append(Character.valueOf((char) ((l > 9) ? 'a' + l - 10 : '0' + l))); + return sb.toString(); } |