This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 7149573  Reduce the number of unchecked call warnings by using the 
diamond operator..
7149573 is described below

commit 71495732dc6f38f884bd0c25616eb489e23ef7c0
Author: Brad Walker <bwal...@musings.com>
AuthorDate: Fri Aug 23 13:48:01 2019 -0600

    Reduce the number of unchecked call warnings by using the diamond operator..
---
 .../apisupport/CoSApplicationLateBoundChecker.java   |  2 +-
 enterprise/cloud.common/nbproject/project.properties |  2 +-
 .../support/ui/CloudResourcesWizardComponent.java    |  2 +-
 .../modules/bugzilla/query/QueryController.java      |  2 +-
 .../modules/css/editor/csl/CssCompletion.java        |  2 +-
 .../src/org/netbeans/modules/turbo/Turbo.java        |  4 ++--
 .../jpda/ui/models/DebuggingMonitorModel.java        |  2 +-
 .../modules/debugger/jpda/models/JPDAThreadImpl.java |  2 +-
 .../modules/debugger/jpda/models/ThreadsCache.java   | 20 ++++++++++----------
 java/junit.ant/nbproject/project.properties          |  2 +-
 .../modules/junit/ant/JUnitOutputReader.java         |  2 +-
 .../netbeans/modules/junit/ant/XmlOutputParser.java  |  2 +-
 .../autoupdate/services/OperationValidator.java      |  2 +-
 platform/masterfs/nbproject/project.properties       |  2 +-
 .../masterfs/filebasedfs/naming/NamingFactory.java   |  2 +-
 .../modules/javascript2/model/JsObjectImpl.java      |  4 ++--
 .../modules/javascript2/model/api/Model.java         | 12 ++++++------
 .../nodejs/editor/model/NodeJsObjectInterceptor.java |  4 ++--
 18 files changed, 35 insertions(+), 35 deletions(-)

diff --git 
a/apisupport/maven.apisupport/src/org/netbeans/modules/maven/apisupport/CoSApplicationLateBoundChecker.java
 
b/apisupport/maven.apisupport/src/org/netbeans/modules/maven/apisupport/CoSApplicationLateBoundChecker.java
index 22fe240..a39b42b 100644
--- 
a/apisupport/maven.apisupport/src/org/netbeans/modules/maven/apisupport/CoSApplicationLateBoundChecker.java
+++ 
b/apisupport/maven.apisupport/src/org/netbeans/modules/maven/apisupport/CoSApplicationLateBoundChecker.java
@@ -86,7 +86,7 @@ public class CoSApplicationLateBoundChecker implements 
LateBoundPrerequisitesChe
         if (!nonModules.isEmpty()) {
             for (DependencyProjectsProvider.Pair pair : nonModules) {
                 //TODO what to do for OSGI (netbeans.patches. doesn't work 
here) and for non module jars (find where they belong?)
-                List<String> trail = new 
ArrayList(pair.getArtifact().getDependencyTrail());
+                List<String> trail = new 
ArrayList<>(pair.getArtifact().getDependencyTrail());
                 Collections.reverse(trail); //we go from the artifact itself 
up, first module project artifact is our boy..
                 trail.remove(0); //first one is the actual artifact.
                 for (String s : trail) {
diff --git a/enterprise/cloud.common/nbproject/project.properties 
b/enterprise/cloud.common/nbproject/project.properties
index c0af75f..0f4ec98 100644
--- a/enterprise/cloud.common/nbproject/project.properties
+++ b/enterprise/cloud.common/nbproject/project.properties
@@ -14,5 +14,5 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-javac.source=1.6
+javac.source=1.8
 javac.compilerargs=-Xlint -Xlint:-serial
diff --git 
a/enterprise/cloud.common/src/org/netbeans/modules/cloud/common/spi/support/ui/CloudResourcesWizardComponent.java
 
b/enterprise/cloud.common/src/org/netbeans/modules/cloud/common/spi/support/ui/CloudResourcesWizardComponent.java
index ea95145..079e7bd 100644
--- 
a/enterprise/cloud.common/src/org/netbeans/modules/cloud/common/spi/support/ui/CloudResourcesWizardComponent.java
+++ 
b/enterprise/cloud.common/src/org/netbeans/modules/cloud/common/spi/support/ui/CloudResourcesWizardComponent.java
@@ -65,7 +65,7 @@ public class CloudResourcesWizardComponent extends 
javax.swing.JPanel {
         private List<ServerResourceDescriptor> resources;
 
         public ResourceModel(List<ServerResourceDescriptor> resources) {
-            this.resources = new ArrayList(resources);
+            this.resources = new ArrayList<>(resources);
             if (this.resources.isEmpty()) {
                 this.resources.add(new ServerResourceDescriptor("", "none 
available yet", "", null));
             }
diff --git 
a/ide/bugzilla/src/org/netbeans/modules/bugzilla/query/QueryController.java 
b/ide/bugzilla/src/org/netbeans/modules/bugzilla/query/QueryController.java
index 6b3d730..52c81d6 100644
--- a/ide/bugzilla/src/org/netbeans/modules/bugzilla/query/QueryController.java
+++ b/ide/bugzilla/src/org/netbeans/modules/bugzilla/query/QueryController.java
@@ -1045,7 +1045,7 @@ public class QueryController implements 
org.netbeans.modules.bugtracking.spi.Que
     }
 
     private List<String> getQueryResolutions(BugzillaConfiguration bc) {
-        List<String> l = new ArrayList(bc.getResolutions());
+        List<String> l = new ArrayList<>(bc.getResolutions());
         l.add(0, "---");
         return l;
     }
diff --git 
a/ide/css.editor/src/org/netbeans/modules/css/editor/csl/CssCompletion.java 
b/ide/css.editor/src/org/netbeans/modules/css/editor/csl/CssCompletion.java
index 5fd42cf..a3d971e 100644
--- a/ide/css.editor/src/org/netbeans/modules/css/editor/csl/CssCompletion.java
+++ b/ide/css.editor/src/org/netbeans/modules/css/editor/csl/CssCompletion.java
@@ -245,7 +245,7 @@ public class CssCompletion implements CodeCompletionHandler 
{
 
     private List<CompletionProposal> completeHtmlSelectors(CompletionContext 
context, String prefix, int offset) {
         List<CompletionProposal> proposals = new ArrayList<>(20);
-        Collection<String> items = new 
ArrayList(Arrays.asList(HtmlTags.getTags()));
+        Collection<String> items = new 
ArrayList<>(Arrays.asList(HtmlTags.getTags()));
         items.add(UNIVERSAL_SELECTOR);
         for (String tagName : items) {
             if (tagName.startsWith(prefix.toLowerCase(Locale.ENGLISH))) {
diff --git a/ide/versioning.util/src/org/netbeans/modules/turbo/Turbo.java 
b/ide/versioning.util/src/org/netbeans/modules/turbo/Turbo.java
index e6d70ba..743037d 100644
--- a/ide/versioning.util/src/org/netbeans/modules/turbo/Turbo.java
+++ b/ide/versioning.util/src/org/netbeans/modules/turbo/Turbo.java
@@ -366,7 +366,7 @@ public final class Turbo {
 
     public void addTurboListener(TurboListener l) {
         synchronized(listeners) {
-            List copy = new ArrayList(listeners);
+            List<TurboListener> copy = new ArrayList<>(listeners);
             copy.add(l);
             listeners = copy;
         }
@@ -374,7 +374,7 @@ public final class Turbo {
 
     public void removeTurboListener(TurboListener l) {
         synchronized(listeners) {
-            List copy = new ArrayList(listeners);
+            List<TurboListener> copy = new ArrayList<>(listeners);
             copy.remove(l);
             listeners = copy;
         }
diff --git 
a/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/DebuggingMonitorModel.java
 
b/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/DebuggingMonitorModel.java
index eea9aca..de35f5c 100644
--- 
a/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/DebuggingMonitorModel.java
+++ 
b/java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/DebuggingMonitorModel.java
@@ -354,7 +354,7 @@ NodeActionsProviderFilter, TableModel, Constants {
                 if (SHOW_MONITORS.equals(key)) {
                     List<JPDAThread> threads;
                     synchronized (threadsAskedForMonitors) {
-                        threads = new ArrayList(threadsAskedForMonitors);
+                        threads = new ArrayList<>(threadsAskedForMonitors);
                     }
                     for (JPDAThread t : threads) {
                         modelEventSource.doRefreshCache(dvSupport.get(t));
diff --git 
a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
 
b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
index 80b6569..d91cf46 100644
--- 
a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
+++ 
b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
@@ -2096,7 +2096,7 @@ public final class JPDAThreadImpl implements JPDAThread, 
Customizer, BeanContext
             if (lockerThreadsList == null) {
                 return ;//false;
             }
-            blockingThreads = new ArrayList(lockerThreadsList);
+            blockingThreads = new ArrayList<>(lockerThreadsList);
         }
         List<ThreadReference> resumedThreads = new 
ArrayList<ThreadReference>(blockingThreads.size());
         for (JPDAThread t : blockingThreads) {
diff --git 
a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ThreadsCache.java
 
b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ThreadsCache.java
index a865206..c6b931b 100644
--- 
a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ThreadsCache.java
+++ 
b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ThreadsCache.java
@@ -168,8 +168,8 @@ public class ThreadsCache implements Executor {
 
     private void initGroups(ThreadGroupReference group) {
         try {
-            List<ThreadGroupReference> groups = new 
ArrayList(ThreadGroupReferenceWrapper.threadGroups0(group));
-            List<ThreadReference> threads = new 
ArrayList(ThreadGroupReferenceWrapper.threads0(group));
+            List<ThreadGroupReference> groups = new 
ArrayList<>(ThreadGroupReferenceWrapper.threadGroups0(group));
+            List<ThreadReference> threads = new 
ArrayList<>(ThreadGroupReferenceWrapper.threads0(group));
             filterThreads(threads);
             groupMap.put(group, groups);
             threadMap.put(group, threads);
@@ -197,7 +197,7 @@ public class ThreadsCache implements Executor {
         groups = groupMap.get(null);
         if (groups == null) {
             try {
-                groups = new 
ArrayList(VirtualMachineWrapper.topLevelThreadGroups(vm));
+                groups = new 
ArrayList<>(VirtualMachineWrapper.topLevelThreadGroups(vm));
             } catch (InternalExceptionWrapper ex) {
                 return ;
             }
@@ -206,7 +206,7 @@ public class ThreadsCache implements Executor {
         for (ThreadGroupReference group : groups) {
             initGroups(group);
         }
-        List<ThreadReference> mainThreads = new ArrayList();
+        List<ThreadReference> mainThreads = new ArrayList<>();
         threadMap.put(null, mainThreads);
         for (ThreadReference thread : allThreads) {
             try {
@@ -237,7 +237,7 @@ public class ThreadsCache implements Executor {
             if (vm == null) {
                 return Collections.EMPTY_LIST;
             }
-            topGroups = new 
ArrayList(VirtualMachineWrapper.topLevelThreadGroups0(vm));
+            topGroups = new 
ArrayList<>(VirtualMachineWrapper.topLevelThreadGroups0(vm));
             groupMap.put(null, topGroups);
             if (uninitialized) {
                 for (ThreadGroupReference g : topGroups) {
@@ -279,7 +279,7 @@ public class ThreadsCache implements Executor {
         }
         List<ThreadGroupReference> groups = groupMap.get(group);
         if (groups == uninitializedGroupList) {
-            groups = new 
ArrayList(ThreadGroupReferenceWrapper.threadGroups0(group));
+            groups = new 
ArrayList<>(ThreadGroupReferenceWrapper.threadGroups0(group));
             groupMap.put(group, groups);
         }
         if (groups == null) {
@@ -309,7 +309,7 @@ public class ThreadsCache implements Executor {
         List<ThreadGroupReference> gs = groupMap.get(g);
         if (gs != null) {
             if (gs == uninitializedGroupList) {
-                gs = new 
ArrayList(ThreadGroupReferenceWrapper.threadGroups0(g));
+                gs = new 
ArrayList<>(ThreadGroupReferenceWrapper.threadGroups0(g));
                 groupMap.put(g, gs);
             }
             groups.addAll(gs);
@@ -340,7 +340,7 @@ public class ThreadsCache implements Executor {
             if (parent != null) {
                 addedGroups.addAll(addGroups(parent));
             } else {
-                List<ThreadGroupReference> topGroups = new 
ArrayList(VirtualMachineWrapper.topLevelThreadGroups0(vm));
+                List<ThreadGroupReference> topGroups = new 
ArrayList<>(VirtualMachineWrapper.topLevelThreadGroups0(vm));
                 groupMap.put(null, topGroups);
                 addedGroups.addAll(topGroups);
             }
@@ -348,14 +348,14 @@ public class ThreadsCache implements Executor {
         List<ThreadGroupReference> parentsGroups = groupMap.get(parent);
         if (parentsGroups != null && !parentsGroups.contains(group)) {
             if (parentsGroups == uninitializedGroupList) {
-                parentsGroups = new 
ArrayList(ThreadGroupReferenceWrapper.threadGroups0(parent));
+                parentsGroups = new 
ArrayList<>(ThreadGroupReferenceWrapper.threadGroups0(parent));
                 groupMap.put(parent, parentsGroups);
                 addedGroups.addAll(parentsGroups);
             } else {
                 parentsGroups.add(group);
                 addedGroups.add(group);
             }
-            List<ThreadGroupReference> groups = new ArrayList();
+            List<ThreadGroupReference> groups = new ArrayList<>();
             groupMap.put(group, groups);
         }
         return addedGroups;
diff --git a/java/junit.ant/nbproject/project.properties 
b/java/junit.ant/nbproject/project.properties
index 7f641b7..3b054ca 100644
--- a/java/junit.ant/nbproject/project.properties
+++ b/java/junit.ant/nbproject/project.properties
@@ -15,5 +15,5 @@
 # specific language governing permissions and limitations
 # under the License.
 is.eager=true
-javac.source=1.6
+javac.source=1.8
 javac.compilerargs=-Xlint -Xlint:-serial
diff --git 
a/java/junit.ant/src/org/netbeans/modules/junit/ant/JUnitOutputReader.java 
b/java/junit.ant/src/org/netbeans/modules/junit/ant/JUnitOutputReader.java
index 1a68d4c..1acbff6 100644
--- a/java/junit.ant/src/org/netbeans/modules/junit/ant/JUnitOutputReader.java
+++ b/java/junit.ant/src/org/netbeans/modules/junit/ant/JUnitOutputReader.java
@@ -991,7 +991,7 @@ final class JUnitOutputReader {
             }
 
         } else {
-            List<String> stList = new 
ArrayList(Arrays.asList(testcase.getTrouble().getStackTrace()));
+            List<String> stList = new 
ArrayList<>(Arrays.asList(testcase.getTrouble().getStackTrace()));
             if (!line.startsWith(stList.get(stList.size()-1))){
                 stList.add(line);
                 trouble.setStackTrace(stList.toArray(new 
String[stList.size()]));
diff --git 
a/java/junit.ant/src/org/netbeans/modules/junit/ant/XmlOutputParser.java 
b/java/junit.ant/src/org/netbeans/modules/junit/ant/XmlOutputParser.java
index 47d2266..f1ad6eb 100644
--- a/java/junit.ant/src/org/netbeans/modules/junit/ant/XmlOutputParser.java
+++ b/java/junit.ant/src/org/netbeans/modules/junit/ant/XmlOutputParser.java
@@ -462,7 +462,7 @@ final class XmlOutputParser extends DefaultHandler {
             tr.setStackTrace(new String[]{line});
             setComparisonFailure(tr, line);
         } else {
-            List<String> stList = new 
ArrayList(Arrays.asList(trouble.getStackTrace()));
+            List<String> stList = new 
ArrayList<>(Arrays.asList(trouble.getStackTrace()));
             if (!line.startsWith(stList.get(stList.size()-1))){
                 stList.add(line);
                 tr.setStackTrace(stList.toArray(new String[stList.size()]));
diff --git 
a/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/OperationValidator.java
 
b/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/OperationValidator.java
index 12724f3..a5ffd73 100644
--- 
a/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/OperationValidator.java
+++ 
b/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/OperationValidator.java
@@ -357,7 +357,7 @@ abstract class OperationValidator {
         @Override
         List<UpdateElement> getRequiredElementsImpl (UpdateElement uElement, 
List<ModuleInfo> moduleInfos, Collection<String> brokenDependencies, 
Collection<UpdateElement> recommendedElements) {
             UpdateElementImpl uElementImpl = Trampoline.API.impl(uElement);
-            List<ModuleInfo> expandedModuleInfos = new ArrayList(moduleInfos);
+            List<ModuleInfo> expandedModuleInfos = new 
ArrayList<>(moduleInfos);
             expandedModuleInfos.addAll(uElementImpl.getModuleInfos(true));
             ModuleManager mm = null;
             final Set<Module> modules = new LinkedHashSet<Module>();
diff --git a/platform/masterfs/nbproject/project.properties 
b/platform/masterfs/nbproject/project.properties
index a4f2c2c..b11758e 100644
--- a/platform/masterfs/nbproject/project.properties
+++ b/platform/masterfs/nbproject/project.properties
@@ -16,7 +16,7 @@
 # under the License.
 
 javac.compilerargs=-Xlint -Xlint:-serial
-javac.source=1.6
+javac.source=1.8
 javadoc.arch=${basedir}/arch.xml
 javadoc.apichanges=${basedir}/apichanges.xml
 
diff --git 
a/platform/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java
 
b/platform/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java
index e69554e..67878ee 100644
--- 
a/platform/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java
+++ 
b/platform/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java
@@ -47,7 +47,7 @@ public final class NamingFactory {
 
         List<FileInfo> checkDirs = new ArrayList<FileInfo>();
         FileNaming fileName = null;
-        final List<FileInfo> list = new ArrayList(queue);
+        final List<FileInfo> list = new ArrayList<>(queue);
         for (int i = 0; i < list.size(); ) {
             FileInfo f = list.get(i);
             if("\\\\".equals(f.getFile().getPath())) {
diff --git 
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/JsObjectImpl.java
 
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/JsObjectImpl.java
index 2338f4e..baba551 100644
--- 
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/JsObjectImpl.java
+++ 
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/JsObjectImpl.java
@@ -563,7 +563,7 @@ public class JsObjectImpl extends JsElementImpl implements 
JsObject {
         if (prototype != null) {
             Collection<? extends TypeUsage> protoAssignments = 
prototype.getAssignments();
             if (protoAssignments != null && !protoAssignments.isEmpty()) {
-                protoAssignments = new ArrayList(protoAssignments);
+                protoAssignments = new ArrayList<>(protoAssignments);
                 Collection<? extends JsObject> variables = 
ModelUtils.getVariables(ModelUtils.getDeclarationScope(this));
                 for (TypeUsage typeUsage : protoAssignments) {
                     for (JsObject variable : variables) {
@@ -787,7 +787,7 @@ public class JsObjectImpl extends JsElementImpl implements 
JsObject {
     protected void correctTypes(String fromType, String toType) {
         for (Integer offset: assignments.keySet()) {
             Collection<TypeUsage> types = assignments.get(offset);
-            List<TypeUsage> copy = new ArrayList(types);
+            List<TypeUsage> copy = new ArrayList<>(types);
             String typeR = null;
             for (TypeUsage type : copy) {
                 typeR = replaceTypeInFQN(type.getType(), fromType, toType);
diff --git 
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Model.java
 
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Model.java
index fef78ac..baeb7df 100644
--- 
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Model.java
+++ 
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Model.java
@@ -203,7 +203,7 @@ public final class Model {
         if (where.getProperties().isEmpty()) {
             return;
         }
-        List<JsObject> properties = new 
ArrayList(where.getProperties().values());
+        List<JsObject> properties = new 
ArrayList<>(where.getProperties().values());
         for (JsObject property : properties) {
             if (property instanceof JsWith) {
                 processWithObject((JsWith)property, jsIndex, null);
@@ -332,7 +332,7 @@ public final class Model {
         }
             
         boolean hasOuter = with.getOuterWith() != null;
-        List<JsObject> withProperties = new 
ArrayList(with.getProperties().values());
+        List<JsObject> withProperties = new 
ArrayList<>(with.getProperties().values());
         DeclarationScope withDS = ModelUtils.getDeclarationScope(with);
         for (JsObject jsWithProperty : withProperties) {
             if (!(jsWithProperty instanceof JsWith)) {
@@ -437,7 +437,7 @@ public final class Model {
             for (Occurrence occurrence : property.getOccurrences()) {
                 newProperty.addOccurrence(occurrence.getOffsetRange());
             }
-            List<JsObject>propertiesToMove = new 
ArrayList(property.getProperties().values());
+            List<JsObject>propertiesToMove = new 
ArrayList<>(property.getProperties().values());
             for (JsObject propOfProperty: propertiesToMove) {
                 moveProperty(newProperty, propOfProperty);
             }
@@ -571,13 +571,13 @@ public final class Model {
                 resolveWithObjects = true;
             }
         }
-        ArrayList<JsObject> copy = new 
ArrayList(object.getProperties().values());
-        ArrayList<String> namesBefore = new 
ArrayList(object.getProperties().keySet());
+        ArrayList<JsObject> copy = new 
ArrayList<>(object.getProperties().values());
+        ArrayList<String> namesBefore = new 
ArrayList<>(object.getProperties().keySet());
         Collections.reverse(copy);  // resolve the properties in revers order 
(how was added)
         for(JsObject property: copy) {
             resolveLocalTypes(property, docHolder, alreadyResolvedObjects);
         }
-        ArrayList<String> namesAfter = new 
ArrayList(object.getProperties().keySet());
+        ArrayList<String> namesAfter = new 
ArrayList<>(object.getProperties().keySet());
         // it's possible that some properties was moved to the object, then 
resolve them.
         for (String propertyName : namesAfter) {
             if (!namesBefore.contains(propertyName)) {
diff --git 
a/webcommon/javascript2.nodejs/src/org/netbeans/modules/javascript2/nodejs/editor/model/NodeJsObjectInterceptor.java
 
b/webcommon/javascript2.nodejs/src/org/netbeans/modules/javascript2/nodejs/editor/model/NodeJsObjectInterceptor.java
index 488f5eb..7daeb07 100644
--- 
a/webcommon/javascript2.nodejs/src/org/netbeans/modules/javascript2/nodejs/editor/model/NodeJsObjectInterceptor.java
+++ 
b/webcommon/javascript2.nodejs/src/org/netbeans/modules/javascript2/nodejs/editor/model/NodeJsObjectInterceptor.java
@@ -84,7 +84,7 @@ public class NodeJsObjectInterceptor implements 
ObjectInterceptor {
             module.setAnonymous(true);
             global.addProperty(module.getName(), module);
             ((DeclarationScope)global).addDeclaredScope(module);
-            List<JsObject> properties = new 
ArrayList(global.getProperties().values());
+            List<JsObject> properties = new 
ArrayList<>(global.getProperties().values());
             for (JsObject property : properties) {
                 String propertyName = property.getName();
                 if ((property.isDeclared() || 
NodeJsUtils.MODULE.equals(propertyName)
@@ -98,7 +98,7 @@ public class NodeJsObjectInterceptor implements 
ObjectInterceptor {
                 } 
             }
             DeclarationScope globalScope = (DeclarationScope)global;
-            List<? extends DeclarationScope> childrenScopesCopy = new 
ArrayList(globalScope.getChildrenScopes());
+            List<? extends DeclarationScope> childrenScopesCopy = new 
ArrayList<>(globalScope.getChildrenScopes());
             
             for(DeclarationScope movedScope: childrenScopesCopy) {
                 if (!movedScope.equals(module)) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to