xml-commons-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r670273 - in /xml/commons/trunk/java/external/src/javax/xml/stream/util: EventReaderDelegate.java StreamReaderDelegate.java
Date Sat, 21 Jun 2008 23:31:31 GMT
Author: mrglavas
Date: Sat Jun 21 16:31:31 2008
New Revision: 670273

URL: http://svn.apache.org/viewvc?rev=670273&view=rev
Log:
Making a field private and adding a few comments.

Modified:
    xml/commons/trunk/java/external/src/javax/xml/stream/util/EventReaderDelegate.java
    xml/commons/trunk/java/external/src/javax/xml/stream/util/StreamReaderDelegate.java

Modified: xml/commons/trunk/java/external/src/javax/xml/stream/util/EventReaderDelegate.java
URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/stream/util/EventReaderDelegate.java?rev=670273&r1=670272&r2=670273&view=diff
==============================================================================
--- xml/commons/trunk/java/external/src/javax/xml/stream/util/EventReaderDelegate.java (original)
+++ xml/commons/trunk/java/external/src/javax/xml/stream/util/EventReaderDelegate.java Sat
Jun 21 16:31:31 2008
@@ -24,14 +24,26 @@
 import javax.xml.stream.events.XMLEvent;
 
 public class EventReaderDelegate implements XMLEventReader {
+    
     private XMLEventReader reader;
 
-    public EventReaderDelegate() {
-    }
+    public EventReaderDelegate() {}
 
     public EventReaderDelegate(XMLEventReader reader) {
         this.reader = reader;
     }
+    
+    public void setParent(XMLEventReader reader) {
+        this.reader = reader;
+    }
+    
+    public XMLEventReader getParent() {
+        return reader;
+    }
+    
+    /*
+     * XMLEventReader methods
+     */
 
     public void close() throws XMLStreamException {
         reader.close();
@@ -41,11 +53,7 @@
         return reader.getElementText();
     }
 
-    public XMLEventReader getParent() {
-        return reader;
-    }
-
-    public Object getProperty(java.lang.String name)
+    public Object getProperty(String name)
     throws IllegalArgumentException {
         return reader.getProperty(name);
     }
@@ -73,8 +81,4 @@
     public void remove() {
         reader.remove();
     }
-
-    public void setParent(XMLEventReader reader) {
-        this.reader = reader;
-    }
 }
\ No newline at end of file

Modified: xml/commons/trunk/java/external/src/javax/xml/stream/util/StreamReaderDelegate.java
URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/stream/util/StreamReaderDelegate.java?rev=670273&r1=670272&r2=670273&view=diff
==============================================================================
--- xml/commons/trunk/java/external/src/javax/xml/stream/util/StreamReaderDelegate.java (original)
+++ xml/commons/trunk/java/external/src/javax/xml/stream/util/StreamReaderDelegate.java Sat
Jun 21 16:31:31 2008
@@ -26,10 +26,10 @@
 import javax.xml.stream.XMLStreamReader;
 
 public class StreamReaderDelegate implements XMLStreamReader {
-    XMLStreamReader reader;
+    
+    private XMLStreamReader reader;
 
-    public StreamReaderDelegate() {
-    }
+    public StreamReaderDelegate() {}
 
     public StreamReaderDelegate(XMLStreamReader reader) {
         this.reader = reader;
@@ -42,6 +42,10 @@
     public XMLStreamReader getParent() {
         return reader;
     }
+    
+    /*
+     * XMLStreamReader methods
+     */
 
     public int next() throws XMLStreamException {
         return reader.next();



Mime
View raw message