-
Notifications
You must be signed in to change notification settings - Fork 874
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
Removed redundant static modifier for interface #5214
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.
Hi @tbw777 ,
Thanks for your PR. Can you elaborate on the benefit of this PR to the NetBeans project?
Thanks!
No needed to use static modifiers
Rebased to master and updated with changes from #5215 |
The project will take up |
how much disk space does this save? |
@mbien |
Hi @tbw777 , The fact is that the Java compiler ignores "static" in inner interfaces and enums. The bytecode is exactly the same. You can test this yourself compiling these simple classes: package a.b.c;
public class A {
public static interface AA {}
public static enum AAA {}
} and package a.b.c;
public class B {
public interface BB {}
public enum BBB {}
} If you compile these classes with This does not affect performance, either. Since the generated bytecode is exactly the same the performance will be the same. The fact is that this PR makes no difference to NetBeans. There will be no difference in performance, network consumption, etc. We may approve it, since it does some cleaning of the source code, but I will have to review those 729 files, one by one, that you have changed, to make sure all your changes are correct. This is going to take some time to me, because I don't work for this. Maybe one week or two. During these two weeks I won't be able to do anything else, I'm afraid. Maybe next time you send a PR you can ask in the mailing list if the PR is worth the effort reviewing, because we would prefer adding new features to NetBeans instead of reviewing PRs that make no difference in performance. What say? |
i mean source code of course )) Ok |
@vieiro I would like to close this one. I don't see the point of this. I hope you haven't started reviewing yet :) |
@mbien +1 in closing: can't see any advantage in the PR. Compiling >500k LOC because of this is a waste of resources. |
No needed to use static modifier for interfaces