You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2014/04/06 12:43:48 UTC

svn commit: r1585282 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java

Author: britter
Date: Sun Apr  6 10:43:47 2014
New Revision: 1585282

URL: http://svn.apache.org/r1585282
Log:
No need to repeat JavaDoc of hashCode method

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java?rev=1585282&r1=1585281&r2=1585282&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java Sun Apr  6 10:43:47 2014
@@ -284,9 +284,7 @@ public class ExtendedMessageFormat exten
     }
 
     /**
-     * Return the hashcode.
-     *
-     * @return the hashcode
+     * {@inheritDoc}
      */
     @SuppressWarnings( "deprecation" ) // ObjectUtils.hashCode(Object) has been deprecated in 3.2
     @Override



Re: svn commit: r1585282 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java

Posted by sebb <se...@gmail.com>.
On 7 April 2014 19:59, Benedikt Ritter <br...@apache.org> wrote:
> Thanks for pointing this out. I'm not 100% sure but I think removing the
> comment all together will cause a check style error (or find bugs? don't
> know). So you would have to suppress that one an document why. Seems easier
> to just use the inheritDoc...

If CheckStyle does not handle inherited Javadocs correctly then it
ought to be reported as a bug.

Findbugs operates on compiled code only so does not care about Javadoc.

>
> 2014-04-06 23:40 GMT+02:00 sebb <se...@gmail.com>:
>
>> On 6 April 2014 11:43,  <br...@apache.org> wrote:
>> > Author: britter
>> > Date: Sun Apr  6 10:43:47 2014
>> > New Revision: 1585282
>> >
>> > URL: http://svn.apache.org/r1585282
>> > Log:
>> > No need to repeat JavaDoc of hashCode method
>> >
>> > Modified:
>> >
>> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
>> >
>> > Modified:
>> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
>> > URL:
>> http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java?rev=1585282&r1=1585281&r2=1585282&view=diff
>> >
>> ==============================================================================
>> > ---
>> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
>> (original)
>> > +++
>> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
>> Sun Apr  6 10:43:47 2014
>> > @@ -284,9 +284,7 @@ public class ExtendedMessageFormat exten
>> >      }
>> >
>> >      /**
>> > -     * Return the hashcode.
>> > -     *
>> > -     * @return the hashcode
>> > +     * {@inheritDoc}
>> >       */
>>
>> AFAIK there's no need to use @inheritdoc on its own.
>> AIUI the point of @inheritdoc is to import the parent doc and
>> supplement it locally.
>>
>> If there is nothing to add, then one can leave out the Javadoc block
>> entirely.
>>
>> >      @SuppressWarnings( "deprecation" ) // ObjectUtils.hashCode(Object)
>> has been deprecated in 3.2
>> >      @Override
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
>
> --
> http://people.apache.org/~britter/
> http://www.systemoutprintln.de/
> http://twitter.com/BenediktRitter
> http://github.com/britter

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


Re: svn commit: r1585282 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java

Posted by Benedikt Ritter <br...@apache.org>.
Thanks for pointing this out. I'm not 100% sure but I think removing the
comment all together will cause a check style error (or find bugs? don't
know). So you would have to suppress that one an document why. Seems easier
to just use the inheritDoc...


2014-04-06 23:40 GMT+02:00 sebb <se...@gmail.com>:

> On 6 April 2014 11:43,  <br...@apache.org> wrote:
> > Author: britter
> > Date: Sun Apr  6 10:43:47 2014
> > New Revision: 1585282
> >
> > URL: http://svn.apache.org/r1585282
> > Log:
> > No need to repeat JavaDoc of hashCode method
> >
> > Modified:
> >
> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
> >
> > Modified:
> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
> > URL:
> http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java?rev=1585282&r1=1585281&r2=1585282&view=diff
> >
> ==============================================================================
> > ---
> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
> (original)
> > +++
> commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
> Sun Apr  6 10:43:47 2014
> > @@ -284,9 +284,7 @@ public class ExtendedMessageFormat exten
> >      }
> >
> >      /**
> > -     * Return the hashcode.
> > -     *
> > -     * @return the hashcode
> > +     * {@inheritDoc}
> >       */
>
> AFAIK there's no need to use @inheritdoc on its own.
> AIUI the point of @inheritdoc is to import the parent doc and
> supplement it locally.
>
> If there is nothing to add, then one can leave out the Javadoc block
> entirely.
>
> >      @SuppressWarnings( "deprecation" ) // ObjectUtils.hashCode(Object)
> has been deprecated in 3.2
> >      @Override
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Re: svn commit: r1585282 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java

Posted by sebb <se...@gmail.com>.
On 6 April 2014 11:43,  <br...@apache.org> wrote:
> Author: britter
> Date: Sun Apr  6 10:43:47 2014
> New Revision: 1585282
>
> URL: http://svn.apache.org/r1585282
> Log:
> No need to repeat JavaDoc of hashCode method
>
> Modified:
>     commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
>
> Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
> URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java?rev=1585282&r1=1585281&r2=1585282&view=diff
> ==============================================================================
> --- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java (original)
> +++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java Sun Apr  6 10:43:47 2014
> @@ -284,9 +284,7 @@ public class ExtendedMessageFormat exten
>      }
>
>      /**
> -     * Return the hashcode.
> -     *
> -     * @return the hashcode
> +     * {@inheritDoc}
>       */

AFAIK there's no need to use @inheritdoc on its own.
AIUI the point of @inheritdoc is to import the parent doc and
supplement it locally.

If there is nothing to add, then one can leave out the Javadoc block entirely.

>      @SuppressWarnings( "deprecation" ) // ObjectUtils.hashCode(Object) has been deprecated in 3.2
>      @Override
>
>

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