jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: enum
Date Tue, 23 Aug 2005 14:53:48 GMT
Hi Walter,

thanks for this info, I wasn't aware of that...

I have just changed it to a different name.

regards
  marcel

Walter Raboch wrote:
> Hi all,
> 
> please don't use "enum" as variable name any more. It has become a 
> keyword in java 1.5. For sustainability reasons we should care about it.
> 
> Thanks in advance,
> 
> cheers
> Walter
> -- 
> 
> D:\work\eclipse\jackrabbit\core\src\java\org\apache\jackrabbit\core\query\lucene\WildcardQuery.java:315:

> warning: as of release 1.5, 'enum' is a keyword, and may not be used as 
> an identifier
> (try -source 1.5 to use 'enum' as a keyword)
>             TermEnum enum = new WildcardTermEnum(reader, field, 
> propName, pattern);
>                      ^
> D:\work\eclipse\jackrabbit\core\src\java\org\apache\jackrabbit\core\query\lucene\WildcardQuery.java:320:

> warning: as of release 1.5, 'enum' is a keyword, and may not be used as 
> an identifier
> (try -source 1.5 to use 'enum' as a keyword)
>                     while (enum.term() != null) {
>                            ^
> D:\work\eclipse\jackrabbit\core\src\java\org\apache\jackrabbit\core\query\lucene\WildcardQuery.java:321:

> warning: as of release 1.5, 'enum' is a keyword, and may not be used as 
> an identifier
> (try -source 1.5 to use 'enum' as a keyword)
>                         docs.seek(enum);
>                                   ^
> D:\work\eclipse\jackrabbit\core\src\java\org\apache\jackrabbit\core\query\lucene\WildcardQuery.java:325:

> warning: as of release 1.5, 'enum' is a keyword, and may not be used as 
> an identifier
> (try -source 1.5 to use 'enum' as a keyword)
>                         if (!enum.next()) {
>                              ^
> D:\work\eclipse\jackrabbit\core\src\java\org\apache\jackrabbit\core\query\lucene\WildcardQuery.java:333:

> warning: as of release 1.5, 'enum' is a keyword, and may not be used as 
> an identifier
> (try -source 1.5 to use 'enum' as a keyword)
>                 enum.close();
>                 ^
> 5 warnings

Mime
View raw message