aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/poifs
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-08-29 14:41:12 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-08-29 14:41:12 +0000
commitebdbe8b97ab92fd16bbd687b2b3662d252ef57d6 (patch)
tree90f352484ed4d1bdff0755c8c33f6bcce9d46ec2 /src/testcases/org/apache/poi/poifs
parent7b5bd4a7f67ce324620153ead02d7bfc90348806 (diff)
downloadpoi-ebdbe8b97ab92fd16bbd687b2b3662d252ef57d6.tar.gz
poi-ebdbe8b97ab92fd16bbd687b2b3662d252ef57d6.zip
- reworked HexDump class - unified array dumps and usage of standard java calls for hex format
- fixed a few findbugs DM_DEFAULT_ENCODING issues - removed a few System.out/.err calls - instead the poilogger is used - closed a few left open resource instances git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700040 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/poifs')
-rw-r--r--src/testcases/org/apache/poi/poifs/storage/RawDataUtil.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/poifs/storage/RawDataUtil.java b/src/testcases/org/apache/poi/poifs/storage/RawDataUtil.java
index d69fd681cf..dca549c888 100644
--- a/src/testcases/org/apache/poi/poifs/storage/RawDataUtil.java
+++ b/src/testcases/org/apache/poi/poifs/storage/RawDataUtil.java
@@ -50,9 +50,7 @@ public final class RawDataUtil {
System.out.println("String[] hexDataLines = {");
System.out.print("\t\"");
while(true) {
- char[] cc = HexDump.byteToHex(data[i]);
- System.out.print(cc[2]);
- System.out.print(cc[3]);
+ System.out.print(HexDump.byteToHex(data[i]).substring(2));
i++;
if (i>=data.length) {
break;