From 2f01ee4d569022fff64691323b9bbcedc4285d98 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 31 Jan 2014 11:30:32 +0000
Subject: [PATCH] Removed now useless calls to .toString() on arguments of ArgN.get(...).
---
opendj3-server-dev/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java | 44 +++++++++++---------------------------------
1 files changed, 11 insertions(+), 33 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java b/opendj3-server-dev/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
index 12703fc..4e26094 100644
--- a/opendj3-server-dev/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
+++ b/opendj3-server-dev/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
@@ -105,9 +105,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -138,9 +136,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -340,9 +336,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -369,9 +363,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -411,9 +403,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -507,9 +497,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -583,9 +571,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -639,9 +625,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
String str;
@@ -708,9 +692,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -786,9 +768,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
@@ -839,9 +819,7 @@
}
catch(IOException ioe)
{
- LocalizableMessage message =
- ERR_ASN1_READ_ERROR.get(ioe.toString());
- throw new ASN1Exception(message, ioe);
+ throw new ASN1Exception(ERR_ASN1_READ_ERROR.get(ioe), ioe);
}
}
--
Gitblit v1.10.0