From 34ac48d938d5f3411505f7d0f883a585148ec716 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 08 Jan 2010 18:13:58 +0000
Subject: [PATCH] * various minor code fixes * fix unit tests * remove TODOs from Javadoc (issues are now in Issue Tracker)
---
sdk/src/com/sun/opends/sdk/util/StaticUtils.java | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/util/StaticUtils.java b/sdk/src/com/sun/opends/sdk/util/StaticUtils.java
index 8cdd478..ccd41b9 100644
--- a/sdk/src/com/sun/opends/sdk/util/StaticUtils.java
+++ b/sdk/src/com/sun/opends/sdk/util/StaticUtils.java
@@ -44,7 +44,6 @@
-
/**
* Common utility methods.
*/
@@ -1183,8 +1182,8 @@
b = (byte) 0xF0;
break;
default:
- final LocalizableMessage message = ERR_HEX_DECODE_INVALID_CHARACTER.get(
- new String(new char[] { c1, c2 }), c1);
+ final LocalizableMessage message = ERR_HEX_DECODE_INVALID_CHARACTER
+ .get(new String(new char[] { c1, c2 }), c1);
throw new ParseException(message.toString(), 0);
}
@@ -1245,8 +1244,8 @@
b |= 0x0F;
break;
default:
- final LocalizableMessage message = ERR_HEX_DECODE_INVALID_CHARACTER.get(
- new String(new char[] { c1, c2 }), c1);
+ final LocalizableMessage message = ERR_HEX_DECODE_INVALID_CHARACTER
+ .get(new String(new char[] { c1, c2 }), c1);
throw new ParseException(message.toString(), 0);
}
@@ -1710,17 +1709,18 @@
throws DataFormatException
{
byte[] inputBytes = input.toByteArray();
- byte[] outputBytes = new byte[uncompressedSize > 0 ? uncompressedSize : 0];
+ byte[] outputBytes = new byte[uncompressedSize > 0 ? uncompressedSize
+ : 0];
- int decompressResult = uncompress(inputBytes, 0,
- inputBytes.length, outputBytes, 0, outputBytes.length);
+ int decompressResult = uncompress(inputBytes, 0, inputBytes.length,
+ outputBytes, 0, outputBytes.length);
if (decompressResult < 0)
{
// The destination buffer wasn't big enough. Resize and retry.
outputBytes = new byte[-decompressResult];
- decompressResult = uncompress(inputBytes, 0,
- inputBytes.length, outputBytes, 0, outputBytes.length);
+ decompressResult = uncompress(inputBytes, 0, inputBytes.length,
+ outputBytes, 0, outputBytes.length);
}
if (decompressResult >= 0)
@@ -1834,8 +1834,8 @@
}
}
}
- final LocalizableMessage message = ERR_INVALID_ESCAPE_CHAR.get(reader
- .getString(), c1);
+ final LocalizableMessage message = ERR_INVALID_ESCAPE_CHAR.get(
+ reader.getString(), c1);
throw DecodeException.error(message);
}
@@ -1843,8 +1843,8 @@
// comprise the escaped value.
if (reader.remaining() == 0)
{
- final LocalizableMessage message = ERR_HEX_DECODE_INVALID_LENGTH.get(reader
- .getString());
+ final LocalizableMessage message = ERR_HEX_DECODE_INVALID_LENGTH
+ .get(reader.getString());
throw DecodeException.error(message);
}
@@ -1907,8 +1907,8 @@
b |= 0x0F;
break;
default:
- final LocalizableMessage message = ERR_HEX_DECODE_INVALID_CHARACTER.get(
- new String(new char[] { c1, c2 }), c1);
+ final LocalizableMessage message = ERR_HEX_DECODE_INVALID_CHARACTER
+ .get(new String(new char[] { c1, c2 }), c1);
throw DecodeException.error(message);
}
return (char) b;
--
Gitblit v1.10.0