jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter Raboch <wrab...@ingen.at>
Subject enum
Date Tue, 23 Aug 2005 14:23:20 GMT
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
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message