aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/util/HexDump.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-10-04 00:35:30 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-10-04 00:35:30 +0000
commit012cfb107cc9b72f962085c284467a8907f48794 (patch)
treedf90bbeaf051cb2bc68bf3410ce0b9b6b99275e3 /src/java/org/apache/poi/util/HexDump.java
parent6d5e89298648e480c29747ba878cc0ea35f263a3 (diff)
downloadpoi-012cfb107cc9b72f962085c284467a8907f48794.tar.gz
poi-012cfb107cc9b72f962085c284467a8907f48794.zip
sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706648 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/util/HexDump.java')
-rw-r--r--src/java/org/apache/poi/util/HexDump.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/util/HexDump.java b/src/java/org/apache/poi/util/HexDump.java
index 1357b88f09..7eb8c85068 100644
--- a/src/java/org/apache/poi/util/HexDump.java
+++ b/src/java/org/apache/poi/util/HexDump.java
@@ -343,21 +343,21 @@ public class HexDump {
* @return string of 8 (zero padded) uppercase hex chars and prefixed with '0x'
*/
public static String intToHex(int value) {
- return xpad(value & 0xFFFFFFFF, 8, "0x");
+ return xpad(value & 0xFFFFFFFFL, 8, "0x");
}
/**
* @return string of 4 (zero padded) uppercase hex chars and prefixed with '0x'
*/
public static String shortToHex(int value) {
- return xpad(value & 0xFFFF, 4, "0x");
+ return xpad(value & 0xFFFFL, 4, "0x");
}
/**
* @return string of 2 (zero padded) uppercase hex chars and prefixed with '0x'
*/
public static String byteToHex(int value) {
- return xpad(value & 0xFF, 2, "0x");
+ return xpad(value & 0xFFL, 2, "0x");
}
private static String xpad(long value, int pad, String prefix) {