[Pixelle-commit] SF.net SVN: pixelle:[212] trunk/pixelle/src/com/mebigfatguy/pixelle/ AlgorithmArch
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-20 07:54:59
|
Revision: 212
http://pixelle.svn.sourceforge.net/pixelle/?rev=212&view=rev
Author: dbrosius
Date: 2008-11-20 07:54:57 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
use EnumMap
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-20 07:51:05 UTC (rev 211)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-20 07:54:57 UTC (rev 212)
@@ -67,8 +67,8 @@
private final Map<ImageType, Map<String, Map<String, Map<PixelleComponent, String>>>> userAlgorithms;
private AlgorithmArchiver() {
- systemAlgorithms = new HashMap<ImageType, Map<String, Map<String, Map<PixelleComponent, String>>>>();
- userAlgorithms = new HashMap<ImageType, Map<String, Map<String, Map<PixelleComponent, String>>>>();
+ systemAlgorithms = new EnumMap<ImageType, Map<String, Map<String, Map<PixelleComponent, String>>>>(ImageType.class);
+ userAlgorithms = new EnumMap<ImageType, Map<String, Map<String, Map<PixelleComponent, String>>>>(ImageType.class);
loadSystemAlgorithms();
loadUserAlgorithms();
}
@@ -151,7 +151,7 @@
type.put(groupName, group);
}
- group.put(algorithmName, new HashMap<PixelleComponent, String>(algorithm));
+ group.put(algorithmName, new EnumMap<PixelleComponent, String>(algorithm));
}
public void setCurrent(ImageType imageType, Map<PixelleComponent, String> algorithm) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|