ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.kitt.rei...@gmail.com>
Subject Re: svn commit: r1373836 - /ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java
Date Thu, 16 Aug 2012 14:51:57 GMT
java 6 allows @Override in this case, but java 5 does not.

On Thu, Aug 16, 2012 at 2:53 PM,  <jglick@apache.org> wrote:
> Author: jglick
> Date: Thu Aug 16 13:53:07 2012
> New Revision: 1373836
>
> URL: http://svn.apache.org/viewvc?rev=1373836&view=rev
> Log:
> JDK 5 javac is apparently buggy; @Override should be allowed on methods implemented from
an interface.
>
> Modified:
>     ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java
>
> Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java
> URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java?rev=1373836&r1=1373835&r2=1373836&view=diff
> ==============================================================================
> --- ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java (original)
> +++ ant/core/trunk/src/main/org/apache/tools/ant/util/DeweyDecimal.java Thu Aug 16 13:53:07
2012
> @@ -207,7 +207,7 @@ public class DeweyDecimal implements Com
>          return sb.toString();
>      }
>
> -    @Override public int compareTo(DeweyDecimal other) {
> +    public int compareTo(DeweyDecimal other) {
>          final int max = Math.max(other.components.length, components.length);
>          for (int i = 0; i < max; i++) {
>              final int component1 = (i < components.length) ? components[ i ] : 0;
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message