bayard 2004/07/06 22:08:06
Modified:lang DEVELOPERS-GUIDE.html
Log:
added the view that we should not use boolean arguments to overload methods of
similar signature
Revision ChangesPath
1.8 +2 -1 jakarta-commons/lang/DEVELOPERS-GUIDE.html
Index
bayard 2003/08/06 20:14:27
Modified:lang DEVELOPERS-GUIDE.html
Log:
Reworded the comment on quiet methods returning Null patterns.
Revision ChangesPath
1.4 +2 -3 jakarta-commons/lang/DEVELOPERS-GUIDE.html
Index: DEVELOPERS-GUIDE.html
bayard 2003/08/13 17:08:14
Modified:lang DEVELOPERS-GUIDE.html
Log:
Added note on Language variant to use.
Revision ChangesPath
1.5 +4 -1 jakarta-commons/lang/DEVELOPERS-GUIDE.html
Index: DEVELOPERS-GUIDE.html
eptions. Null inputs
should either be handled without exception or an IllegalArgumentException
should be thrown instead
Phil
--- [EMAIL PROTECTED] wrote:
> bayard 2003/08/06 20:14:27
>
> Modified:lang DEVELOPERS-GUIDE.html
> Log:
> Reworded the comment on quiet me
> -Original Message-
> From: Phil Steitz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 4:11 PM
> To: Jakarta Commons Developers List
> Subject: Re: cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html
>
>
> It's hard to express exactly what
Chuck Daniels [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 5:37 PM
To: Jakarta Commons Developers List
Subject: RE: [lang] DEVELOPERS-GUIDE.html
Thanks for your kind reply, Stephen.
After reading the thread on [io][vote] FileUtils: decision on style, I can see where
the reasoning co
ant compromise due to inherent limitations of the
Java language?
Thanks again,
Chuck
> -Original Message-
> From: Stephen Colebourne [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 02, 2003 10:07 AM
> To: Jakarta Commons Developers List
> Subject: Re: [lang] DEVELOPERS-GUIDE.html
> more than save you an import statement.
>
> Cheers,
> Chuck
>
> > -Original Message-
> > From: Henri Yandell [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 31, 2003 9:58 AM
> > To: Jakarta Commons Developers List
> > Subject: RE: [lang]
ts?
I also agree with Arun that making a "utility" class non-final does little
more than save you an import statement.
Cheers,
Chuck
> -Original Message-
> From: Henri Yandell [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 9:58 AM
> To: Jakarta Commons
--- Henri Yandell <[EMAIL PROTECTED]> wrote:
>
> I've added:
>
> the class will not be final
> methods should generally be 'nice' and 'quiet'. That is, they
> should
> suppress Exceptions when sensible.
This sounds fairly dangerous. Methods should always throw appropriate
exceptions and never
I've added:
the class will not be final
methods should generally be 'nice' and 'quiet'. That is, they should
suppress Exceptions when sensible.
as rules for XxxUtils and also:
Exception throwing
When throwing an exception to indicate a bad argument, always throw
IllegalArgumentException, even
bayard 2003/07/30 16:58:36
Modified:lang DEVELOPERS-GUIDE.html
Log:
Added note that IllegalArgumentException should be thrown when a bad argument
of 'null' is passed in and not NullPointerException.
Also a note that XxxUtils classes should suppress Excep
bayard 2003/07/30 16:54:33
Modified:lang DEVELOPERS-GUIDE.html
Log:
Added note that XxxUtils classes are not to be final.
Revision ChangesPath
1.2 +2 -1 jakarta-commons/lang/DEVELOPERS-GUIDE.html
Index: DEVELOPERS-GUIDE.html
Sent: Wednesday, July 30, 2003 01:08
To: 'Jakarta Commons Developers List'
Subject: RE: [lang] DEVELOPERS-GUIDE.html
It's worth noting that of the 12 people* I have posed this question to only
one got it right.
Making the utility class final does prevent confusion (and viciously har
User...
*all with min 3 months java knowledge some considered themselves excellent
java developers
Matt
> -Original Message-
> From: Gary Gregory [mailto:[EMAIL PROTECTED]
> Sent: 29 July 2003 23:01
> To: 'Jakarta Commons Developers List'
> Subject: RE: [lang] DEVEL
>
> > > > class SuperC extends Object {
> > > > static String hi() {
> > > > return "I am Super";
> > > > }
> > > > }
> > > >
> > > > public class TestSuperStatic {
> > > >
> > > >
?
-AMT
-Original Message-
From: Stephen Colebourne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 2:07 PM
To: Jakarta Commons Developers List
Subject: Re: [lang] DEVELOPERS-GUIDE.html
Because I want to create a subclass of StringUtils.
Use case:
I curently have a string utility
ubC();
> > > SuperC c = b;
> > > System.out.println(a.hi() + ", " + a.getClass());
> > > System.out.println(b.hi() + ", " + b.getClass());
> > > System.out.println(c.hi() + ", " + c.getClass());
> > > }
> &g
SuperC c = b;
> > System.out.println(a.hi() + ", " + a.getClass());
> > System.out.println(b.hi() + ", " + b.getClass());
> > System.out.println(c.hi() + ", " + c.getClass());
> > }
> >
> >
ystem.out.println(c.hi() + ", " + c.getClass());
> }
>
> }
>
> Can you guess what gets printed out? :-)
>
> (and no cheating by running the code!)
>
> Gary
>
> -Original Message-
> From: Stephen Colebourne [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, Ju
PROTECTED]
Sent: Tuesday, July 29, 2003 14:30
To: Jakarta Commons Developers List
Subject: Re: [lang] DEVELOPERS-GUIDE.html
In this use case, everybody uses UString, so you can effectively override.
If you code the same method in the 'subclass', and refer to it using the
subclass cl
get lots of extra methods for free)
> But I can only do that if StringUtils is not final.
>
> Stephen
>
>
> - Original Message -
> From: "Henri Yandell" <[EMAIL PROTECTED]>
> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
&g
ls is not final.
Stephen
- Original Message -
From: "Henri Yandell" <[EMAIL PROTECTED]>
To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 7:46 PM
Subject: Re: [lang] DEVELOPERS-GUIDE.html
>
> Question just came up
ephen
- Original Message -
From: "Henri Yandell" <[EMAIL PROTECTED]>
To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 7:46 PM
Subject: Re: [lang] DEVELOPERS-GUIDE.html
>
> Question just came up on [io].
>
> W
Plus1
Stephen
> from:Henri Yandell <[EMAIL PROTECTED]>
> date:Tue, 29 Jul 2003 14:00:23
> to: [EMAIL PROTECTED]
> subject: Re: [lang] DEVELOPERS-GUIDE.html
>
>
> Just noticed that DEVELOPERS-GUIDE.html doesn't mention whether our
> XxxUtil
Just noticed that DEVELOPERS-GUIDE.html doesn't mention whether our
XxxUtils class should be final or not. I'm pretty sure we ended up making
them not final. Anyone object to this before I add a line to the guide?
Hen
-
To unsu
26 matches
Mail list logo