[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:
parent
7c8c58f146
commit
1dee765d2d
|
@ -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;
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue