mbien opened a new pull request, #6658:
URL: https://github.com/apache/netbeans/pull/6658

   Default methods don't qualify for functional interfaces since they are not 
abstract and can therefore not be converted into lambdas.
   
   The hint has to go through the interface hierarchy and check if the 
implemented method was a `default` method.
   
   example:
       
   ```java
       private interface NotFunctional1 {
           default void a(int i) {};
       }
       
       // can't be converted to lambda
       NotFunctional1 nf = new NotFunctional1() { 
           @Override
           public void a(int i) {
           }
       };
   ```


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