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

Jean-Noel Rouvignac
19.30.2014 377b2709c64b32fe93905b466482216c2cc0581c
opendj3-server-dev/src/server/org/opends/server/schema/BooleanSyntax.java
@@ -37,8 +37,6 @@
import org.opends.server.api.OrderingMatchingRule;
import org.opends.server.api.SubstringMatchingRule;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.AttributeValue;
import org.opends.server.types.AttributeValues;
import org.opends.server.util.ServerConstants;
import static org.opends.messages.SchemaMessages.*;
@@ -243,12 +241,9 @@
   *
   * @return  The attribute value created from the provided boolean value.
   */
  public static AttributeValue createBooleanValue(boolean b)
  public static ByteString createBooleanValue(boolean b)
  {
    ByteString value = b
        ? ServerConstants.TRUE_VALUE
        : ServerConstants.FALSE_VALUE;
    return AttributeValues.create(value, value);
    return b ? ServerConstants.TRUE_VALUE : ServerConstants.FALSE_VALUE;
  }