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/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java | 25 ++++++++++---------------
1 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java b/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
index e8e7c6d..5aeb057 100644
--- a/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
+++ b/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
@@ -329,10 +329,9 @@
}
catch (Throwable t)
{
- LocalizableMessage errorMessage = INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(
- serverDisplay, t.toString());
throw new ApplicationException(
- ReturnCode.CONFIGURATION_ERROR, errorMessage,
+ ReturnCode.CONFIGURATION_ERROR,
+ INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(serverDisplay, t),
t);
}
}
@@ -396,10 +395,9 @@
}
catch (Throwable t)
{
- LocalizableMessage errorMessage = INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(
- serverDisplay, t.toString());
throw new ApplicationException(
- ReturnCode.CONFIGURATION_ERROR, errorMessage,
+ ReturnCode.CONFIGURATION_ERROR,
+ INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(serverDisplay, t),
t);
}
}
@@ -435,10 +433,9 @@
}
catch (Throwable t)
{
- LocalizableMessage errorMessage = INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(
- serverDisplay, t.toString());
throw new ApplicationException(
- ReturnCode.CONFIGURATION_ERROR, errorMessage,
+ ReturnCode.CONFIGURATION_ERROR,
+ INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(serverDisplay, t),
t);
}
}
@@ -651,10 +648,9 @@
}
catch (Throwable t)
{
- LocalizableMessage errorMessage = INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(
- serverDisplay, t.toString());
throw new ApplicationException(
- ReturnCode.CONFIGURATION_ERROR, errorMessage,
+ ReturnCode.CONFIGURATION_ERROR,
+ INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(serverDisplay, t),
t);
}
}
@@ -764,10 +760,9 @@
}
catch (Throwable t)
{
- LocalizableMessage errorMessage = INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(
- serverDisplay, t.toString());
throw new ApplicationException(
- ReturnCode.CONFIGURATION_ERROR, errorMessage,
+ ReturnCode.CONFIGURATION_ERROR,
+ INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(serverDisplay, t),
t);
}
}
--
Gitblit v1.10.0