This is the mail archive of the java-patches@gcc.gnu.org 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]
Other format: [Raw text]

Re: ClassLoader.getSystemResources


Mark Wielaard wrote:

Hi,

On Wed, 2002-08-07 at 07:27, Bryce McKinlay wrote:

+ return Collections.enumeration(Collections.EMPTY_LIST);

Note that we have the gnu.java.util.EmptyEnumeration class which
prevents creating a new object.

Yes I deliberately didn't use that. This method should generally never get called. Unless there is something that is really performance critical I'd prefer to use standard collections classes.

regards

Bryce.




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