You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by je...@apache.org on 2010/10/28 09:17:31 UTC
svn commit: r1028207 -
/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java
Author: jeremias
Date: Thu Oct 28 07:17:30 2010
New Revision: 1028207
URL: http://svn.apache.org/viewvc?rev=1028207&view=rev
Log:
Removed tab characters that have crept in.
Modified:
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java?rev=1028207&r1=1028206&r2=1028207&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java Thu Oct 28 07:17:30 2010
@@ -70,6 +70,7 @@ public class ImageWriterRegistry {
* Map (for example a Properties file). The entries of the Map consists of fully qualified
* class or package names as keys and integer numbers as values. Zero (0) is the default
* priority.
+ * @param preferredOrder the map of order properties used to order the plug-ins
*/
public ImageWriterRegistry(Properties preferredOrder) {
this.preferredOrder = preferredOrder;
@@ -115,11 +116,11 @@ public class ImageWriterRegistry {
*/
public void register(ImageWriter writer, int priority) {
- String key = writer.getClass().getName();
- // Register the priority to preferredOrder; overwrite original priority if exists
- preferredOrder.put(key, String.valueOf(priority));
+ String key = writer.getClass().getName();
+ // Register the priority to preferredOrder; overwrite original priority if exists
+ preferredOrder.put(key, String.valueOf(priority));
- register(writer);
+ register(writer);
}
/**
@@ -136,7 +137,7 @@ public class ImageWriterRegistry {
int priority = getPriority(writer);
- ListIterator li = entries.listIterator();
+ ListIterator li = entries.listIterator();
while (li.hasNext()) {
ImageWriter w = (ImageWriter)li.next();
if (getPriority(w) < priority) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org