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/LDAPUrl.java | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPUrl.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPUrl.java
index b863bb1..1db59d2 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPUrl.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPUrl.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2010 Sun Microsystems, Inc.
+ * Portions copyright 2012 ForgeRock AS.
*/
package org.forgerock.opendj.ldap;
@@ -253,7 +254,6 @@
* If {@code url} was {@code null}.
*/
public static LDAPUrl valueOf(final String url)
- throws LocalizedIllegalArgumentException, NullPointerException
{
return valueOf(url, Schema.getDefaultSchema());
}
@@ -276,7 +276,6 @@
* If {@code url} or {@code schema} was {@code null}.
*/
public static LDAPUrl valueOf(final String url, final Schema schema)
- throws LocalizedIllegalArgumentException, NullPointerException
{
Validator.ensureNotNull(url, schema);
return new LDAPUrl(url, schema);
@@ -285,7 +284,7 @@
private static int decodeHex(final String url, final int index,
- final char hexChar) throws LocalizedIllegalArgumentException
+ final char hexChar)
{
if (hexChar >= '0' && hexChar <= '9')
{
@@ -308,7 +307,6 @@
private static void percentDecoder(final String urlString, final int index,
final String s, final StringBuilder decoded)
- throws LocalizedIllegalArgumentException
{
Validator.ensureNotNull(s, decoded);
decoded.append(s);
@@ -392,7 +390,6 @@
*/
public LDAPUrl(final boolean isSecured, final String host,
final Integer port, final DN name)
- throws LocalizedIllegalArgumentException
{
this(isSecured, host, port, name, DEFAULT_SCOPE, DEFAULT_FILTER);
}
@@ -430,7 +427,6 @@
public LDAPUrl(final boolean isSecured, final String host,
final Integer port, final DN name, final SearchScope scope,
final Filter filter, final String... attributes)
- throws LocalizedIllegalArgumentException
{
// The buffer storing the encoded url.
final StringBuilder urlBuffer = new StringBuilder();
@@ -540,7 +536,6 @@
private LDAPUrl(final String urlString, final Schema schema)
- throws LocalizedIllegalArgumentException
{
this.urlString = urlString;
@@ -887,7 +882,7 @@
private int parseHostPort(final String urlString, final String hostAndPort,
- final StringBuilder host) throws LocalizedIllegalArgumentException
+ final StringBuilder host)
{
Validator.ensureNotNull(hostAndPort, port, host);
int urlPort = isSecured ? DEFAULT_SSL_PORT : DEFAULT_PORT;
--
Gitblit v1.10.0