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/com/forgerock/opendj/util/SubstringReader.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/SubstringReader.java b/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/SubstringReader.java
index 67bafbe..2938a4b 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/SubstringReader.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/SubstringReader.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2009-2010 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 
 package com.forgerock.opendj.util;
@@ -106,7 +107,7 @@
    * @throws StringIndexOutOfBoundsException If there is no more data
    *            available to read.
    */
-  public char read() throws StringIndexOutOfBoundsException
+  public char read()
   {
     if (pos >= length)
     {
@@ -129,7 +130,7 @@
    * @throws StringIndexOutOfBoundsException If the length exceeds the
    *            allowed length.
    */
-  public String read(final int length) throws StringIndexOutOfBoundsException
+  public String read(final int length)
   {
     if (length > this.length || pos + length > this.length)
     {

--
Gitblit v1.10.0