mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
09.40.2015 edc595e56216e680d268376e85c7625f2f052b6a
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");
    }