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-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java
index 042b591..83dc801 100644
--- a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java
+++ b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java
@@ -106,7 +106,7 @@
}
static Attribute jsonToAttribute(final Object value, final AttributeDescription ad,
- final Function<Object, ByteString, NeverThrowsException> f) {
+ final Function<Object, ByteString, ? extends Exception> f) throws Exception {
if (isJsonPrimitive(value)) {
return new LinkedAttribute(ad, f.apply(value));
} else if (value instanceof Collection<?>) {
--
Gitblit v1.10.0