From edc595e56216e680d268376e85c7625f2f052b6a Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 09 Jul 2015 08:40:36 +0000
Subject: [PATCH] AutoRefactor'ed Collections
---
opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java b/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java
index bb35755..a20c57d 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java
@@ -837,7 +837,7 @@
if (r instanceof InstantiableRelationDefinition) {
InstantiableRelationDefinition<? super C, ? super S> ir =
(InstantiableRelationDefinition<? super C, ? super S>) r;
- if (elements.size() == 0) {
+ if (elements.isEmpty()) {
return parent().child(ir, nd, "null");
} else {
return parent().child(ir, nd,
@@ -1302,10 +1302,9 @@
* path element does not comprise of an instantiable
* relation.
*/
- @SuppressWarnings("unchecked")
public ManagedObjectPath<C, S> rename(String newName)
throws IllegalStateException {
- if (elements.size() == 0) {
+ if (elements.isEmpty()) {
throw new IllegalStateException("Cannot rename an empty path");
}
--
Gitblit v1.10.0