maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1157502 - /maven/sandbox/trunk/doxia/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java
Date Sun, 14 Aug 2011 09:12:51 GMT
Author: hboutemy
Date: Sun Aug 14 09:12:51 2011
New Revision: 1157502

URL: http://svn.apache.org/viewvc?rev=1157502&view=rev
Log:
code simplification

Modified:
    maven/sandbox/trunk/doxia/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java

Modified: maven/sandbox/trunk/doxia/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/doxia/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java?rev=1157502&r1=1157501&r2=1157502&view=diff
==============================================================================
--- maven/sandbox/trunk/doxia/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java
(original)
+++ maven/sandbox/trunk/doxia/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java
Sun Aug 14 09:12:51 2011
@@ -24,8 +24,6 @@ import java.io.FileReader;
 import java.io.OutputStream;
 import java.io.Reader;
 import java.io.StringReader;
-import java.io.StringWriter;
-import java.io.Writer;
 
 import org.apache.commons.io.output.ByteArrayOutputStream;
 import org.apache.maven.doxia.Converter;
@@ -259,12 +257,9 @@ public class DoxiaWrapper
             IMarker marker = markers[i];
             owner = marker.getAttribute( CommonPlugin.PLUGIN_ID );
 
-            if ( owner != null && owner instanceof String )
+            if ( CommonPlugin.PLUGIN_ID.equals( owner ) )
             {
-                if ( owner.equals( CommonPlugin.PLUGIN_ID ) )
-                {
-                    deleteMarkers[deleteindex++] = markers[i];
-                }
+                deleteMarkers[deleteindex++] = marker;
             }
         }
 



Mime
View raw message