From c9e8cfcb370a94e0e741356ab5b16fd4cbfed0b4 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 25 May 2018 13:42:03 +0200 Subject: some updates --- src/main/java/at/gv/util/ToStringUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main') 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(); } -- cgit v1.2.3