-
Interfaces Interface Description com.google.common.io.InputSupplier ForInputSupplier<? extends InputStream>
, useByteSource
instead. ForInputSupplier<? extends Reader>
, useCharSource
. Implementations ofInputSupplier
that don't fall into one of those categories do not benefit from any of the methods incommon.io
and should use a different interface. This interface is scheduled for removal in December 2015.com.google.common.io.OutputSupplier ForOutputSupplier<? extends OutputStream>
, useByteSink
instead. ForOutputSupplier<? extends Writer>
, useCharSink
. Implementations ofOutputSupplier
that don't fall into one of those categories do not benefit from any of the methods incommon.io
and should use a different interface. This interface is scheduled for removal in December 2015.
-
Classes Class Description com.google.common.base.Objects.ToStringHelper UseMoreObjects.ToStringHelper
instead. This class is scheduled for removal in Guava 21.0.com.google.common.collect.ForwardingBlockingDeque This class has moved tocom.google.common.util.concurrent
. Please useForwardingBlockingDeque
instead.com.google.common.collect.Ranges Use the corresponding method inRange
.com.google.common.collect.TreeTraverser UseTraverser
instead. All instance methods have their equivalent on the result ofTraverser.forTree(tree)
wheretree
implementsSuccessorsFunction
, which has a similar API asTreeTraverser.children(T)
or can be the same lambda function as passed intoTreeTraverser.using(Function)
.This class is scheduled to be removed in October 2019.
-
Exceptions Exceptions Description com.google.common.collect.ComputationException This exception is no longer thrown bycom.google.common
. Previously, it was thrown byMapMaker
computing maps. When support for computing maps was removed fromMapMaker
, it was added toCacheBuilder
, which throwsExecutionException
,UncheckedExecutionException
, andExecutionError
. Any code that is still catchingComputationException
may need to be updated to catch some of those types instead. (Note that this type, though deprecated, is not planned to be removed from Guava.)
-
Fields Field Description com.google.common.base.CharMatcher.ANY UseCharMatcher.any()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.ASCII UseCharMatcher.ascii()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.BREAKING_WHITESPACE UseCharMatcher.breakingWhitespace()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.DIGIT Many digits are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.digit()
instead. This . constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.INVISIBLE Most invisible characters are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.invisible()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.JAVA_DIGIT Many digits are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.javaDigit()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.JAVA_ISO_CONTROL UseCharMatcher.javaIsoControl()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.JAVA_LETTER Most letters are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.javaLetter()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.JAVA_LETTER_OR_DIGIT Most letters and digits are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.javaLetterOrDigit()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.JAVA_LOWER_CASE Some lowercase letters are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.javaLowerCase()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.JAVA_UPPER_CASE Some uppercase letters are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.javaUpperCase()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.NONE UseCharMatcher.none()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.SINGLE_WIDTH Many such characters are supplementary characters; see the class documentation. If you need to use this, useCharMatcher.singleWidth()
instead. This constant is scheduled to be removed in June 2018.com.google.common.base.CharMatcher.WHITESPACE UseCharMatcher.whitespace()
instead. This constant is scheduled to be removed in June 2018.