classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] javax.swing.undo cleanup


From: Michael Koch
Subject: Re: [cp-patches] javax.swing.undo cleanup
Date: Wed, 19 Oct 2005 21:15:03 +0200
User-agent: Mutt/1.5.9i

On Wed, Oct 19, 2005 at 08:46:16PM +0200, Roman Kennke wrote:
> Hi Micheal,
> 
> > > -public class CannotRedoException
> > > -  extends RuntimeException
> > > +public class CannotRedoException extends RuntimeException
> > >  {
> > 
> > The old version is according to our formatting rules. The new version is
> > not.
> 
> Well, last time I asked about that on IRC I was told (by tromey AFAIR)
> that the new version is correct.

Don't ask on IRC, read the documentation. ;-)

>From the hacking guide (hacking.texinfo):

Wrap always before extends, implements, throws, and labels.
 
> > >    /**
> > >     * Constructs a new instance of a <code>CannotRedoException</code>.
> > >     */
> > >    public CannotRedoException()
> > >    {
> > > +    super();
> > >    }
> > 
> > You know that this is implicit and not needed. We try to avoid implicit 
> > stuff.
> 
> Yeah, I had the choice between calling super() and adding a comment.
> Calling super() seemed more natural to me. If it's agreed that super();
> should be avoided, then I'll replace it with a comment instead.

I would prefer a comment here.


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]