[hg] main-silver: #206808:Useless warning "JavaSourceAccessor$Ca...

  • From: Tomas Zezula < >
  • To: ,
  • Subject: [hg] main-silver: #206808:Useless warning "JavaSourceAccessor$Ca...
  • Date: Thu, 03 Apr 2014 22:22:17 +0000

changeset f3c48d6f9dce in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f3c48d6f9dce
description:
        #206808:Useless warning "JavaSourceAccessor$CancelableTaskWrapper 
ignored cancel"

diffstat:

 java.source/src/org/netbeans/modules/java/source/JavaSourceAccessor.java |   
1 +
 parsing.api/src/org/netbeans/modules/parsing/impl/TaskProcessor.java     |  
12 +++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (46 lines):

diff --git 
a/java.source/src/org/netbeans/modules/java/source/JavaSourceAccessor.java 
b/java.source/src/org/netbeans/modules/java/source/JavaSourceAccessor.java
--- a/java.source/src/org/netbeans/modules/java/source/JavaSourceAccessor.java
+++ b/java.source/src/org/netbeans/modules/java/source/JavaSourceAccessor.java
@@ -301,6 +301,7 @@
             }
         }        
         
+        @Override
         public ClasspathInfo getClasspathInfo () {
             return javaSource.getClasspathInfo();
         }
diff --git 
a/parsing.api/src/org/netbeans/modules/parsing/impl/TaskProcessor.java 
b/parsing.api/src/org/netbeans/modules/parsing/impl/TaskProcessor.java
--- a/parsing.api/src/org/netbeans/modules/parsing/impl/TaskProcessor.java
+++ b/parsing.api/src/org/netbeans/modules/parsing/impl/TaskProcessor.java
@@ -743,13 +743,18 @@
                                                                              
   SchedulerEvent schedulerEvent = 
SourceAccessor.getINSTANCE().getSchedulerEvent(source, 
parserResultTask.getSchedulerClass());
                                                                              
   cancelTime = callParserResultTask(parserResultTask, currentResult, 
schedulerEvent);
                                                                             
} else {
-                                                                             
   assert false : "Unknown task type: " + r.task.getClass();   //NOI18N
+                                                                             
   assert false : 
+                                                                             
       String.format (
+                                                                             
           "Unknown task type: %s : %s",   //NOI18N
+                                                                             
           r.task,
+                                                                             
           r.task.getClass());
                                                                             }
                                                                             
if (LOGGER.isLoggable(Level.FINEST)) {
                                                                              
   LOGGER.log(
                                                                              
           Level.FINEST,
-                                                                             
           "Executed task: {0} in {1} ms.", //NOI18N
+                                                                             
           "Executed task: {0} : {1} in {2} ms.", //NOI18N
                                                                              
           new Object[]{
+                                                                             
               r.task,
                                                                              
               r.task.getClass(),
                                                                              
               System.currentTimeMillis() - startTime
                                                                              
           });
@@ -757,8 +762,9 @@
                                                                             
if (cancelTime > SLOW_CANCEL_LIMIT) {
                                                                              
   LOGGER.log(
                                                                              
           Level.INFO,
-                                                                             
           "Task: {0} ignored cancel for {1} ms.", //NOI18N
+                                                                             
           "Task: {0} : {1} ignored cancel for {2} ms.", //NOI18N
                                                                              
           new Object[]{
+                                                                             
               r.task,
                                                                              
               r.task.getClass(),
                                                                              
               cancelTime
                                                                              
           });

[hg] main-silver: #206808:Useless warning "JavaSourceAccessor$Ca...

Tomas Zezula 04/03/2014

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 195 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150626.29986a4). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close