From 9bdba2b5de74b9cdb94b809bebbda7465243ecb9 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 22 Sep 2016 22:06:04 +0000
Subject: [PATCH] OPENDJ-2877: declare RuntimeExceptions in Functions
---
opendj-server-legacy/src/main/java/org/opends/server/protocols/http/rest2ldap/AdminEndpoint.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/rest2ldap/AdminEndpoint.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/rest2ldap/AdminEndpoint.java
index 2519aaa..96093f7 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/rest2ldap/AdminEndpoint.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/rest2ldap/AdminEndpoint.java
@@ -81,7 +81,6 @@
import org.forgerock.services.context.Context;
import org.forgerock.util.Factory;
import org.forgerock.util.Function;
-import org.forgerock.util.promise.NeverThrowsException;
import org.forgerock.util.promise.Promise;
import org.opends.server.api.HttpEndpoint;
import org.opends.server.core.ServerContext;
@@ -344,7 +343,7 @@
final DefinedDefaultBehaviorProvider<?> ddbp = (DefinedDefaultBehaviorProvider) dbp;
final Collection<String> defaultValues = ddbp.getDefaultValues();
final List<Object> decodedDefaultValues = new ArrayList<>(defaultValues.size());
- final Function<String, ?, NeverThrowsException> converter = getConverter(attributeName);
+ final Function<String, ?, ? extends RuntimeException> converter = getConverter(attributeName);
for (final String defaultValue : defaultValues)
{
decodedDefaultValues.add(converter.apply(defaultValue));
@@ -356,7 +355,7 @@
}
}
- private Function<String, ?, NeverThrowsException> getConverter(final String attributeName)
+ private Function<String, ?, ? extends RuntimeException> getConverter(final String attributeName)
{
final AttributeDescription attributeDescription = AttributeDescription.valueOf(attributeName);
final Syntax syntax = attributeDescription.getAttributeType().getSyntax();
--
Gitblit v1.10.0