[COLLECTIONS-455] Remove todos: keep decorated object protected.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493902 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f9930aa9f3
commit
20619b096c
|
@ -45,8 +45,6 @@ public abstract class AbstractCollectionDecorator<E>
|
||||||
/** Serialization version */
|
/** Serialization version */
|
||||||
private static final long serialVersionUID = 6249888059822088500L;
|
private static final long serialVersionUID = 6249888059822088500L;
|
||||||
|
|
||||||
// TODO privatise field? read-only access - could use decorated() - apart from deserialisation
|
|
||||||
|
|
||||||
/** The collection being decorated */
|
/** The collection being decorated */
|
||||||
protected Collection<E> collection;
|
protected Collection<E> collection;
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ import java.util.Set;
|
||||||
public abstract class AbstractMapDecorator<K, V> extends AbstractIterableMap<K, V> {
|
public abstract class AbstractMapDecorator<K, V> extends AbstractIterableMap<K, V> {
|
||||||
|
|
||||||
/** The map to decorate */
|
/** The map to decorate */
|
||||||
protected transient Map<K, V> map; // TODO Privatise? Only write access is for deserialisation
|
protected transient Map<K, V> map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor only used in deserialization, do not use otherwise.
|
* Constructor only used in deserialization, do not use otherwise.
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.apache.commons.collections4.map.EntrySetToMapIteratorAdapter;
|
||||||
public class AbstractIterableGetMapDecorator<K, V> implements IterableGet<K, V> {
|
public class AbstractIterableGetMapDecorator<K, V> implements IterableGet<K, V> {
|
||||||
|
|
||||||
/** The map to decorate */
|
/** The map to decorate */
|
||||||
protected transient Map<K, V> map; // TODO Privatise? only external access is for deserialisation
|
protected transient Map<K, V> map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new AbstractSplitMapDecorator.
|
* Create a new AbstractSplitMapDecorator.
|
||||||
|
|
Loading…
Reference in New Issue