BradWalker opened a new pull request #1872: [NETBEANS-3695] - not proper to use 
a static variable through a refer…
URL: https://github.com/apache/netbeans/pull/1872
 
 
   …ence
   
   It's really not proper to use a static variable through a reference because 
they can't be derived. The proper thing to do is use them with a Class name..
   
      [repeat] 
/home/bwalker/src/netbeans/java/java.hints.ui/src/org/netbeans/modules/java/hints/spiimpl/refactoring/ConfigurationsComboModel.java:175:
 warning: [static] static variable should be qualified by type name, KeyEvent, 
instead of by an expression
      [repeat]             if (ke.getKeyCode() == ke.VK_ENTER || 
ke.getKeyCode() == ke.VK_ESCAPE) {
      [repeat]                                      ^
      [repeat] 
/home/bwalker/src/netbeans/java/java.hints.ui/src/org/netbeans/modules/java/hints/spiimpl/refactoring/ConfigurationsComboModel.java:175:
 warning: [static] static variable should be qualified by type name, KeyEvent, 
instead of by an expression
      [repeat]             if (ke.getKeyCode() == ke.VK_ENTER || 
ke.getKeyCode() == ke.VK_ESCAPE) {
      [repeat]
   
   This change fixes that..

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to