[Pixelle-commit] SF.net SVN: pixelle:[182] trunk/pixelle/src/com/mebigfatguy/pixelle/ AlgorithmArch
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-14 16:45:05
|
Revision: 182
http://pixelle.svn.sourceforge.net/pixelle/?rev=182&view=rev
Author: dbrosius
Date: 2008-11-14 16:44:57 +0000 (Fri, 14 Nov 2008)
Log Message:
-----------
use EnumMap for currentAlgorithm
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-14 16:43:44 UTC (rev 181)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-14 16:44:57 UTC (rev 182)
@@ -29,6 +29,7 @@
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
+import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
@@ -241,7 +242,7 @@
currentGroup = new HashMap<String, Map<PixelleComponent, String>>();
algorithms.put(atts.getValue(NAME), currentGroup);
} else if (ALGORITHM.equals(localName)) {
- currentAlgorithm = new HashMap<PixelleComponent, String>();
+ currentAlgorithm = new EnumMap<PixelleComponent, String>(PixelleComponent.class);
currentGroup.put(atts.getValue(NAME), currentAlgorithm);
} else if (COMPONENT.equals(localName)) {
currentComponentName = atts.getValue(NAME);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|