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: Roman Kennke
Subject: Re: [cp-patches] javax.swing.undo cleanup
Date: Wed, 19 Oct 2005 21:21:00 +0200

Hi,

> > > > -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. ;-)

Well, I did, but obviously not good enough.

> >From the hacking guide (hacking.texinfo):
> 
> Wrap always before extends, implements, throws, and labels.

I havent found this statement, so yeah you are right.
 
> > > >    /**
> > > >     * 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.

Ok.

/Roman

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

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