From 5d802fb8dd4004039d4597253712d24fffb90a36 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sat, 31 May 2014 15:08:41 -0700 Subject: gluegen: update HeaderParser grammar to annotation EnumType map and functions list Signed-off-by: Harvey Harrison --- src/java/com/jogamp/gluegen/GlueGen.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/java/com/jogamp/gluegen/GlueGen.java') diff --git a/src/java/com/jogamp/gluegen/GlueGen.java b/src/java/com/jogamp/gluegen/GlueGen.java index 54e510d..891878b 100644 --- a/src/java/com/jogamp/gluegen/GlueGen.java +++ b/src/java/com/jogamp/gluegen/GlueGen.java @@ -190,8 +190,7 @@ public class GlueGen implements GlueEmitterControls { // Repackage the enum and #define statements from the parser into a common format // so that SymbolFilters can operate upon both identically constants = new ArrayList(); - for (Object elem : headerParser.getEnums()) { - EnumType enumeration = (EnumType) elem; + for (EnumType enumeration : headerParser.getEnums()) { String enumName = enumeration.getName(); if (enumName.equals("")) { enumName = null; -- cgit v1.2.3