From: Javen O'Neal Date: Sun, 17 Jul 2016 10:22:43 +0000 (+0000) Subject: HexDump.writeHex is similar to Long#toHexString. Consider consolidating. X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3300cf4be632e66e8a04ab2ff8d60b1b8470cc0;p=poi.git HexDump.writeHex is similar to Long#toHexString. Consider consolidating. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753050 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/util/HexDump.java b/src/java/org/apache/poi/util/HexDump.java index 25fb3c2758..01a8f50911 100644 --- a/src/java/org/apache/poi/util/HexDump.java +++ b/src/java/org/apache/poi/util/HexDump.java @@ -391,6 +391,10 @@ public class HexDump { return sb.toString(); } + /** + * @see Integer#toHexString(int) + * @see Long#toHexString(long) + */ private static void writeHex(StringBuilder sb, long value, int nDigits, String prefix) { sb.append(prefix); char[] buf = new char[nDigits];