handle enums in Java 5.0
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
213f2217de
commit
9d5d7dfb43
@ -25,7 +25,7 @@ import java.io.*;
|
||||
* determine package, class, and imports
|
||||
*
|
||||
* @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
|
||||
* @version $Id: JavaFileImpl.java,v 1.5 2004/08/23 13:12:44 evenisse Exp $
|
||||
* @version $Id: JavaFileImpl.java,v 1.6 2004/10/23 12:01:16 brett Exp $
|
||||
*/
|
||||
public class JavaFileImpl extends JavaFile
|
||||
{
|
||||
@ -107,7 +107,8 @@ public class JavaFileImpl extends JavaFile
|
||||
//valid so just break out of the while loop at this point.
|
||||
//set the imports
|
||||
if (stok.sval.equals("class") ||
|
||||
stok.sval.equals("interface"))
|
||||
stok.sval.equals("interface") ||
|
||||
stok.sval.equals("enum"))
|
||||
{
|
||||
stok.nextToken();
|
||||
this.setClassType(new ClassType(stok.sval));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user