Marco Herrn created NETBEANS-3913:
-------------------------------------
Summary: Don't add @Override notation to static methods when
generating delegate methods
Key: NETBEANS-3913
URL: https://issues.apache.org/jira/browse/NETBEANS-3913
Project: NetBeans
Issue Type: Bug
Affects Versions: 11.1
Reporter: Marco Herrn
For the following class:
{{
import java.util.Map;
import java.util.HashMap;
public class MyMap<K, V> implements Map<K, V> {
private final Map<K, V> innerMap= new HashMap<>();
}
}}
call {{"Source / Insert Code … / Delegate Method"}} and select all methods.
Netbeans generates a delegate for each method in Map.
All methods are annotated with @Override. But this is not valid for static
methods like Map.of(…).
Netbeans should therefore omit the @Override annotation for such static methods.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
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