nmatt opened a new issue, #8986:
URL: https://github.com/apache/netbeans/issues/8986

   ### Description
   
   Unlike constructors of regular classes, the "mark occurrences" mechanism 
doesn't mark usages of enum constructors. Example:
   
   ```java
   class Example
   {
       @SuppressWarnings("unused")
       static class Class
       {
           static final Class A = new Class();
           static final Class B = new Class();
           static final Class C = new Class();
           
           Class() { }
       }
       
       enum Enum
       {    
           A(),
           B(),
           C();
       
           Enum() { }
       }
   }
   ```
   Place the cursor on the `Class()` constructor => The three `new Class()` 
invokations are highlighted and shown in the right-hand editor sidebar.
   Place the cursor on the `Enum()` constructor => The three invocations from 
the enum constants are not highlighted.
   
   ### Use case/motivation
   
   In large enum classes, where the enum constants have implementations that 
may span many lines, an/or where the constants may have extensive Javadoc 
comments, highlighting the constants (which effectively are constructor 
invocations) would be useful.
   
   ### Related issues
   
   #8985 
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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

Reply via email to