Improving #170507 by using {0} to delay string concatenation
authorJaroslav Tulach <jtulach@netbeans.org>
Fri, 18 Sep 2009 15:49:41 +0200
changeset 824f2ad3e85e0cf
parent 823 adc74c06e60e
child 825 7541c0f74ce0
child 939 737729a8b9e6
Improving #170507 by using {0} to delay string concatenation
openide.util/src/org/openide/util/Task.java
     1.1 --- a/openide.util/src/org/openide/util/Task.java	Thu Sep 10 15:27:43 2009 +0200
     1.2 +++ b/openide.util/src/org/openide/util/Task.java	Fri Sep 18 15:49:41 2009 +0200
     1.3 @@ -198,9 +198,7 @@
     1.4      */
     1.5      protected final void notifyRunning() {
     1.6          synchronized (this) {
     1.7 -            if (RequestProcessor.logger().isLoggable(Level.FINE)) {
     1.8 -                RequestProcessor.logger().fine("notifyRunning: " + this); // NOI18N
     1.9 -            }
    1.10 +            RequestProcessor.logger().log(Level.FINE, "notifyRunning: {0}", this); // NOI18N
    1.11              this.finished = false;
    1.12              notifyAll();
    1.13          }
    1.14 @@ -214,9 +212,7 @@
    1.15  
    1.16          synchronized (this) {
    1.17              finished = true;
    1.18 -            if (RequestProcessor.logger().isLoggable(Level.FINE)) {
    1.19 -                RequestProcessor.logger().fine("notifyFinished: " + this); // NOI18N
    1.20 -            }
    1.21 +            RequestProcessor.logger().log(Level.FINE, "notifyFinished: {0}", this); // NOI18N
    1.22              notifyAll();
    1.23  
    1.24              // fire the listeners