commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1763716 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource: ByteSource.java ByteSourceInputStream.java
Date Fri, 07 Oct 2016 09:52:49 GMT
Author: sebb
Date: Fri Oct  7 09:52:49 2016
New Revision: 1763716

URL: http://svn.apache.org/viewvc?rev=1763716&view=rev
Log:
Use the getter rather than exposing the field

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceInputStream.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java?rev=1763716&r1=1763715&r2=1763716&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java
Fri Oct  7 09:52:49 2016
@@ -22,7 +22,7 @@ import java.io.InputStream;
 import org.apache.commons.imaging.common.BinaryFunctions;
 
 public abstract class ByteSource {
-    protected final String filename;
+    private final String filename;
 
     public ByteSource(final String filename) {
         this.filename = filename;

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceInputStream.java?rev=1763716&r1=1763715&r2=1763716&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceInputStream.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceInputStream.java
Fri Oct  7 09:52:49 2016
@@ -265,7 +265,7 @@ public class ByteSourceInputStream exten
 
     @Override
     public String getDescription() {
-        return "Inputstream: '" + filename + "'";
+        return "Inputstream: '" + getFilename() + "'";
     }
 
 }



Mime
View raw message