[COLLECTIONS-519] Revert after discussion on the mailinglist.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1591832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2014-05-02 08:58:40 +00:00
parent c48007f44b
commit d61e967bad
16 changed files with 16 additions and 19 deletions

View File

@ -22,9 +22,6 @@
<body>
<release version="4.1" date="TBD" description="">
<action issue="COLLECTIONS-519" dev="tn" type="fix" due-to="Radoslav Paskalev, Daniel Feist">
Constructors of *Utils classes are now protected to allow sub-classing.
</action>
<action issue="COLLECTIONS-512" dev="tn" type="fix" due-to="Cyrille Artho">
"TransformingComparator" did not comply with the contract of Object#equals.
</action>

View File

@ -56,7 +56,7 @@ public class ClosureUtils {
/**
* This class is not normally instantiated.
*/
protected ClosureUtils() {}
private ClosureUtils() {}
/**
* Gets a Closure that always throws an exception.

View File

@ -185,7 +185,7 @@ public class CollectionUtils {
/**
* <code>CollectionUtils</code> should not normally be instantiated.
*/
protected CollectionUtils() {}
private CollectionUtils() {}
/**
* Returns the immutable EMPTY_COLLECTION with generic type safety.

View File

@ -43,7 +43,7 @@ public class ComparatorUtils {
/**
* ComparatorUtils should not normally be instantiated.
*/
protected ComparatorUtils() {}
private ComparatorUtils() {}
/**
* Comparator for natural sort order.

View File

@ -34,7 +34,7 @@ public class EnumerationUtils {
/**
* EnumerationUtils is not normally instantiated.
*/
protected EnumerationUtils() {}
private EnumerationUtils() {}
/**
* Creates a list based on an enumeration.

View File

@ -41,7 +41,7 @@ public class FactoryUtils {
/**
* This class is not normally instantiated.
*/
protected FactoryUtils() {}
private FactoryUtils() {}
/**
* Gets a Factory that always throws an exception.

View File

@ -119,7 +119,7 @@ public class IteratorUtils {
/**
* IteratorUtils is not normally instantiated.
*/
protected IteratorUtils() {}
private IteratorUtils() {}
// Empty
//-----------------------------------------------------------------------

View File

@ -46,7 +46,7 @@ public class ListUtils {
/**
* <code>ListUtils</code> should not normally be instantiated.
*/
protected ListUtils() {}
private ListUtils() {}
//-----------------------------------------------------------------------

View File

@ -92,7 +92,7 @@ public class MapUtils {
/**
* <code>MapUtils</code> should not normally be instantiated.
*/
protected MapUtils() {}
private MapUtils() {}
// Type safe getters
//-------------------------------------------------------------------------

View File

@ -48,7 +48,7 @@ public class MultiMapUtils {
/**
* <code>MultiMapUtils</code> should not normally be instantiated.
*/
protected MultiMapUtils() {
private MultiMapUtils() {
}
/**

View File

@ -74,7 +74,7 @@ public class PredicateUtils {
/**
* This class is not normally instantiated.
*/
protected PredicateUtils() {}
private PredicateUtils() {}
// Simple predicates
//-----------------------------------------------------------------------------

View File

@ -40,7 +40,7 @@ public class QueueUtils {
/**
* <code>QueueUtils</code> should not normally be instantiated.
*/
protected QueueUtils() {}
private QueueUtils() {}
//-----------------------------------------------------------------------

View File

@ -69,7 +69,7 @@ public class SetUtils {
/**
* <code>SetUtils</code> should not normally be instantiated.
*/
protected SetUtils() {}
private SetUtils() {}
//-----------------------------------------------------------------------

View File

@ -20,11 +20,11 @@ import java.util.Collection;
import java.util.Map;
import java.util.Set;
import org.apache.commons.collections4.set.UnmodifiableSet;
import org.apache.commons.collections4.collection.UnmodifiableCollection;
import org.apache.commons.collections4.iterators.UnmodifiableMapIterator;
import org.apache.commons.collections4.map.EntrySetToMapIteratorAdapter;
import org.apache.commons.collections4.map.UnmodifiableEntrySet;
import org.apache.commons.collections4.set.UnmodifiableSet;
/**
* Utilities for working with "split maps:" objects that implement {@link Put}
@ -41,7 +41,7 @@ public class SplitMapUtils {
/**
* <code>SplitMapUtils</code> should not normally be instantiated.
*/
protected SplitMapUtils() {}
private SplitMapUtils() {}
//-----------------------------------------------------------------------

View File

@ -66,7 +66,7 @@ public class TransformerUtils {
/**
* This class is not normally instantiated.
*/
protected TransformerUtils() {}
private TransformerUtils() {}
/**
* Gets a transformer that always throws an exception.

View File

@ -29,7 +29,7 @@ public class TrieUtils {
/**
* {@link TrieUtils} should not normally be instantiated.
*/
protected TrieUtils() {}
private TrieUtils() {}
/**
* Returns an unmodifiable instance of a {@link Trie}