This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: RoundRectangle2D


Bryce McKinlay wrote:

> > Thia makes sense to me.  Thanks.  I agree that we should just use the
> > fields directly.  In some cases, though, this will mean moving methods
> > into subclasses (eg Rectangle2D doesn't have any fields -- they are
> > always in subclasses).
>
> Oh, you're right, I forgot that Rectangle2D is abstract. I really meant
> for classes like Rectangle2D.Double where we currently have:
>
>     public void setRect (Rectangle2D r)
>     {
>       this.x = r.getX ();
>       this.y = r.getY ();

Double duh. You know what I really really mean ;-)

regards

  [ bryce ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]