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

Jean-Noel Rouvignac
16.36.2015 be124cd7df8df56616279461f01ef8baea150056
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/datamodel/BinaryValue.java
@@ -29,6 +29,7 @@
import java.io.File;
import java.text.ParseException;
import java.util.Objects;
import org.opends.server.util.Base64;
@@ -178,21 +179,12 @@
    {
      BinaryValue candidate = (BinaryValue)o;
      return candidate.getType() == getType()
          && equal(file, candidate.getFile())
          && Objects.equals(file, candidate.getFile())
          && bytesEqual(candidate);
    }
    return false;
  }
  private boolean equal(File o1, File o2)
  {
    if (o1 == null)
    {
      return o2 == null;
    }
    return o1.equals(o2);
  }
  private boolean bytesEqual(BinaryValue candidate)
  {
    if (type == Type.BASE64_STRING)