You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/08/23 19:56:00 UTC

[jira] [Updated] (NETBEANS-3022) reduce the number of unchecked call warnings..

     [ https://issues.apache.org/jira/browse/NETBEANS-3022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated NETBEANS-3022:
-------------------------------------
    Labels: pull-request-available  (was: )

> reduce the number of unchecked call warnings..
> ----------------------------------------------
>
>                 Key: NETBEANS-3022
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3022
>             Project: NetBeans
>          Issue Type: Improvement
>            Reporter: Brad Walker
>            Priority: Major
>              Labels: pull-request-available
>
> Reduce the number of unchecked call warnings. like this..
> {code:java}
>    [repeat] /home/bwalker/netbeans/webcommon/javascript2.nodejs/src/org/netbeans/modules/javascript2/nodejs/editor/model/NodeJsObjectInterceptor.java:101: warning: [unchecked] unchecked call to ArrayList(Collection<? extends E>) as a member of the raw type ArrayList
>    [repeat]             List<? extends DeclarationScope> childrenScopesCopy = new ArrayList(globalScope.getChildrenScopes());
>    [repeat]                                                                   ^
>    [repeat]   where E is a type-variable:
>    [repeat]     E extends Object declared in class ArrayList{code}
> This is done by  simply adding the diamond operator <>..
> In addition, I also had to update the project.properties file at a few places to allow the use of the diamond operator..
> {code:java}
> compile:
>    [depend] Deleted 14 out of date files in 0 seconds
>  [nb-javac] Compiling 10 source files to /home/bwalker/netbeans/platform/masterfs/build/classes
>    [repeat] warning: [options] bootstrap class path not set in conjunction with -source 1.6
>    [repeat] /home/bwalker/netbeans/platform/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java:50: error: diamond operator is not supported in -source 1.6
>    [repeat]         final List<FileInfo> list = new ArrayList<>(queue);
>    [repeat]                                                   ^
>    [repeat]   (use -source 7 or higher to enable diamond operator)
>    [repeat] 1 error
>    [repeat] 1 warning
>   [nbmerge] Failed to build target: all-masterfs
> {code}
> In these few places I changed the source to 1.8..
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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