Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6978010741 for ; Mon, 29 Dec 2014 15:50:34 +0000 (UTC) Received: (qmail 67662 invoked by uid 500); 29 Dec 2014 15:50:34 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 67591 invoked by uid 500); 29 Dec 2014 15:50:34 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 67581 invoked by uid 99); 29 Dec 2014 15:50:34 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2014 15:50:34 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 17AE8AC0919; Mon, 29 Dec 2014 15:50:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141229155033.17AE8AC0919@hades.apache.org> 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 directories) { this.header = tiffHeader; - this.directories = directories; + this.directories = Collections.unmodifiableList(directories); } public List getElements() throws ImageReadException {