From 41e72531b209b74571589296a3a33354eb2a1c39 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 03 Jan 2012 17:05:22 +0000
Subject: [PATCH] Fix OPENDJ-394: Do not declare unchecked exceptions in method declarations
---
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java
index 941db81..d6d5a05 100755
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java
@@ -23,7 +23,7 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
+ * Portions copyright 2011-2012 ForgeRock AS
*/
package org.forgerock.opendj.ldap;
@@ -68,7 +68,7 @@
* @throws IndexOutOfBoundsException
* If the index argument is negative or not less than length().
*/
- byte byteAt(int index) throws IndexOutOfBoundsException;
+ byte byteAt(int index);
@@ -94,8 +94,7 @@
* If {@code offset} is negative or if {@code length} is negative or
* if {@code offset + length} is greater than {@code bytes.length}.
*/
- int compareTo(byte[] bytes, int offset, int length)
- throws IndexOutOfBoundsException;
+ int compareTo(byte[] bytes, int offset, int length);
@@ -173,7 +172,7 @@
* @throws IndexOutOfBoundsException
* If {@code offset} is negative.
*/
- byte[] copyTo(byte[] bytes, int offset) throws IndexOutOfBoundsException;
+ byte[] copyTo(byte[] bytes, int offset);
@@ -223,8 +222,7 @@
* If {@code offset} is negative or if {@code length} is negative or
* if {@code offset + length} is greater than {@code bytes.length}.
*/
- boolean equals(byte[] bytes, int offset, int length)
- throws IndexOutOfBoundsException;
+ boolean equals(byte[] bytes, int offset, int length);
@@ -283,7 +281,7 @@
* greater than {@code length()}, or if {@code start} is greater
* than {@code end}.
*/
- ByteSequence subSequence(int start, int end) throws IndexOutOfBoundsException;
+ ByteSequence subSequence(int start, int end);
--
Gitblit v1.10.0