Brad Walker created NETBEANS-3022:

             Summary: reduce the number of unchecked call warnings..
                 Key: NETBEANS-3022
             Project: NetBeans
          Issue Type: Improvement
            Reporter: Brad Walker

Reduce the number of unchecked call warnings. like this..
 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 file at a few places 
to allow the use of the diamond operator..
   [depend] Deleted 14 out of date files in 0 seconds
 [nb-javac] Compiling 10 source files to 
   [repeat] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
 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
In these few places I changed the source to 1.8..


This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

Reply via email to