aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-06-18 05:59:11 +0000
committerDominik Stadler <centic@apache.org>2017-06-18 05:59:11 +0000
commit3ed768749dac4a612f3c70e24c8e0ec9fd59ac84 (patch)
treec361fecfe6523bd93aaabeb5dbbd08ab3c706c72 /src/java/org/apache/poi
parent7d31871ce58051a5be476ebbb63f3fccf3c848bf (diff)
downloadpoi-3ed768749dac4a612f3c70e24c8e0ec9fd59ac84.tar.gz
poi-3ed768749dac4a612f3c70e24c8e0ec9fd59ac84.zip
Fix some IntelliJ warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799035 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi')
-rw-r--r--src/java/org/apache/poi/ss/formula/ptg/NamePtg.java1
-rw-r--r--src/java/org/apache/poi/util/LittleEndianOutputStream.java6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java b/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java
index 1c590acaa5..a8632b534b 100644
--- a/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java
+++ b/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java
@@ -23,6 +23,7 @@ import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
/**
+ * See the spec at 2.5.198.76 PtgName
*
* @author andy
* @author Jason Height (jheight at chariot dot net dot au)
diff --git a/src/java/org/apache/poi/util/LittleEndianOutputStream.java b/src/java/org/apache/poi/util/LittleEndianOutputStream.java
index 3e0daa310d..fa4f9d1abe 100644
--- a/src/java/org/apache/poi/util/LittleEndianOutputStream.java
+++ b/src/java/org/apache/poi/util/LittleEndianOutputStream.java
@@ -49,7 +49,7 @@ public final class LittleEndianOutputStream extends FilterOutputStream implement
int b3 = (v >>> 24) & 0xFF;
int b2 = (v >>> 16) & 0xFF;
int b1 = (v >>> 8) & 0xFF;
- int b0 = (v >>> 0) & 0xFF;
+ int b0 = (v/* >>> 0*/) & 0xFF;
try {
out.write(b0);
out.write(b1);
@@ -62,14 +62,14 @@ public final class LittleEndianOutputStream extends FilterOutputStream implement
@Override
public void writeLong(long v) {
- writeInt((int)(v >> 0));
+ writeInt((int)(v/* >> 0*/));
writeInt((int)(v >> 32));
}
@Override
public void writeShort(int v) {
int b1 = (v >>> 8) & 0xFF;
- int b0 = (v >>> 0) & 0xFF;
+ int b0 = (v/* >>> 0*/) & 0xFF;
try {
out.write(b0);
out.write(b1);