CElliott316 opened a new issue, #5544:
URL: https://github.com/apache/netbeans/issues/5544
### Apache NetBeans version
Apache NetBeans 16
### What happened
The subroutine signature 'private static final returnType XXX()' evokes the
warning 'private method XXXX is declared final'. In an article published years
ago, the reader was told that declaring a procedure final enabled the compiler
to apply some optimizations that it could not OW make. As far as I recall,
there was no restriction on what methods could be made final.
### How to reproduce
public final class SR {
public static void main(String[] args) {
sayHello();
}
private static final sayHello(){ // Putting the cursor on the underline
evokes the warning
System.out.println("Hello");
}
}
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Microsoft Windows [Version 6.3.9600] = Windows 8.1, Pro, 64-bit
### JDK
Jdk-17.0.2, Wndows, X86
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists