commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1648375 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffContents.java
Date Mon, 29 Dec 2014 15:50:28 GMT
Author: sebb
Date: Mon Dec 29 15:50:28 2014
New Revision: 1648375

URL: http://svn.apache.org/r1648375
Log:
IMAGING-117 Make list unmodifiable

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffContents.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffContents.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffContents.java?rev=1648375&r1=1648374&r2=1648375&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffContents.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffContents.java
Mon Dec 29 15:50:28 2014
@@ -30,7 +30,7 @@ public class TiffContents {
 
     public TiffContents(final TiffHeader tiffHeader, final List<TiffDirectory> directories)
{
         this.header = tiffHeader;
-        this.directories = directories;
+        this.directories = Collections.unmodifiableList(directories);
     }
 
     public List<TiffElement> getElements() throws ImageReadException {



Mime
View raw message