aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/util
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-09-16 08:22:59 +0000
committerDominik Stadler <centic@apache.org>2017-09-16 08:22:59 +0000
commit32370cfd1cf44caabb638356f32eba60ea2a79a8 (patch)
treed17d59b5ae589bcfc2efa17b95d9159f33e47b48 /src/java/org/apache/poi/util
parent128c17e83ed7487f320fb20122be1603a1c9fd29 (diff)
downloadpoi-32370cfd1cf44caabb638356f32eba60ea2a79a8.tar.gz
poi-32370cfd1cf44caabb638356f32eba60ea2a79a8.zip
Remove unnecessary initialization of members
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808510 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/util')
-rw-r--r--src/java/org/apache/poi/util/BoundedInputStream.java2
-rw-r--r--src/java/org/apache/poi/util/CommonsLogger.java2
-rw-r--r--src/java/org/apache/poi/util/IntList.java2
-rw-r--r--src/java/org/apache/poi/util/LittleEndianCP950Reader.java2
-rw-r--r--src/java/org/apache/poi/util/POILogFactory.java2
-rw-r--r--src/java/org/apache/poi/util/ReplacingInputStream.java6
-rw-r--r--src/java/org/apache/poi/util/StringUtil.java2
7 files changed, 9 insertions, 9 deletions
diff --git a/src/java/org/apache/poi/util/BoundedInputStream.java b/src/java/org/apache/poi/util/BoundedInputStream.java
index 1ef84d9ff0..8b5a7a8dd5 100644
--- a/src/java/org/apache/poi/util/BoundedInputStream.java
+++ b/src/java/org/apache/poi/util/BoundedInputStream.java
@@ -42,7 +42,7 @@ public class BoundedInputStream extends InputStream {
private final long max;
/** the number of bytes already returned */
- private long pos = 0;
+ private long pos;
/** the marked position */
private long mark = -1;
diff --git a/src/java/org/apache/poi/util/CommonsLogger.java b/src/java/org/apache/poi/util/CommonsLogger.java
index a204fde17a..1825deaacd 100644
--- a/src/java/org/apache/poi/util/CommonsLogger.java
+++ b/src/java/org/apache/poi/util/CommonsLogger.java
@@ -31,7 +31,7 @@ import org.apache.commons.logging.LogFactory;
public class CommonsLogger extends POILogger
{
private static final LogFactory _creator = LogFactory.getFactory();
- private Log log = null;
+ private Log log;
@Override
public void initialize(final String cat)
diff --git a/src/java/org/apache/poi/util/IntList.java b/src/java/org/apache/poi/util/IntList.java
index 08f024082e..62276d920d 100644
--- a/src/java/org/apache/poi/util/IntList.java
+++ b/src/java/org/apache/poi/util/IntList.java
@@ -47,7 +47,7 @@ public class IntList
{
private int[] _array;
private int _limit;
- private int fillval = 0;
+ private int fillval;
private static final int _default_size = 128;
/**
diff --git a/src/java/org/apache/poi/util/LittleEndianCP950Reader.java b/src/java/org/apache/poi/util/LittleEndianCP950Reader.java
index d3d29307c4..61808afcaa 100644
--- a/src/java/org/apache/poi/util/LittleEndianCP950Reader.java
+++ b/src/java/org/apache/poi/util/LittleEndianCP950Reader.java
@@ -54,7 +54,7 @@ public class LittleEndianCP950Reader extends Reader {
private int offset;
private int trailing;
private int leading;
- int cnt = 0;
+ int cnt;
//the char that is logically trailing in Big5 encoding
//however in LittleEndian order, this is the first encountered.
public LittleEndianCP950Reader(byte[] data) {
diff --git a/src/java/org/apache/poi/util/POILogFactory.java b/src/java/org/apache/poi/util/POILogFactory.java
index 1e34ccd29b..34460702fc 100644
--- a/src/java/org/apache/poi/util/POILogFactory.java
+++ b/src/java/org/apache/poi/util/POILogFactory.java
@@ -46,7 +46,7 @@ public final class POILogFactory {
* The name of the class to use. Initialised the
* first time we need it
*/
- static String _loggerClassName = null;
+ static String _loggerClassName;
/**
* Construct a POILogFactory.
diff --git a/src/java/org/apache/poi/util/ReplacingInputStream.java b/src/java/org/apache/poi/util/ReplacingInputStream.java
index 47c153432c..884bd838f2 100644
--- a/src/java/org/apache/poi/util/ReplacingInputStream.java
+++ b/src/java/org/apache/poi/util/ReplacingInputStream.java
@@ -35,9 +35,9 @@ public class ReplacingInputStream extends FilterInputStream {
// while matching, this is where the bytes go.
final int[] buf;
- private int matchedIndex=0;
- private int unbufferIndex=0;
- private int replacedIndex=0;
+ private int matchedIndex;
+ private int unbufferIndex;
+ private int replacedIndex;
private final byte[] pattern;
private final byte[] replacement;
diff --git a/src/java/org/apache/poi/util/StringUtil.java b/src/java/org/apache/poi/util/StringUtil.java
index fa84f6ef5c..30aee7a066 100644
--- a/src/java/org/apache/poi/util/StringUtil.java
+++ b/src/java/org/apache/poi/util/StringUtil.java
@@ -315,7 +315,7 @@ public class StringUtil {
*/
public static class StringsIterator implements Iterator<String> {
private String[] strings = {};
- private int position = 0;
+ private int position;
public StringsIterator(String[] strings) {
if (strings != null) {
this.strings = strings.clone();