commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r743418 - in /commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml: ProxyContentHandler.java SerializingContentHandler.java
Date Wed, 11 Feb 2009 17:33:43 GMT
Author: jukka
Date: Wed Feb 11 17:33:42 2009
New Revision: 743418

URL: http://svn.apache.org/viewvc?rev=743418&view=rev
Log:
xml: Use the @Override annotation

Modified:
    commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/ProxyContentHandler.java
    commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/SerializingContentHandler.java

Modified: commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/ProxyContentHandler.java
URL: http://svn.apache.org/viewvc/commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/ProxyContentHandler.java?rev=743418&r1=743417&r2=743418&view=diff
==============================================================================
--- commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/ProxyContentHandler.java
(original)
+++ commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/ProxyContentHandler.java
Wed Feb 11 17:33:42 2009
@@ -60,6 +60,7 @@
      * @param length passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void characters(char[] ch, int start, int length)
             throws SAXException {
         handler.characters(ch, start, length);
@@ -70,6 +71,7 @@
      *
      * @throws SAXException if an error occurs
      */
+    @Override
     public void endDocument() throws SAXException {
         handler.endDocument();
     }
@@ -82,6 +84,7 @@
      * @param qName passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void endElement(
             String namespaceURI, String localName, String qName)
             throws SAXException {
@@ -94,6 +97,7 @@
      * @param prefix passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void endPrefixMapping(String prefix) throws SAXException {
         handler.endPrefixMapping(prefix);
     }
@@ -106,6 +110,7 @@
      * @param length passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void ignorableWhitespace(char[] ch, int start, int length)
             throws SAXException {
         handler.ignorableWhitespace(ch, start, length);
@@ -118,6 +123,7 @@
      * @param data passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void processingInstruction(String target, String data)
             throws SAXException {
         handler.processingInstruction(target, data);
@@ -128,6 +134,7 @@
      *
      * @param locator passed through
      */
+    @Override
     public void setDocumentLocator(Locator locator) {
         handler.setDocumentLocator(locator);
     }
@@ -138,6 +145,7 @@
      * @param name passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void skippedEntity(String name) throws SAXException {
         handler.skippedEntity(name);
     }
@@ -147,6 +155,7 @@
      *
      * @throws SAXException if an error occurs
      */
+    @Override
     public void startDocument() throws SAXException {
         handler.startDocument();
     }
@@ -160,6 +169,7 @@
      * @param atts passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void startElement(
             String namespaceURI, String localName, String qName,
             Attributes atts) throws SAXException {
@@ -173,6 +183,7 @@
      * @param uri passed through
      * @throws SAXException if an error occurs
      */
+    @Override
     public void startPrefixMapping(String prefix, String uri)
             throws SAXException {
         handler.startPrefixMapping(prefix, uri);

Modified: commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/SerializingContentHandler.java
URL: http://svn.apache.org/viewvc/commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/SerializingContentHandler.java?rev=743418&r1=743417&r2=743418&view=diff
==============================================================================
--- commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/SerializingContentHandler.java
(original)
+++ commons/sandbox/xml/trunk/src/main/java/org/apache/commons/xml/SerializingContentHandler.java
Wed Feb 11 17:33:42 2009
@@ -212,6 +212,7 @@
         super(handler);
     }
 
+    @Override
     public void startDocument() throws SAXException {
         // Cleanup
         this.uriToPrefixMap.clear();
@@ -224,6 +225,7 @@
      * Track mappings to be able to add <code>xmlns:</code> attributes
      * in <code>startElement()</code>.
      */
+    @Override
     public void startPrefixMapping(String prefix, String uri) throws SAXException {
         // Store the mappings to reconstitute xmlns:attributes
         // except prefixes starting with "xml": these are reserved
@@ -296,6 +298,7 @@
      * (at least in version 2.0.1) : <code>org.apache.xalan.serialize.SerializerToXML</code>
      * ignores <code>start/endPrefixMapping()</code>.
      */
+    @Override
     public void startElement(
             String eltUri, String eltLocalName, String eltQName, Attributes attrs)
             throws SAXException {
@@ -375,6 +378,7 @@
      * Receive notification of the end of an element.
      * Try to restore the element qName.
      */
+    @Override
     public void endElement(String eltUri, String eltLocalName, String eltQName) throws SAXException
{
         // try to restore the qName. The map already contains the colon
         if (null != eltUri && eltUri.length() != 0 && this.uriToPrefixMap.containsKey(eltUri))
{
@@ -397,6 +401,7 @@
      * End the scope of a prefix-URI mapping:
      * remove entry from mapping tables.
      */
+    @Override
     public void endPrefixMapping(String prefix) throws SAXException {
         // remove mappings for xalan-bug-workaround.
         // Unfortunately, we're not passed the uri, but the prefix here,
@@ -423,6 +428,7 @@
         super.endPrefixMapping(prefix);
     }
 
+    @Override
     public void endDocument() throws SAXException {
         // Cleanup
         this.uriToPrefixMap.clear();



Mime
View raw message