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/controls/GenericControl.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/GenericControl.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/GenericControl.java
index 5055385..3356d32 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/GenericControl.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/GenericControl.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2010 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 package org.forgerock.opendj.ldap.controls;
 
@@ -53,7 +54,6 @@
    *           If {@code control} was {@code null}.
    */
   public static GenericControl newControl(final Control control)
-      throws NullPointerException
   {
     Validator.ensureNotNull(control);
 
@@ -78,7 +78,6 @@
    *           If {@code oid} was {@code null}.
    */
   public static GenericControl newControl(final String oid)
-      throws NullPointerException
   {
     return new GenericControl(oid, false, null);
   }
@@ -100,7 +99,7 @@
    *           If {@code oid} was {@code null}.
    */
   public static GenericControl newControl(final String oid,
-      final boolean isCritical) throws NullPointerException
+      final boolean isCritical)
   {
     return new GenericControl(oid, isCritical, null);
   }
@@ -128,7 +127,7 @@
    *           If {@code oid} was {@code null}.
    */
   public static GenericControl newControl(final String oid,
-      final boolean isCritical, final Object value) throws NullPointerException
+      final boolean isCritical, final Object value)
   {
     return new GenericControl(oid, isCritical, (value == null) ? null
         : ByteString.valueOf(value));

--
Gitblit v1.10.0