diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-05-25 13:42:03 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-05-25 13:42:03 +0200 |
commit | c9e8cfcb370a94e0e741356ab5b16fd4cbfed0b4 (patch) | |
tree | ec261bed1f9090f68a169fbece5ab1bb429a2128 /src/main/java/at/gv | |
parent | 9c93f4b9958045be167bb367013a9eff9253fdb3 (diff) | |
download | egovutils-c9e8cfcb370a94e0e741356ab5b16fd4cbfed0b4.tar.gz egovutils-c9e8cfcb370a94e0e741356ab5b16fd4cbfed0b4.tar.bz2 egovutils-c9e8cfcb370a94e0e741356ab5b16fd4cbfed0b4.zip |
some updates
Diffstat (limited to 'src/main/java/at/gv')
-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(); } |