diff --git a/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg b/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg index 4685cf604d3c5e4dd89331b5ce5d26f7c807a799..690cd64939710f55fc74aea87fe1ad09f484d7fc 100644 --- a/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg +++ b/src/main/resources/de/hhu/stups/codegenerator/JavaTemplate.stg @@ -681,15 +681,15 @@ public static final class <name>Constructor implements BObject { private <name>Constructor() { } - public static <name>Destructor inverse() { + public <name>Destructor inverse() { return <name>Destructor.INSTANCE; } - public static <name> functionCall(<subtype> value) { + public <name> functionCall(<subtype> value) { return new <name>(value); } - public static BBoolean isInRange(<freetype> o) { + public BBoolean isInRange(<freetype> o) { return new BBoolean(o instanceof <name>); } @@ -724,7 +724,7 @@ public static final class <name>Destructor implements BObject { private <name>Destructor() { } - public static <subtype> functionCall(<freetype> value) { + public <subtype> functionCall(<freetype> value) { return ((<name>) value).getValue(); }