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

Nicolas Capponi
08.33.2014 8643a9160860e31611f034467f702eb3a712eb34
opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java
@@ -43,6 +43,7 @@
import javax.naming.NamingException;
import javax.naming.ldap.InitialLdapContext;
import org.forgerock.util.Reject;
import org.opends.messages.Message;
import org.opends.messages.MessageBuilder;
import org.opends.messages.MessageDescriptor;
@@ -165,7 +166,7 @@
   */
  public static String decodeUTF8(final byte[] bytes)
  {
    Validator.ensureNotNull(bytes);
    Reject.ifNull(bytes);
    if (bytes.length == 0)
    {
@@ -3937,7 +3938,7 @@
   */
  public static String wrapText(String text, int width, int indent)
  {
    Validator.ensureTrue(indent >= 0 && indent < width);
    Reject.ifFalse(indent >= 0 && indent < width);
    // Calculate the real width and indentation padding.
    width -= indent;