-
Notifications
You must be signed in to change notification settings - Fork 20
serializer code cleanup #68
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
Conversation
orangishcat
commented
Feb 5, 2025
- Generalized the boolean case to return default object if true, and null otherwise
- Code cleanup (removed unused imports, fixed warnings)
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Class<?> c = o.getClass(); | ||
A ann = null; | ||
while (c != null && (ann = c.getAnnotation(a)) == null) | ||
c = c.getSuperclass(); |
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 think this is worse for readability.
@@ -520,7 +519,6 @@ public static void initScript() | |||
Drawing.initialize(); | |||
Panel.initialize(); | |||
Game.exitToTitle(); | |||
Compatibility.init(); |
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.
Necessary, see later comments.
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 couldn't find the later comment... is there anything wrong with a static initializer?
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Ok, from my end this is merge ready. I would definitely like to be involved in the merge, because I would like to do a manual merge of this. |
ghostlypi has made his own pull request, so i will be closing this |