-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Enums in JVM #2842
base: main
Are you sure you want to change the base?
feat: Enums in JVM #2842
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for the logging changes.
@@ -4,6 +4,9 @@ | |||
import java.util.ArrayList; | |||
import java.util.List; | |||
|
|||
import org.slf4j.Logger; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the jboss logger used by Quarkus (slf4j still works, but it delegates to JBoss logging under the hood).
|
||
public class EnumProcessor { | ||
|
||
private static final Logger log = LoggerFactory.getLogger(EnumProcessor.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
@@ -26,6 +29,7 @@ public abstract class JVMCodeGenerator implements CodeGenProvider { | |||
|
|||
public static final String PACKAGE_PREFIX = "ftl."; | |||
public static final String TYPE_MAPPER = "TypeAliasMapper"; | |||
private static final Logger log = LoggerFactory.getLogger(JVMCodeGenerator.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slf4j
|
||
public class ModuleProcessor { | ||
|
||
private static final Logger log = Logger.getLogger(ModuleProcessor.class); | ||
private static final Logger log = LoggerFactory.getLogger(ModuleProcessor.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
|
||
@Enum | ||
public interface Animal { | ||
@JsonIgnore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can eventually remove the need for these annotations.
For #2514
Tasks: