From 2db3513be3b17e30e7da092d80718ffe8fcc7351 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 16 Dec 2009 22:58:35 +0000
Subject: [PATCH] Add missing throw declarations.

---
 opendj-sdk/sdk/src/org/opends/sdk/Connections.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/sdk/src/org/opends/sdk/Connections.java b/opendj-sdk/sdk/src/org/opends/sdk/Connections.java
index 4c95187..7e2b110 100644
--- a/opendj-sdk/sdk/src/org/opends/sdk/Connections.java
+++ b/opendj-sdk/sdk/src/org/opends/sdk/Connections.java
@@ -132,6 +132,7 @@
    */
   public static ConnectionFactory<AsynchronousConnection> newHeartBeatConnectionFactory(
       ConnectionFactory<?> factory, long timeout, TimeUnit unit)
+      throws IllegalArgumentException, NullPointerException
   {
     Validator.ensureNotNull(factory, unit);
     Validator.ensureTrue(timeout >= 0, "negative timeout");
@@ -164,7 +165,8 @@
    */
   public static ConnectionFactory<AsynchronousConnection> newHeartBeatConnectionFactory(
       ConnectionFactory<?> factory, long timeout, TimeUnit unit,
-      SearchRequest heartBeat) throws NullPointerException
+      SearchRequest heartBeat) throws IllegalArgumentException,
+      NullPointerException
   {
     Validator.ensureNotNull(factory, unit, heartBeat);
     Validator.ensureTrue(timeout >= 0, "negative timeout");

--
Gitblit v1.10.0