From 1dee765d2d158830df3cb733bc257f9729343046 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sat, 23 Jun 2012 18:29:44 +0000 Subject: [PATCH] [COLLECTIONS-324] Made protected fields final to improve thread-safety. Thanks to sebb for the report. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1353172 13f79535-47bb-0310-9956-ffa450edef68 --- .../collections/comparators/TransformingComparator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/collections/comparators/TransformingComparator.java b/src/main/java/org/apache/commons/collections/comparators/TransformingComparator.java index ee3c77672..cffb3e5af 100644 --- a/src/main/java/org/apache/commons/collections/comparators/TransformingComparator.java +++ b/src/main/java/org/apache/commons/collections/comparators/TransformingComparator.java @@ -35,9 +35,9 @@ import org.apache.commons.collections.Transformer; public class TransformingComparator implements Comparator { /** The decorated comparator. */ - protected Comparator decorated; + protected final Comparator decorated; /** The transformer being used. */ - protected Transformer transformer; + protected final Transformer transformer; //----------------------------------------------------------------------- /**