cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevend...@apache.org
Subject svn commit: r770137 - /cocoon/cocoon3/trunk/cocoon-stax/src/test/java/org/apache/cocoon/stax/stress/test/EmitTransformerTest.java
Date Thu, 30 Apr 2009 09:54:06 GMT
Author: stevendolg
Date: Thu Apr 30 09:54:06 2009
New Revision: 770137

URL: http://svn.apache.org/viewvc?rev=770137&view=rev
Log:
Fixed a minor warning.

Modified:
    cocoon/cocoon3/trunk/cocoon-stax/src/test/java/org/apache/cocoon/stax/stress/test/EmitTransformerTest.java

Modified: cocoon/cocoon3/trunk/cocoon-stax/src/test/java/org/apache/cocoon/stax/stress/test/EmitTransformerTest.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-stax/src/test/java/org/apache/cocoon/stax/stress/test/EmitTransformerTest.java?rev=770137&r1=770136&r2=770137&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-stax/src/test/java/org/apache/cocoon/stax/stress/test/EmitTransformerTest.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-stax/src/test/java/org/apache/cocoon/stax/stress/test/EmitTransformerTest.java
Thu Apr 30 09:54:06 2009
@@ -16,7 +16,8 @@
  */
 package org.apache.cocoon.stax.stress.test;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
@@ -71,10 +72,10 @@
             public XMLEvent nextEvent() throws XMLStreamException {
                 if (this.startEmitted) {
                     return this.eventFactory.createEndElement("", "", "parent");
-                } else {
-                    this.startEmitted = true;
-                    return this.eventFactory.createStartElement("", "", "parent");
                 }
+                
+                this.startEmitted = true;
+                return this.eventFactory.createStartElement("", "", "parent");
             }
 
             public XMLEvent peek() throws XMLStreamException {



Mime
View raw message