commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r826421 - in /commons/proper/lang/trunk/src: java/org/apache/commons/lang/text/translate/ test/org/apache/commons/lang/exception/
Date Sun, 18 Oct 2009 12:21:32 GMT
Author: sebb
Date: Sun Oct 18 12:21:31 2009
New Revision: 826421

URL: http://svn.apache.org/viewvc?rev=826421&view=rev
Log:
Add missing @Override markers

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/AggregateTranslator.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/CodePointTranslator.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/LookupTranslator.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityEscaper.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityUnescaper.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnescapeUtils.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/DefaultExceptionContextTest.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/AggregateTranslator.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/AggregateTranslator.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/AggregateTranslator.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/AggregateTranslator.java
Sun Oct 18 12:21:31 2009
@@ -42,6 +42,7 @@
      * Execution stops with the number of consumed codepoints being returned. 
      * {@inheritDoc}
      */
+    @Override
     public int translate(CharSequence input, int index, Writer out) throws IOException {
         for (CharSequenceTranslator translator : translators) {
             int consumed = translator.translate(input, index, out);

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/CodePointTranslator.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/CodePointTranslator.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/CodePointTranslator.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/CodePointTranslator.java
Sun Oct 18 12:21:31 2009
@@ -30,6 +30,7 @@
      * Implementation of translate that maps onto the abstract translate(int, Writer) method.

      * {@inheritDoc}
      */
+    @Override
     public final int translate(CharSequence input, int index, Writer out) throws IOException
{
         int codepoint = Character.codePointAt(input, index);
         boolean consumed = translate(codepoint, out);

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java
Sun Oct 18 12:21:31 2009
@@ -112,6 +112,7 @@
         private static final char[] CSV_SEARCH_CHARS = new char[] {CSV_DELIMITER, CSV_QUOTE,
CharUtils.CR, CharUtils.LF};
 
         // TODO: Replace with a RegexTranslator. That should consume the number of characters
the regex uses up?
+        @Override
         public int translate(CharSequence input, int index, Writer out) throws IOException
{
 
             if(index != 0) {

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/LookupTranslator.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/LookupTranslator.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/LookupTranslator.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/LookupTranslator.java
Sun Oct 18 12:21:31 2009
@@ -53,6 +53,7 @@
     /**
      * {@inheritDoc}
      */
+    @Override
     public int translate(CharSequence input, int index, Writer out) throws IOException {
         int max = longest;
         if(index + longest > input.length()) {

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityEscaper.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityEscaper.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityEscaper.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityEscaper.java
Sun Oct 18 12:21:31 2009
@@ -55,6 +55,7 @@
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean translate(int codepoint, Writer out) throws IOException {
         if(between) {
             if (codepoint < below || codepoint > above) {

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityUnescaper.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityUnescaper.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityUnescaper.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/NumericEntityUnescaper.java
Sun Oct 18 12:21:31 2009
@@ -29,6 +29,7 @@
     /**
      * {@inheritDoc}
      */
+    @Override
     public int translate(CharSequence input, int index, Writer out) throws IOException {
         // TODO: Protect from ArrayIndexOutOfBounds
         if(input.charAt(index) == '&' && input.charAt(index + 1) == '#') {

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnescapeUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnescapeUtils.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnescapeUtils.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnescapeUtils.java
Sun Oct 18 12:21:31 2009
@@ -101,6 +101,7 @@
         private static final char[] CSV_SEARCH_CHARS = new char[] {CSV_DELIMITER, CSV_QUOTE,
CharUtils.CR, CharUtils.LF};
 
         // TODO: Replace with a RegexTranslator. That should consume the number of characters
the regex uses up?
+        @Override
         public int translate(CharSequence input, int index, Writer out) throws IOException
{
 
             if(index != 0) {

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeEscaper.java
Sun Oct 18 12:21:31 2009
@@ -55,6 +55,7 @@
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean translate(int codepoint, Writer out) throws IOException {
         if(between) {
             if (codepoint < below || codepoint > above) {

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
Sun Oct 18 12:21:31 2009
@@ -39,6 +39,7 @@
      * {@inheritDoc}
      */
     // TODO: Handle \\u+0045 variant
+    @Override
     public int translate(CharSequence input, int index, Writer out) throws IOException {
         if(input.charAt(index) == '\\') {
             if( (index + 1 < input.length()) && input.charAt(index + 1) == 'u')
{

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/DefaultExceptionContextTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/DefaultExceptionContextTest.java?rev=826421&r1=826420&r2=826421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/DefaultExceptionContextTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/DefaultExceptionContextTest.java
Sun Oct 18 12:21:31 2009
@@ -35,6 +35,7 @@
         super(name);
     }
     
+    @Override
     public void setUp() {
         defaultExceptionContext = new DefaultExceptionContext()
         .addLabeledValue("test1", null)



Mime
View raw message