[hg] main-silver: fixed some hints

  • From: Tomas Stupka < >
  • To: ,
  • Subject: [hg] main-silver: fixed some hints
  • Date: Tue, 02 Jul 2013 14:28:32 -0700

changeset 5bcd7ed9596f in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/5bcd7ed9596f
description:
        fixed some hints

diffstat:

 
bugtracking/src/org/netbeans/modules/bugtracking/util/RepositoryComboSupport.java
 |  15 ++++------
 1 files changed, 6 insertions(+), 9 deletions(-)

diffs (57 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/util/RepositoryComboSupport.java
 
b/bugtracking/src/org/netbeans/modules/bugtracking/util/RepositoryComboSupport.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/util/RepositoryComboSupport.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/util/RepositoryComboSupport.java
@@ -461,8 +461,7 @@
 
         LOG.finest("going to display the list of repositories");        
//NOI18N
         if ((knownDefaultRepo != null) && (LOG.isLoggable(FINEST))) {
-            LOG.finest("  - default repository: "                       
//NOI18N
-                       + knownDefaultRepo.getDisplayName());
+            LOG.log(FINEST, "  - default repository: {0}", 
knownDefaultRepo.getDisplayName());
         }
         try {
             setRepositories(repositories, knownDefaultRepo);
@@ -513,7 +512,7 @@
         assert EventQueue.isDispatchThread();
 
         if (LOG.isLoggable(Level.FINER)) {
-            LOG.finer("preselectRepository(" + 
repoToPreselect.getDisplayName() + ')'); //NOI18N
+            LOG.log(Level.FINER, "preselectRepository({0})", 
repoToPreselect.getDisplayName()); //NOI18N
         }
 
         if (comboBox.isPopupVisible()) {
@@ -541,7 +540,7 @@
 
     private void preselectItemUnconditionally(Object item) {
         if (LOG.isLoggable(Level.FINER)) {
-            LOG.finer("preselectItemUnconditionally(" + getItemName(item) + 
')'); //NOI18N
+            LOG.log(Level.FINER, "preselectItemUnconditionally({0})", 
getItemName(item)); //NOI18N
         }
 
         comboBox.setSelectedItem(item);
@@ -626,8 +625,7 @@
 
         long endTimeMillis = System.currentTimeMillis();
         if (LOG.isLoggable(FINEST)) {
-            LOG.finest("BugtrackingUtil.getKnownRepositories() took "   
//NOI18N
-                       + (endTimeMillis - startTimeMillis) + " ms.");   
//NOI18N
+            LOG.log(FINEST, "BugtrackingUtil.getKnownRepositories() took {0} 
ms.", (endTimeMillis - startTimeMillis));   //NOI18N
         }
         updateProgress(Progress.LOADED_REPOS);
     }
@@ -655,13 +653,12 @@
         endTimeMillis = System.currentTimeMillis();
 
         if (LOG.isLoggable(FINEST)) {
-            LOG.finest("BugtrackingOwnerSupport.getRepository(...) took " 
//NOI18N
-                       + (endTimeMillis - startTimeMillis) + " ms.");   
//NOI18N
+            LOG.log(FINEST, "BugtrackingOwnerSupport.getRepository(...) took 
{0} ms.", (endTimeMillis - startTimeMillis));   //NOI18N
         }
 
         if (result != null) {
             if (LOG.isLoggable(FINEST)) {
-                LOG.finest(" - default repository: " + 
result.getDisplayName()); //NOI18N
+                LOG.log(FINEST, " - default repository: {0}", 
result.getDisplayName()); //NOI18N
             }
             defaultRepo = result.getRepository();
         } else {

[hg] main-silver: fixed some hints

Tomas Stupka 07/02/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close