You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by mk...@apache.org on 2019/12/09 23:46:29 UTC

[netbeans] 01/02: [NETBEANS-3501] Fixed compiler warnings concerning rawtypes PrivilegedAction

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

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

commit d6e6e5aa04fe8068a9dca29c105059f35519579f
Author: Martin Klähn <mk...@apache.org>
AuthorDate: Sat Nov 30 17:41:06 2019 +0100

    [NETBEANS-3501] Fixed compiler warnings concerning rawtypes PrivilegedAction
---
 .../org/netbeans/modules/groovy/editor/compiler/ClassNodeCache.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/compiler/ClassNodeCache.java b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/compiler/ClassNodeCache.java
index c88a21d..6b364dc 100644
--- a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/compiler/ClassNodeCache.java
+++ b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/compiler/ClassNodeCache.java
@@ -307,10 +307,10 @@ public final class ClassNodeCache {
 
             @Override
             public URL loadGroovySource(final String filename) throws MalformedURLException {
-                URL file = (URL) AccessController.doPrivileged(new PrivilegedAction() {
+                URL file = AccessController.doPrivileged(new PrivilegedAction<URL>() {
 
                     @Override
-                    public Object run() {
+                    public URL run() {
                         return getSourceFile(filename);
                     }
                 });


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