Skip to content

Commit 3fb12de

Browse files
committed
Immutable private field might as well be final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1004843 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1f37a65 commit 3fb12de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/input/XmlStreamReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public class XmlStreamReader extends Reader {
9797

9898
private String encoding;
9999

100-
private String defaultEncoding;
100+
private final String defaultEncoding;
101101

102102
/**
103103
* Sets the default encoding to use if none is set in HTTP content-type, XML

0 commit comments

Comments
 (0)