[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
This commit is contained in:
Thomas Neidhart 2012-06-23 18:29:44 +00:00
parent 7c8c58f146
commit 1dee765d2d
1 changed files with 2 additions and 2 deletions

View File

@ -35,9 +35,9 @@ import org.apache.commons.collections.Transformer;
public class TransformingComparator<E> implements Comparator<E> {
/** The decorated comparator. */
protected Comparator<E> decorated;
protected final Comparator<E> decorated;
/** The transformer being used. */
protected Transformer<? super E, ? extends E> transformer;
protected final Transformer<? super E, ? extends E> transformer;
//-----------------------------------------------------------------------
/**