# Deprecated API

## Contents

- Deprecated Methods

- Deprecated Methods
  Method and Description
  org.apache.commons.lang3.StringUtils.chomp(String, String) This feature will be removed in Lang 4.0, use `StringUtils.removeEnd(String, String)` instead
  org.apache.commons.lang3.ObjectUtils.equals(Object, Object) this method has been replaced by `java.util.Objects.equals(Object, Object)` in Java 7 and will be removed from future releases.
  org.apache.commons.lang3.exception.ExceptionUtils.getCause(Throwable) This feature will be removed in Lang 4.0
  org.apache.commons.lang3.exception.ExceptionUtils.getCause(Throwable, String[]) This feature will be removed in Lang 4.0
  org.apache.commons.lang3.exception.ExceptionUtils.getDefaultCauseMethodNames() This feature will be removed in Lang 4.0
  org.apache.commons.lang3.ObjectUtils.hashCode(Object) this method has been replaced by `java.util.Objects.hashCode(Object)` in Java 7 and will be removed in future releases
  org.apache.commons.lang3.ObjectUtils.hashCodeMulti(Object...) this method has been replaced by `java.util.Objects.hash(Object...)` in Java 7 an will be removed in future releases.
  org.apache.commons.lang3.ArrayUtils.isEquals(Object, Object) this method has been replaced by `java.util.Objects.deepEquals(Object, Object)` and will be removed from future releases.
  org.apache.commons.lang3.CharUtils.toCharacterObject(char) Java 5 introduced `Character.valueOf(char)` which caches chars 0 through 127.
  org.apache.commons.lang3.StringUtils.toString(byte[], String) use `StringUtils.toEncodedString(byte[], Charset)` instead to String constants in your code
  org.apache.commons.lang3.ObjectUtils.toString(Object) this method has been replaced by `java.util.Objects.toString(Object)` in Java 7 and will be removed in future releases. Note however that said method will return "null" for null references, while this method returns and empty String. To preserve behavior use `java.util.Objects.toString(myObject, "")`
  org.apache.commons.lang3.ObjectUtils.toString(Object, String) this method has been replaced by `java.util.Objects.toString(Object, String)` in Java 7 and will be removed in future releases.

Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.