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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to