This change was based on a wrong understanding of WeakReference
purpose and has been reverted.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24475:24476 https://svn.osgeo.org/geotools/trunk/modules/library/coverage/src/main/java/org/geotools/coverage/ColorModelFactory.java
Revision 24475 | Revision 24476 |
---|---|
import org.geotools.resources.i18n.ErrorKeys;
import org.geotools.resources.image.ColorUtilities;
import org.geotools.resources.image.ComponentColorModelJAI;
import org.geotools.util.WeakValueHashMap;
/** |
import org.geotools.resources.i18n.ErrorKeys;
import org.geotools.resources.image.ColorUtilities;
import org.geotools.resources.image.ComponentColorModelJAI;
import org.geotools.util.SoftValueHashMap;
/** |
* peuvent être construits à partir des couleurs qui ont été définies dans les différentes
* catégories du tableau {@link #categories}.
*/
private static final Map colors = new WeakValueHashMap();
/**
* The list of categories for the construction of a single instance of a {@link ColorModel}. |
* peuvent être construits à partir des couleurs qui ont été définies dans les différentes
* catégories du tableau {@link #categories}.
*/
private static final Map colors = new SoftValueHashMap();
/**
* The list of categories for the construction of a single instance of a {@link ColorModel}. |