From a1f030edc5d19b575470f0d79033d9f7471ab172 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 31 Jan 2014 14:49:58 +0000
Subject: [PATCH] Removed now useless calls to .toString() on arguments of ArgN.get(...).

---
 opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
index 709bc08..5c0235c 100644
--- a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
+++ b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
@@ -344,7 +344,7 @@
    * @param font the font to be used in the message.
    * @return a JEditorPane that displays a message.
    */
-  public static JEditorPane makeHtmlPane(String text, Font font)
+  public static JEditorPane makeHtmlPane(CharSequence text, Font font)
   {
     JEditorPane pane = new JEditorPane();
     pane.setContentType("text/html");
@@ -958,7 +958,7 @@
    * @return a string that represents the original HTML with the font specified
    * as parameter.
    */
-  public static String applyFont(String html, Font font)
+  public static String applyFont(CharSequence html, Font font)
   {
     StringBuilder buf = new StringBuilder();
 
@@ -1658,7 +1658,7 @@
    */
   public static String getProgressDone(Font progressFont)
   {
-    return applyFont(INFO_CTRL_PANEL_PROGRESS_DONE.get().toString(),
+    return applyFont(INFO_CTRL_PANEL_PROGRESS_DONE.get(),
         progressFont.deriveFont(Font.BOLD));
   }
 
@@ -1798,9 +1798,7 @@
   {
     l.setText(INFO_CTRL_PANEL_NOT_AVAILABLE_LONG_LABEL.get().toString());
     l.setHelpIconVisible(true);
-    l.setHelpTooltip(
-            INFO_NOT_AVAILABLE_AUTHENTICATION_REQUIRED_TOOLTIP.get()
-                    .toString());
+    l.setHelpTooltip(INFO_NOT_AVAILABLE_AUTHENTICATION_REQUIRED_TOOLTIP.get().toString());
   }
 
   /**
@@ -1828,9 +1826,7 @@
   {
     l.setText(INFO_CTRL_PANEL_NOT_AVAILABLE_LONG_LABEL.get().toString());
     l.setHelpIconVisible(true);
-    l.setHelpTooltip(
-            INFO_NOT_AVAILABLE_AUTHENTICATION_REQUIRED_TOOLTIP.get()
-                    .toString());
+    l.setHelpTooltip(INFO_NOT_AVAILABLE_AUTHENTICATION_REQUIRED_TOOLTIP.get().toString());
   }
 
   /**

--
Gitblit v1.10.0