You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Marco Herrn (Jira)" <ji...@apache.org> on 2020/02/24 14:03:00 UTC
[jira] [Created] (NETBEANS-3913) Don't add @Override notation to
static methods when generating delegate methods
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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists