commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <>
Subject Re: StringUtils constructor is private
Date Mon, 12 Aug 2002 21:24:26 GMT
"Geir Magnusson Jr." <> writes:

> On the other hand, its a general thing :  I think that for general utility
> classes that can be instantiated with an argless constructor, having it
> public makes it easy for any 'tool using' code that want to instantiate
> dynamically

Which is why I would prefer a protected to public ctor -- the use case
for instantiation is still open with minimal work on the user's part,
but it is not directly encouraged by the API.

Daniel Rall <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message