From 95b972d6e249498f9a5fa44d166a47eb52cf0853 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 28 Aug 2009 11:09:58 +0000
Subject: [PATCH] Most of the Exceptions that were thrown when a bug was detected where IllegalStateException. This was not very strict, so when that usage is not appropriate RuntimeException is used.
---
opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java b/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
index 6ab40ec..8c25576 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
@@ -1191,7 +1191,7 @@
b = (byte) 0xF0;
break;
default:
- throw new IllegalStateException("Unexpected byte: "+escapedByte1);
+ throw new RuntimeException("Unexpected byte: "+escapedByte1);
}
byte escapedByte2 = stringBytes[++i];
@@ -1251,7 +1251,7 @@
b |= 0x0F;
break;
default:
- throw new IllegalStateException("Unexpected byte: "+escapedByte2);
+ throw new RuntimeException("Unexpected byte: "+escapedByte2);
}
decodedBytes[pos++] = b;
@@ -1265,7 +1265,7 @@
catch (UnsupportedEncodingException uee)
{
// This is a bug, UTF-8 should be supported always by the JVM
- throw new IllegalStateException("UTF-8 encoding not supported", uee);
+ throw new RuntimeException("UTF-8 encoding not supported", uee);
}
}
--
Gitblit v1.10.0