Deprecated API
Contents
-
Packages Package Description com.day.cq.analytics.sitecatalyst.rsmerger com.mongodb.async com.mongodb.binding com.mongodb.operation
-
Enums Enum Description com.adobe.granite.offloading.api.OffloadingJobProperties As of AEM 6.5, see https://jira.corp.adobe.com/browse/CQ-4256396com.adobe.granite.offloading.api.TopicConfigurationAction As of AEM 6.5, see https://jira.corp.adobe.com/browse/CQ-4256396com.adobe.granite.offloading.workflow.api.JobOffloadingProcessArguments As of AEM 6.5, see https://jira.corp.adobe.com/browse/CQ-4256396com.adobe.granite.offloading.workflow.api.WorkflowOffloadingProcessArguments As of AEM 6.5, see https://jira.corp.adobe.com/browse/CQ-4256396com.adobe.granite.offloading.workflow.api.WorkflowOffloadingProperties As of AEM 6.5, see https://jira.corp.adobe.com/browse/CQ-4256396com.adobe.granite.xss.ProtectionContext UseProtectionContext
instead.com.day.cq.commons.Doctype UseDoctype
insteadcom.day.cq.mcm.emailprovider.types.FormFieldType since 5.6.1com.day.cq.xss.ProtectionContext com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion com.mongodb.AggregationOptions.OutputMode There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.com.mongodb.client.model.AggregationLevel com.mongodb.client.model.changestream.ChangeStreamLevel com.mongodb.operation.OrderBy org.apache.lucene.document.Field.Index This is here only to ease transition from the pre-4.0 APIs.org.apache.lucene.document.Field.TermVector This is here only to ease transition from the pre-4.0 APIs.
-
Exceptions Exceptions Description com.adobe.granite.offloading.api.OffloadingException As of AEM 6.5, see https://jira.corp.adobe.com/browse/CQ-4256396com.day.cq.security.AuthorizableExistsException cq 5.5com.day.cq.security.CqSecurityException cq 5.5com.day.cq.security.NoSuchAuthorizableException cq 5.5com.day.cq.security.NoSuchPrivilegeException cq 5.5com.day.cq.xss.XSSProtectionException com.mongodb.MongoWaitQueueFullException In the next major release the limit on wait queue size will be removed, so this exception will no longer be throwncom.mongodb.util.JSONParseException there is no replacement for this classorg.apache.commons.fileupload.FileUploadBase.UnknownSizeException 1.2 As of commons-fileupload 1.2, the presence of a content-length header is no longer required.org.apache.commons.io.IOExceptionWithCause (since 2.5) useIOException
insteadorg.apache.commons.math.DimensionMismatchException in 2.2 (to be removed in 3.0). Please use its equivalent from packageorg.apache.commons.math.exception
.org.apache.commons.math.estimation.EstimationException as of 2.0, everything in package org.apache.commons.math.estimation has been deprecated and replaced by package org.apache.commons.math.optimization.generalorg.apache.commons.math.optimization.OptimizationException in 2.2 (to be removed in 3.0).org.apache.sling.commons.json.JSONException org.apache.sling.engine.auth.NoAuthenticationHandlerException seeAuthenticator
org.apache.sling.jcr.api.TooManySessionsException Session pooling has been removed and thus this exception is not used any more.org.json.JSONException org.json.JSONPointerException
-
Annotation Types Annotation Type Description com.fasterxml.jackson.databind.jsonschema.JsonSerializableSchema Since 2.15, we recommend use of external JSON Schema generator moduleorg.apache.sling.commons.json.JSONPropertyIgnore org.apache.sling.commons.json.JSONPropertyName org.apache.sling.junit.annotations.TestReference - the {#link TeleporterRule} is a much simpler way of executing server-side tests, including OSGi service injection.
-
Fields Field Description com.adobe.aemds.guide.utils.GuideConstants.GUIDE_ERROR_LIST from 6.3 use GUIDE_ERROR insteadcom.adobe.aemds.guide.utils.GuideConstants.JCR_PATH com.adobe.aemds.guide.utils.GuideConstants.JCR_PRIMARY_TYPE com.adobe.aemds.guide.utils.GuideConstants.RT_GUIDE_DOCUMENT_CONTAINER UseCCMWebChannelConstants
insteadcom.adobe.aemds.guide.utils.GuideConstants.SLING_RESOURCE_SUPER_TYPE com.adobe.aemds.guide.utils.GuideConstants.SLING_RESOURCE_TYPE com.adobe.aemds.guide.utils.NodeStructureUtils.RT_PARSYS com.adobe.cq.dam.cfm.BasicDataType.CONTENT_FRAGMENT UseSemanticDataType.CONTENT_FRAGMENT
insteadcom.adobe.cq.dam.cfm.BasicDataType.JSON UseSemanticDataType.JSON
insteadcom.adobe.cq.sightly.WCMBindings.COMPONENT UseWCMBindingsConstants.NAME_COMPONENT
instead.com.adobe.cq.sightly.WCMBindings.COMPONENT_CONTEXT UseWCMBindingsConstants.NAME_COMPONENT_CONTEXT
instead.com.adobe.cq.sightly.WCMBindings.CURRENT_DESIGN UseWCMBindingsConstants.NAME_CURRENT_DESIGN
instead.com.adobe.cq.sightly.WCMBindings.CURRENT_PAGE UseWCMBindingsConstants.NAME_CURRENT_PAGE
instead.com.adobe.cq.sightly.WCMBindings.CURRENT_STYLE UseWCMBindingsConstants.NAME_CURRENT_STYLE
instead.com.adobe.cq.sightly.WCMBindings.DESIGNER UseWCMBindingsConstants.NAME_DESIGNER
instead.com.adobe.cq.sightly.WCMBindings.EDIT_CONTEXT UseWCMBindingsConstants.NAME_EDIT_CONTEXT
instead.com.adobe.cq.sightly.WCMBindings.PAGE_MANAGER UseWCMBindingsConstants.NAME_PAGE_MANAGER
instead.com.adobe.cq.sightly.WCMBindings.PAGE_PROPERTIES UseWCMBindingsConstants.NAME_PAGE_PROPERTIES
instead.com.adobe.cq.sightly.WCMBindings.PROPERTIES UseWCMBindingsConstants.NAME_PROPERTIES
instead.com.adobe.cq.sightly.WCMBindings.RESOURCE_DESIGN UseWCMBindingsConstants.NAME_RESOURCE_DESIGN
instead.com.adobe.cq.sightly.WCMBindings.RESOURCE_PAGE UseWCMBindingsConstants.NAME_RESOURCE_PAGE
instead.com.adobe.cq.sightly.WCMBindings.XSSAPI UseWCMBindingsConstants.NAME_XSSAPI
instead.com.adobe.granite.maintenance.MaintenanceConstants.SCHEDULE_BIWEEKLY com.adobe.granite.rest.Constants.PN_CONTENTTYPE_POSTFIX has been replaced byConstants.PN_FILE_MIMETYPE
com.adobe.granite.rest.Constants.PN_FILENAME_POSTFIX has been replaced byConstants.PN_FILE_NAME
com.adobe.granite.security.user.UserPropertiesService.PROFILE_PATH useUserPropertiesService.PRIVATE_PROFILE
instead.com.adobe.granite.ui.components.Value.CONTENTPATH_ATTRIBUTE com.adobe.granite.ui.components.Value.FORM_VALUESS_ATTRIBUTE com.adobe.xmp.options.IteratorOptions.INCLUDE_ALIASES it is commonly preferred to work with the base propertiescom.day.cq.analytics.testandtarget.TargetMediator.PN_EXTERNAL_ID com.day.cq.dam.api.DamConstants.DAM_ASSET_NT useDamConstants.NT_DAM_ASSET
insteadcom.day.cq.dam.api.DamConstants.PN_TITLE useDamConstants.DC_TITLE
insteadcom.day.cq.dam.scene7.api.S7ConfigResolver.FXG_SERVER com.day.cq.mcm.campaign.Defs.RT_NEWSLETTER_BASE com.day.cq.replication.AgentConfig.ACCESS_TOKEN_PROVIDER_PID Use ACCESS_TOKEN_PROVIDER_NAMEcom.day.cq.replication.AgentConfig.QUEUE_MAX_RETRIES - this is not used anymore.com.day.cq.replication.ReplicationStatus.NODE_PROPERTY_LAST_PUBLISHED com.day.cq.replication.ReplicationStatus.NODE_PROPERTY_LAST_PUBLISHED_BY com.day.cq.security.Authorizable.PROPERTY_DESCRIPTION no longer stored in the authorizable properties but only in the profilecom.day.cq.security.Authorizable.PROPERTY_EMAIL no longer stored in the authorizable properties but only in the profilecom.day.cq.security.Authorizable.PROPERTY_FIRST_NAME no longer stored in the authorizable properties but only in the profilecom.day.cq.security.Authorizable.PROPERTY_ID UserID is not stored as separate property any more.com.day.cq.security.Authorizable.PROPERTY_LAST_NAME no longer stored in the authorizable properties but only in the profilecom.day.cq.security.Authorizable.PROPERTY_NAME no longer stored in the authorizable properties but only in the profilecom.day.cq.wcm.api.designer.Designer.DEFAULT_DESIGN_PATH since 5.8. useDesigner.getDefaultDesign()
instead.com.day.cq.wcm.api.designer.Designer.DESIGN_HOME since 5.8.com.day.cq.wcm.api.NameConstants.PN_ORDER_BEFORE useorder
insteadcom.day.cq.wcm.api.NameConstants.PN_PAGE_LAST_PUBLISHED com.day.cq.wcm.api.NameConstants.PN_PAGE_LAST_PUBLISHED_BY com.day.cq.wcm.api.NameConstants.PN_PAGE_LAST_REPLICATION_STATUS com.day.cq.wcm.api.NameConstants.PN_VANITY_URL com.day.cq.wcm.designimporter.DesignImporterContext.slingHttpServletRequest Usage of this field has been removed (keeping this field for backward compatibility)com.day.cq.wcm.foundation.forms.FormsConstants.TYPE_PASSWORD com.day.cq.wcm.foundation.forms.FormsConstants.TYPE_TEXT_AREA com.day.cq.wcm.foundation.forms.FormsConstants.TYPE_TEXT_FIELD com.day.cq.wcm.mobile.api.device.capability.DeviceCapability.CAPABILITY_CSS will be removed and privatized, as capabilities are now available viaDeviceMapper.getCapabilities()
com.day.cq.wcm.mobile.api.device.capability.DeviceCapability.CAPABILITY_DEVICEROTATION will be removed and privatized, as capabilities are now available viaDeviceMapper.getCapabilities()
com.day.cq.wcm.mobile.api.device.capability.DeviceCapability.CAPABILITY_IMAGES will be removed and privatized, as capabilities are now available viaDeviceMapper.getCapabilities()
com.day.cq.wcm.mobile.api.device.capability.DeviceCapability.CAPABILITY_JAVASCRIPT will be removed and privatized, as capabilities are now available viaDeviceMapper.getCapabilities()
com.day.cq.wcm.msm.api.RolloutManager.RolloutParams.delete com.day.crx.CRXRepository.REP_CLUSTER_ID Use Sling's discovery API instead - ie by implementing a TopologyEventListenercom.day.crx.CRXRepository.REP_CLUSTER_MASTER Use Sling's discovery API instead - ie by implementing a TopologyEventListenercom.day.crx.CRXRepository.REP_CLUSTER_PREFERRED_MASTER Not applicable to Oak.com.day.crx.CRXRepository.SYSTEM_WORKSPACE_NAME As of CRX 2.0 the automatic initialization of a crx.system workspace is omitted. User data are no stored in each workspace.com.day.image.Dither.DITHER_NONE as of Communiqu� 3.1.0, use com.day.image.DitherOp instead, this class will be removed in the next release.com.day.image.Dither.DITHER_SIMPLE_ERROR_CORRECTION as of Communiqu� 3.1.0, use com.day.image.DitherOp instead, this class will be removed in the next release.com.day.image.font.AbstractFont.TTUNHINTED since cq3com.day.text.AutoFormatter.FORMAT_AUTOLINK this is not implemented and has no effectscom.day.text.AutoFormatter.FORMAT_ISOENC not implemented here, useCodeISO
instead.com.day.text.AutoFormatter.FORMAT_NOISODEC not implemented here, useCodeISO
instead.com.day.text.AutoFormatter.FORMAT_URLENC not implemented here, useCodeISO
orjava.net.URLEncoder#encode(String)
instead.com.day.util.diff.Diff.heuristic com.day.util.diff.Diff.no_discards com.fasterxml.jackson.core.io.ContentReference.DEFAULT_MAX_CONTENT_SNIPPET Since 2.16.ErrorReportConfiguration.DEFAULT_MAX_RAW_CONTENT_LENGTH
will be used instead.com.fasterxml.jackson.core.io.NumberInput.NASTY_SMALL_DOUBLE Since 2.14 -- do not usecom.fasterxml.jackson.core.JsonLocation.MAX_CONTENT_SNIPPET Since 2.13 useErrorReportConfiguration.DEFAULT_MAX_RAW_CONTENT_LENGTH
insteadcom.fasterxml.jackson.core.util.DefaultPrettyPrinter.DEFAULT_ROOT_VALUE_SEPARATOR in 2.16. Use the Separators API instead.com.fasterxml.jackson.databind.PropertyNamingStrategy.KEBAB_CASE Since 2.12 deprecated. UsePropertyNamingStrategies.KEBAB_CASE
instead. See databind#2715 for reasons for deprecation.com.fasterxml.jackson.databind.PropertyNamingStrategy.LOWER_CAMEL_CASE Since 2.12 deprecated. UsePropertyNamingStrategies.LOWER_CAMEL_CASE
instead. See databind#2715 for reasons for deprecation.com.fasterxml.jackson.databind.PropertyNamingStrategy.LOWER_CASE Since 2.12 deprecated. UsePropertyNamingStrategies.LOWER_CASE
instead. See databind#2715 for reasons for deprecation.com.fasterxml.jackson.databind.PropertyNamingStrategy.LOWER_DOT_CASE Since 2.12 deprecated. UsePropertyNamingStrategies.LOWER_DOT_CASE
instead. See databind#2715 for reasons for deprecation.com.fasterxml.jackson.databind.PropertyNamingStrategy.SNAKE_CASE Since 2.12 deprecated. UsePropertyNamingStrategies.SNAKE_CASE
instead. See databind#2715 for reasons for deprecation.com.fasterxml.jackson.databind.PropertyNamingStrategy.UPPER_CAMEL_CASE Since 2.12 deprecated. UsePropertyNamingStrategies.UPPER_CAMEL_CASE
instead. See databind#2715 for reasons for deprecation.com.fasterxml.jackson.databind.ser.SerializerCache.DEFAULT_MAX_CACHED UseSerializerCache.DEFAULT_MAX_CACHE_SIZE
instead.com.mongodb.gridfs.GridFS.MAX_CHUNKSIZE You can calculate max chunkSize with a similar formulaMongo.getMaxBsonObjectSize()
- 500*1000. Please ensure that you left enough space for metadata (500kb is enough).com.mongodb.MongoCredential.MONGODB_CR_MECHANISM This mechanism was replaced byMongoCredential.SCRAM_SHA_1_MECHANISM
in MongoDB 3.0, and is now deprecatedcom.mongodb.QueryOperators.COMMENT com.mongodb.QueryOperators.EXPLAIN com.mongodb.QueryOperators.HINT com.mongodb.QueryOperators.MAX com.mongodb.QueryOperators.MAX_SCAN com.mongodb.QueryOperators.MIN com.mongodb.QueryOperators.ORDER_BY com.mongodb.QueryOperators.RETURN_KEY com.mongodb.QueryOperators.SHOW_DISK_LOC com.mongodb.QueryOperators.SNAPSHOT com.mongodb.WriteConcern.FSYNC_SAFE PreferWriteConcern.JOURNALED
com.mongodb.WriteConcern.FSYNCED PreferWriteConcern.JOURNALED
com.mongodb.WriteConcern.JOURNAL_SAFE PreferWriteConcern.JOURNALED
com.mongodb.WriteConcern.NORMAL PreferWriteConcern.UNACKNOWLEDGED
com.mongodb.WriteConcern.REPLICA_ACKNOWLEDGED Prefer WriteConcern#W2com.mongodb.WriteConcern.REPLICAS_SAFE PreferWriteConcern.W2
com.mongodb.WriteConcern.SAFE PreferWriteConcern.ACKNOWLEDGED
com.sun.mail.imap.IMAPFolder.FetchProfileItem.SIZE opennlp.tools.ml.maxent.GISTrainer.OLD_LL_THRESHOLD_PARAM opennlp.tools.tokenize.TokenizerME.alphaNumeric As of release 1.5.2, replaced byFactory.getAlphanumeric(String)
org.apache.abdera.util.Constants.APP_NS_PRE_RFC Use Constants.APP_NS insteadorg.apache.abdera.util.Constants.CONTROL_NS org.apache.abdera.util.Constants.PRE_RFC_ACCEPT org.apache.abdera.util.Constants.PRE_RFC_CATEGORIES org.apache.abdera.util.Constants.PRE_RFC_COLLECTION org.apache.abdera.util.Constants.PRE_RFC_CONTROL org.apache.abdera.util.Constants.PRE_RFC_DRAFT org.apache.abdera.util.Constants.PRE_RFC_EDITED org.apache.abdera.util.Constants.PRE_RFC_SERVICE org.apache.abdera.util.Constants.PRE_RFC_WORKSPACE org.apache.commons.codec.Charsets.ISO_8859_1 UseStandardCharsets.ISO_8859_1
instead.org.apache.commons.codec.Charsets.US_ASCII UseStandardCharsets.US_ASCII
instead.org.apache.commons.codec.Charsets.UTF_16 UseStandardCharsets.UTF_16
instead.org.apache.commons.codec.Charsets.UTF_16BE UseStandardCharsets.UTF_16BE
instead.org.apache.commons.codec.Charsets.UTF_16LE UseStandardCharsets.UTF_16LE
instead.org.apache.commons.codec.Charsets.UTF_8 UseStandardCharsets.UTF_8
instead.org.apache.commons.codec.digest.MurmurHash3.NULL_HASHCODE This is not used internally and will be removed in a future release.org.apache.commons.compress.archivers.tar.TarArchiveEntry.MILLIS_PER_SECOND Unused.org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.EFS_FLAG useGeneralPurposeBit.UFT8_NAMES_FLAG
insteadorg.apache.commons.compress.utils.Charsets.ISO_8859_1 replaced byStandardCharsets
in Java 7org.apache.commons.compress.utils.Charsets.US_ASCII replaced byStandardCharsets
in Java 7org.apache.commons.compress.utils.Charsets.UTF_16 replaced byStandardCharsets
in Java 7org.apache.commons.compress.utils.Charsets.UTF_16BE replaced byStandardCharsets
in Java 7org.apache.commons.compress.utils.Charsets.UTF_16LE replaced byStandardCharsets
in Java 7org.apache.commons.compress.utils.Charsets.UTF_8 replaced byStandardCharsets
in Java 7org.apache.commons.fileupload.FileUploadBase.MAX_HEADER_SIZE This constant is no longer used. As of commons-fileupload 1.2, the only applicable limit is the total size of a parts headers,MultipartStream.HEADER_PART_SIZE_MAX
.org.apache.commons.httpclient.HttpState.PREEMPTIVE_DEFAULT This field and feature will be removed following HttpClient 3.0.org.apache.commons.httpclient.HttpState.PREEMPTIVE_PROPERTY This field and feature will be removed following HttpClient 3.0.org.apache.commons.io.Charsets.ISO_8859_1 Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.US_ASCII Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_16 Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_16BE Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_16LE Use Java 7'sStandardCharsets
org.apache.commons.io.Charsets.UTF_8 Use Java 7'sStandardCharsets
org.apache.commons.io.file.PathUtils.NOFOLLOW_LINK_OPTION_ARRAY org.apache.commons.io.filefilter.FileFileFilter.FILE org.apache.commons.io.HexDump.EOL UseSystem.lineSeparator()
.org.apache.commons.io.input.ClosedInputStream.CLOSED_INPUT_STREAM org.apache.commons.io.input.ClosedReader.CLOSED_READER org.apache.commons.io.IOUtils.LINE_SEPARATOR UseSystem.lineSeparator()
.org.apache.commons.io.output.ClosedOutputStream.CLOSED_OUTPUT_STREAM org.apache.commons.io.output.ClosedWriter.CLOSED_WRITER org.apache.commons.io.output.NullOutputStream.NULL_OUTPUT_STREAM org.apache.commons.io.output.NullPrintStream.NULL_PRINT_STREAM org.apache.commons.io.output.NullWriter.NULL_WRITER UseNullWriter.INSTANCE
.org.apache.commons.lang.time.DateUtils.MILLIS_IN_DAY Use MILLIS_PER_DAY. This will be removed in Commons Lang 3.0.org.apache.commons.lang.time.DateUtils.MILLIS_IN_HOUR Use MILLIS_PER_HOUR. This will be removed in Commons Lang 3.0.org.apache.commons.lang.time.DateUtils.MILLIS_IN_MINUTE Use MILLIS_PER_MINUTE. This will be removed in Commons Lang 3.0.org.apache.commons.lang.time.DateUtils.MILLIS_IN_SECOND Use MILLIS_PER_SECOND. This will be removed in Commons Lang 3.0.org.apache.commons.lang3.StringEscapeUtils.ESCAPE_XML useStringEscapeUtils.ESCAPE_XML10
orStringEscapeUtils.ESCAPE_XML11
instead.org.apache.commons.lang3.SystemUtils.FILE_SEPARATOR UseFile.separator
, since it is guaranteed to be a string containing a single character and it does not require a privilege check.org.apache.commons.lang3.SystemUtils.IS_JAVA_1_9 As of release 3.5, replaced bySystemUtils.IS_JAVA_9
org.apache.commons.lang3.SystemUtils.JAVA_HOME_KEY org.apache.commons.lang3.SystemUtils.JAVA_IO_TMPDIR_KEY org.apache.commons.lang3.SystemUtils.LINE_SEPARATOR UseSystem.lineSeparator()
instead, since it does not require a privilege check.org.apache.commons.lang3.SystemUtils.PATH_SEPARATOR UseFile.pathSeparator
, since it is guaranteed to be a string containing a single character and it does not require a privilege check.org.apache.commons.lang3.SystemUtils.USER_DIR_KEY org.apache.commons.lang3.SystemUtils.USER_NAME_KEY org.apache.commons.lang3.ThreadUtils.ALWAYS_TRUE_PREDICATE Use aPredicate
.org.apache.commons.lang3.time.DateFormatUtils.ISO_DATE_FORMAT - as of 4.0, ISO_DATE_FORMAT will be replaced by ISO_8601_EXTENDED_DATE_FORMAT.org.apache.commons.lang3.time.DateFormatUtils.ISO_DATE_TIME_ZONE_FORMAT - as of 4.0, ISO_DATE_TIME_ZONE_FORMAT will be removed.org.apache.commons.lang3.time.DateFormatUtils.ISO_DATETIME_FORMAT - as of 4.0, ISO_DATETIME_FORMAT will be replaced by ISO_8601_EXTENDED_DATETIME_FORMAT.org.apache.commons.lang3.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT - as of 4.0, ISO_DATETIME_TIME_ZONE_FORMAT will be replaced by ISO_8601_EXTENDED_DATETIME_TIME_ZONE_FORMAT.org.apache.commons.lang3.time.DateFormatUtils.ISO_TIME_FORMAT - as of 4.0, ISO_TIME_FORMAT will be removed.org.apache.commons.lang3.time.DateFormatUtils.ISO_TIME_NO_T_FORMAT - as of 4.0, ISO_TIME_NO_T_FORMAT will be replaced by ISO_8601_EXTENDED_TIME_FORMAT.org.apache.commons.lang3.time.DateFormatUtils.ISO_TIME_NO_T_TIME_ZONE_FORMAT - as of 4.0, ISO_TIME_NO_T_TIME_ZONE_FORMAT will be replaced by ISO_8601_EXTENDED_TIME_TIME_ZONE_FORMAT.org.apache.commons.lang3.time.DateFormatUtils.ISO_TIME_TIME_ZONE_FORMAT - as of 4.0, ISO_TIME_TIME_ZONE_FORMAT will be removed.org.apache.commons.mail.Email.ATTACHMENTS since 1.3, useEmailConstants.ATTACHMENTS
insteadorg.apache.commons.mail.Email.CONTENT_TYPE since 1.3, useEmailConstants.CONTENT_TYPE
insteadorg.apache.commons.mail.Email.EMAIL_BODY since 1.3, useEmailConstants.EMAIL_BODY
insteadorg.apache.commons.mail.Email.EMAIL_SUBJECT since 1.3, useEmailConstants.EMAIL_SUBJECT
insteadorg.apache.commons.mail.Email.FILE_SERVER since 1.3, useEmailConstants.FILE_SERVER
insteadorg.apache.commons.mail.Email.ISO_8859_1 since 1.3, useEmailConstants.ISO_8859_1
insteadorg.apache.commons.mail.Email.KOI8_R since 1.3, useEmailConstants.KOI8_R
insteadorg.apache.commons.mail.Email.MAIL_DEBUG since 1.3, useEmailConstants.MAIL_DEBUG
insteadorg.apache.commons.mail.Email.MAIL_HOST since 1.3, useEmailConstants.MAIL_HOST
insteadorg.apache.commons.mail.Email.MAIL_PORT since 1.3, useEmailConstants.MAIL_PORT
insteadorg.apache.commons.mail.Email.MAIL_SMTP_AUTH since 1.3, useEmailConstants.MAIL_SMTP_AUTH
insteadorg.apache.commons.mail.Email.MAIL_SMTP_CONNECTIONTIMEOUT since 1.3, useEmailConstants.MAIL_SMTP_CONNECTIONTIMEOUT
insteadorg.apache.commons.mail.Email.MAIL_SMTP_FROM since 1.3, useEmailConstants.MAIL_SMTP_FROM
insteadorg.apache.commons.mail.Email.MAIL_SMTP_PASSWORD since 1.3, useEmailConstants.MAIL_SMTP_PASSWORD
insteadorg.apache.commons.mail.Email.MAIL_SMTP_SOCKET_FACTORY_CLASS since 1.3, useEmailConstants.MAIL_SMTP_SOCKET_FACTORY_CLASS
insteadorg.apache.commons.mail.Email.MAIL_SMTP_SOCKET_FACTORY_FALLBACK since 1.3, useEmailConstants.MAIL_SMTP_SOCKET_FACTORY_FALLBACK
insteadorg.apache.commons.mail.Email.MAIL_SMTP_SOCKET_FACTORY_PORT since 1.3, useEmailConstants.MAIL_SMTP_SOCKET_FACTORY_PORT
insteadorg.apache.commons.mail.Email.MAIL_SMTP_TIMEOUT since 1.3, useEmailConstants.MAIL_SMTP_TIMEOUT
insteadorg.apache.commons.mail.Email.MAIL_SMTP_USER since 1.3, useEmailConstants.MAIL_SMTP_USER
insteadorg.apache.commons.mail.Email.MAIL_TRANSPORT_PROTOCOL since 1.3, useEmailConstants.MAIL_TRANSPORT_PROTOCOL
insteadorg.apache.commons.mail.Email.MAIL_TRANSPORT_TLS since 1.3, useEmailConstants.MAIL_TRANSPORT_TLS
insteadorg.apache.commons.mail.Email.RECEIVER_EMAIL since 1.3, useEmailConstants.RECEIVER_EMAIL
insteadorg.apache.commons.mail.Email.RECEIVER_NAME since 1.3, useEmailConstants.RECEIVER_NAME
insteadorg.apache.commons.mail.Email.SENDER_EMAIL since 1.3, useEmailConstants.SENDER_EMAIL
insteadorg.apache.commons.mail.Email.SENDER_NAME since 1.3, useEmailConstants.SENDER_NAME
insteadorg.apache.commons.mail.Email.SMTP since 1.3, useEmailConstants.SMTP
insteadorg.apache.commons.mail.Email.TEXT_HTML since 1.3, useEmailConstants.TEXT_HTML
insteadorg.apache.commons.mail.Email.TEXT_PLAIN since 1.3, useEmailConstants.TEXT_PLAIN
insteadorg.apache.commons.mail.Email.US_ASCII since 1.3, useEmailConstants.US_ASCII
insteadorg.apache.commons.mail.EmailConstants.ATTACHMENTS since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.CONTENT_TYPE since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.EMAIL_BODY since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.EMAIL_SUBJECT since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.FILE_SERVER since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.MAIL_TRANSPORT_TLS since 1.3org.apache.commons.mail.EmailConstants.RECEIVER_EMAIL since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.RECEIVER_NAME since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.SENDER_EMAIL since 1.3, not in use since 1.0org.apache.commons.mail.EmailConstants.SENDER_NAME since 1.3, not in use since 1.0org.apache.felix.webconsole.AbstractWebConsolePlugin.ATTR_FILEUPLOAD Use the Servlet API for uploadsorg.apache.felix.webconsole.AbstractWebConsolePlugin.ATTR_FILEUPLOAD_REPO Use the Servlet API for uploadsorg.apache.felix.webconsole.ConfigurationPrinter.PROPERTY_MODES org.apache.felix.webconsole.WebConsoleConstants.ATTR_CONSOLE_VARIABLE_RESOLVER UseRequestVariableResolver.REQUEST_ATTRIBUTE
insteadorg.apache.felix.webconsole.WebConsoleConstants.ATTR_LABEL_MAP Plugins should never create a navigation themselvesorg.apache.felix.webconsole.WebConsoleConstants.ATTR_LANG_MAP Plugins should never create a navigation themselvesorg.apache.felix.webconsole.WebConsoleConstants.CONFIG_PRINTER_MODES Use the Apache Felix Inventory APIorg.apache.felix.webconsole.WebConsoleConstants.CONFIG_PRINTER_WEB_UNESCAPED Use the Apache Felix Inventory APIorg.apache.jackrabbit.oak.Oak.OakDefaultComponents.INSTANCE create a new instance ofOak.OakDefaultComponents
instead.org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexConstants.INDEX_PATH With OAK-4152 no need to explicitly define indexPath propertyorg.apache.jackrabbit.oak.spi.security.user.UserConstants.NT_REP_MEMBERS org.apache.jackrabbit.vault.packaging.PackageId.ETC_PACKAGES As of 3.1.42, the storage location is implementation details.org.apache.jackrabbit.vault.packaging.PackageId.ETC_PACKAGES_PREFIX As of 3.1.42, the storage location is implementation details.org.apache.jackrabbit.webdav.version.WorkspaceResource.CUURENT_ACTIVITY_SET UseWorkspaceResource.CURRENT_ACTIVITY_SET
instead.org.apache.log4j.helpers.LogLog.CONFIG_DEBUG_KEY UseLogLog.DEBUG_KEY
instead.org.apache.log4j.Priority.DEBUG UseLevel.DEBUG
instead.org.apache.log4j.Priority.ERROR UseLevel.ERROR
instead.org.apache.log4j.Priority.FATAL UseLevel.FATAL
instead.org.apache.log4j.Priority.INFO UseLevel.INFO
instead.org.apache.log4j.Priority.WARN UseLevel.WARN
instead.org.apache.lucene.search.FieldCache.DEFAULT_BYTE_PARSER org.apache.lucene.search.FieldCache.DEFAULT_DOUBLE_PARSER org.apache.lucene.search.FieldCache.DEFAULT_FLOAT_PARSER org.apache.lucene.search.FieldCache.DEFAULT_INT_PARSER org.apache.lucene.search.FieldCache.DEFAULT_LONG_PARSER org.apache.lucene.search.FieldCache.DEFAULT_SHORT_PARSER org.apache.lucene.search.FuzzyQuery.defaultMinSimilarity pass integer edit distances instead.org.apache.lucene.store.FSDirectory.DEFAULT_READ_CHUNK_SIZE This constant is no longer used since Lucene 4.5.org.apache.lucene.util.Constants.JRE_IS_MINIMUM_JAVA6 With Lucene 4.0, we are always on Java 6org.apache.sling.api.resource.ResourceMetadata.INTERNAL_CONTINUE_RESOLVING This flag is not supported anymore when implementing the SPI basedorg.apache.sling.spi.resource.provider.ResourceProvider
org.apache.sling.api.resource.ResourceResolver.REQUEST_ATTR_WORKSPACE_INFO org.apache.sling.api.SlingConstants.PROPERTY_ADAPTABLE_CLASSES Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption
.org.apache.sling.api.SlingConstants.PROPERTY_ADAPTER_CLASSES Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption
.org.apache.sling.api.SlingConstants.TOPIC_ADAPTER_FACTORY_ADDED Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption
.org.apache.sling.api.SlingConstants.TOPIC_ADAPTER_FACTORY_REMOVED Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption
.org.apache.sling.api.SlingConstants.TOPIC_RESOURCE_ADDED Register aResourceChangeListener
insteadorg.apache.sling.api.SlingConstants.TOPIC_RESOURCE_CHANGED Register aResourceChangeListener
insteadorg.apache.sling.api.SlingConstants.TOPIC_RESOURCE_REMOVED Register aResourceChangeListener
insteadorg.apache.sling.engine.EngineConstants.FILTER_ORDER Use"service.ranking"
(org.osgi.framework.Constants.SERVICE_RANKING) insteadorg.apache.sling.engine.EngineConstants.FILTER_SCOPE UseEngineConstants.SLING_FILTER_SCOPE
insteadorg.apache.sling.engine.EngineConstants.SESSION as of bundle version 2.1org.apache.sling.engine.EngineConstants.SLING_CURRENT_SERVLET_NAME org.apache.sling.engine.EngineConstants.SLING_HOME org.apache.sling.engine.EngineConstants.SLING_HOME_URL org.apache.sling.engine.EngineConstants.SLING_SERLVET_NAME org.apache.sling.jcr.base.util.RepositoryAccessor.JNDI_PREFIX org.apache.sling.jcr.base.util.RepositoryAccessor.RMI_PREFIX org.apache.tika.metadata.IPTC.CATEGORY org.apache.tika.metadata.IPTC.COPYRIGHT_OWNER_ID_WRONG_CASE org.apache.tika.metadata.IPTC.DIGITAL_SOURCE_FILE_TYPE org.apache.tika.metadata.IPTC.IMAGE_CREATOR_ID_WRONG_CASE org.apache.tika.metadata.IPTC.IMAGE_SUPPLIER_ID_WRONG_CASE org.apache.tika.metadata.IPTC.LICENSOR_ID_WRONG_CASE useIPTC.LICENSOR_ID
org.apache.tika.metadata.IPTC.SUPPLEMENTAL_CATEGORIES org.apache.tika.metadata.IPTC.URGENCY org.apache.tika.metadata.Metadata.CONTRIBUTOR use TikaCoreProperties#CONTRIBUTORorg.apache.tika.metadata.Metadata.COVERAGE use TikaCoreProperties#COVERAGEorg.apache.tika.metadata.Metadata.CREATOR use TikaCoreProperties#CREATORorg.apache.tika.metadata.Metadata.DATE use TikaCoreProperties#CREATEDorg.apache.tika.metadata.Metadata.DESCRIPTION use TikaCoreProperties#DESCRIPTIONorg.apache.tika.metadata.Metadata.FORMAT use TikaCoreProperties#FORMATorg.apache.tika.metadata.Metadata.IDENTIFIER use TikaCoreProperties#IDENTIFIERorg.apache.tika.metadata.Metadata.LANGUAGE use TikaCoreProperties#LANGUAGEorg.apache.tika.metadata.Metadata.MODIFIED use TikaCoreProperties#MODIFIEDorg.apache.tika.metadata.Metadata.PUBLISHER use TikaCoreProperties#PUBLISHERorg.apache.tika.metadata.Metadata.RELATION use TikaCoreProperties#RELATIONorg.apache.tika.metadata.Metadata.RIGHTS use TikaCoreProperties#RIGHTSorg.apache.tika.metadata.Metadata.SOURCE use TikaCoreProperties#SOURCEorg.apache.tika.metadata.Metadata.SUBJECT use TikaCoreProperties#KEYWORDSorg.apache.tika.metadata.Metadata.TITLE use TikaCoreProperties#TITLEorg.apache.tika.metadata.Metadata.TYPE use TikaCoreProperties#TYPEorg.apache.tika.metadata.MSOffice.APPLICATION_NAME org.apache.tika.metadata.MSOffice.APPLICATION_VERSION org.apache.tika.metadata.MSOffice.AUTHOR org.apache.tika.metadata.MSOffice.CATEGORY org.apache.tika.metadata.MSOffice.CHARACTER_COUNT org.apache.tika.metadata.MSOffice.CHARACTER_COUNT_WITH_SPACES org.apache.tika.metadata.MSOffice.COMMENTS org.apache.tika.metadata.MSOffice.COMPANY org.apache.tika.metadata.MSOffice.CONTENT_STATUS org.apache.tika.metadata.MSOffice.CREATION_DATE org.apache.tika.metadata.MSOffice.IMAGE_COUNT org.apache.tika.metadata.MSOffice.KEYWORDS org.apache.tika.metadata.MSOffice.LAST_AUTHOR org.apache.tika.metadata.MSOffice.LAST_PRINTED org.apache.tika.metadata.MSOffice.LAST_SAVED org.apache.tika.metadata.MSOffice.LINE_COUNT org.apache.tika.metadata.MSOffice.MANAGER org.apache.tika.metadata.MSOffice.NOTES org.apache.tika.metadata.MSOffice.OBJECT_COUNT org.apache.tika.metadata.MSOffice.PAGE_COUNT org.apache.tika.metadata.MSOffice.PARAGRAPH_COUNT org.apache.tika.metadata.MSOffice.PRESENTATION_FORMAT org.apache.tika.metadata.MSOffice.REVISION_NUMBER org.apache.tika.metadata.MSOffice.SECURITY org.apache.tika.metadata.MSOffice.SLIDE_COUNT org.apache.tika.metadata.MSOffice.TABLE_COUNT org.apache.tika.metadata.MSOffice.TEMPLATE org.apache.tika.metadata.MSOffice.TOTAL_TIME org.apache.tika.metadata.MSOffice.VERSION org.apache.tika.metadata.MSOffice.WORD_COUNT org.apache.tika.metadata.TikaCoreProperties.TRANSITION_KEYWORDS_TO_DC_SUBJECT use TikaCoreProperties#KEYWORDSorg.apache.tika.metadata.TikaCoreProperties.TRANSITION_SUBJECT_TO_DC_DESCRIPTION use TikaCoreProperties#DESCRIPTIONorg.apache.tika.metadata.TikaCoreProperties.TRANSITION_SUBJECT_TO_DC_TITLE use TikaCoreProperties#TITLEorg.apache.tika.metadata.TikaCoreProperties.TRANSITION_SUBJECT_TO_OO_SUBJECT use OfficeOpenXMLCore#SUBJECTorg.apache.tika.parser.pdf.PDFParser.PASSWORD Supply aPasswordProvider
on theParseContext
insteadorg.apache.tika.parser.RecursiveParserWrapper.EMBEDDED_EXCEPTION org.apache.tika.parser.RecursiveParserWrapper.EMBEDDED_RESOURCE_LIMIT_REACHED org.apache.tika.parser.RecursiveParserWrapper.EMBEDDED_RESOURCE_PATH org.apache.tika.parser.RecursiveParserWrapper.PARSE_TIME_MILLIS org.apache.tika.parser.RecursiveParserWrapper.TIKA_CONTENT org.apache.tika.parser.RecursiveParserWrapper.WRITE_LIMIT_REACHED org.mozilla.javascript.Context.FEATURE_PARENT_PROTO_PROPRTIES In previous releases, this name was given to FEATURE_PARENT_PROTO_PROPERTIES.org.osgi.service.log.LogService.LOG_DEBUG Since 1.4. Replaced byLogLevel.DEBUG
.org.osgi.service.log.LogService.LOG_ERROR Since 1.4. Replaced byLogLevel.ERROR
.org.osgi.service.log.LogService.LOG_INFO Since 1.4. Replaced byLogLevel.INFO
.org.osgi.service.log.LogService.LOG_WARNING Since 1.4. Replaced byLogLevel.WARN
.
-
Methods Method Description com.adobe.aem.wcm.seo.sitemap.PageTreeSitemapGenerator.isNoIndex(Page) usePageTreeSitemapGenerator.shouldInclude(Resource)
insteadcom.adobe.aem.wcm.seo.sitemap.PageTreeSitemapGenerator.isProtected(Page) usePageTreeSitemapGenerator.shouldInclude(Resource)
insteadcom.adobe.aem.wcm.seo.sitemap.PageTreeSitemapGenerator.isPublished(Page) usePageTreeSitemapGenerator.shouldInclude(Resource)
insteadcom.adobe.aem.wcm.seo.sitemap.PageTreeSitemapGenerator.isRedirect(Page) usePageTreeSitemapGenerator.shouldInclude(Resource)
insteadcom.adobe.aemds.guide.common.GuideButton.getButtonSize() Done to support forms created uptill 6.1 FP1com.adobe.aemds.guide.common.GuideContainer.getSchemaType() com.adobe.aemds.guide.common.GuideContainer.getXdpRef() com.adobe.aemds.guide.common.GuideContainer.getXsdRef() com.adobe.aemds.guide.common.GuideNode.externalize(String) com.adobe.aemds.guide.common.GuideNode.isDocumentFragmentGroup() com.adobe.aemds.guide.common.GuideNode.setResource(Resource) use the init APIcom.adobe.aemds.guide.common.GuideValidationResult.setGuideErrorList(List<GuideError>) from 6.3 use setGuideErrorList(ListguideErrorList, GuideSubmitErrorCause errorCausedBy) instead. com.adobe.aemds.guide.service.GuideModelTransformer.exportGuideDataJson(Resource, String, I18n) use the getDataJson APIcom.adobe.aemds.guide.service.GuideModelTransformer.exportGuideDataJsonFromDataRef(Resource, String, I18n) use the getDataJson APIcom.adobe.aemds.guide.service.GuideModelTransformer.exportGuideJson(Resource, I18n) com.adobe.aemds.guide.service.GuideModelTransformer.exportGuideJsonObject(Resource) com.adobe.aemds.guide.service.GuideModelTransformer.validate(String, Resource, String, String, String, String) com.adobe.aemds.guide.servlet.GuideSubmitServlet.getReqAttrPdfName(SlingHttpServletRequest) com.adobe.aemds.guide.servlet.GuideSubmitServlet.setForwardPath(SlingHttpServletRequest, String, String, String) As of release 6.2, replaced by {@see com.adobe.aemds.guide.utils.GuideSubmitUtils#setForwardPath}com.adobe.aemds.guide.utils.GuideModelUtils.getDataForDORMerge(Document, Document, Resource) com.adobe.aemds.guide.utils.GuidePropertyProviderUtils.fetchEsignCloudServiceConfiguration(String) com.adobe.aemds.guide.utils.GuidePropertyProviderUtils.fetchRecaptchaCloudServiceConfiguration(String) com.adobe.aemds.guide.utils.GuideThemeUtils.addTypekitConfigurations(JSONArray, ResourceResolver) com.adobe.aemds.guide.utils.GuideUtils.addToRequestMap(ParameterMap, String, RequestParameter[]) com.adobe.aemds.guide.utils.GuideUtils.getSchemaType(JSONObject) UseGuideContainer.getSchemaType()
insteadcom.adobe.aemds.guide.utils.XMLUtils.docToStr(Document) com.adobe.aemds.guide.utils.XMLUtils.exportDocumentFromDataRef(String, DocumentBuilder, FormDataXMLProviderRegistry, ResourceResolverHelper) com.adobe.aemds.guide.utils.XMLUtils.getDataRefInputStream(String, FormDataXMLProviderRegistry, ResourceResolverHelper) com.adobe.cq.dam.cfm.ContentFragmentManager.create(Resource, Resource, String, String) com.adobe.cq.dam.cfm.DataType.getTypeString() com.adobe.cq.launches.api.Launch.getSourceRootResource() com.adobe.cq.launches.api.Launch.isDeep() com.adobe.cq.sightly.WCMUsePojo.getInheritedProperties() since 3.1.0; please switch toWCMUsePojo.getInheritedPageProperties()
com.adobe.cq.ui.wcm.commons.config.NextGenDynamicMediaConfig.getImsEnv() No replacement. IMSenv is an invalid property from asset selector's point of view. The IMS environment is determined solely on the basis of env property which accepts values as STAGE or PROD.com.adobe.cq.ui.wcm.commons.config.NextGenDynamicMediaConfig.getImsOrg() No replacement. IMS Org need not be sent to discovery service. The access is determined based on the repository ID.com.adobe.cq.wcm.launches.utils.LaunchUtils.buildLaunchResourcePath(String, String) since 6.0.0com.adobe.cq.wcm.launches.utils.LaunchUtils.getLaunchPath(String) since 6.0.0 - useLaunchUtils.getLaunchResource(Resource)
instead.com.adobe.cq.wcm.launches.utils.LaunchUtils.getLaunchPathFromName(String) since 6.0.0com.adobe.cq.wcm.launches.utils.LaunchUtils.getProductionResource(Resource) com.adobe.cq.wcm.launches.utils.LaunchUtils.getProductionResourcePath(String) since 6.0.0com.adobe.forms.common.service.FileAttachmentWrapper.getFileName() com.adobe.forms.common.service.FormDataXMLProvider.getDataXMLForDataRef(String) com.adobe.forms.common.service.FormDataXMLProviderRegistry.getDataXMLFromService(String) com.adobe.forms.common.service.PrefillData.getFileAttachmentMap() com.adobe.forms.common.utils.AuthUtils.isAnonymousLogin(String) com.adobe.granite.activitystreams.ActivityManager.getTopicStream(Resource, String) since 0.0.8. useActivityManager.getStream(org.apache.sling.api.resource.Resource, String, boolean)
instead.com.adobe.granite.activitystreams.ActivityManager.getUserStream(ResourceResolver, String, String) since 0.0.8. useActivityManager.getUserStream(org.apache.sling.api.resource.ResourceResolver, String, String, boolean)
instead.com.adobe.granite.activitystreams.ActivityStream.isDefaultUserStream() since 0.0.8. useActivityStream.isDefaultStream()
instead.com.adobe.granite.asset.api.Asset.setRelation(String, String) As of 1.3, please useAsset.addRelation(String, String)
com.adobe.granite.maintenance.MaintenanceTaskInfo.getSchedule() com.adobe.granite.omnisearch.commons.AbstractOmniSearchHandler.destroy(ResourceResolver) Removed without replacement (it always was an empty method)com.adobe.granite.omnisearch.commons.AbstractOmniSearchHandler.init(ResourceResolver) Useinitialize
instead.com.adobe.granite.security.user.UserPropertiesComposite.getAuthorizableId() com.adobe.granite.security.user.UserPropertiesComposite.getProperty(String) com.adobe.granite.security.user.UserPropertiesComposite.getPropertyNames() com.adobe.granite.security.user.UserPropertiesComposite.getUserProperties() com.adobe.granite.security.user.UserPropertiesComposite.getUserPropertiesPaths() UseUserProperties.getAggregatedUserProperties()
to obtain the paths.com.adobe.granite.security.user.UserPropertiesManager.getUserPropertiesComposite(String, String[]) com.adobe.granite.security.user.util.AuthorizableUtil.getName(Authorizable) since AEM6.4 because it is not multiple profile aware. Please useAuthorizableUtil.getFormattedName(ResourceResolver, Authorizable)
com.adobe.granite.socialgraph.GraphNode.isVirtual() virtual nodes are no longer supported.com.adobe.granite.toggle.api.ToggleRouter.getAPIKey() com.adobe.granite.translation.api.TranslationManager.createTranslationService(String) com.adobe.granite.translation.api.TranslationManager.getAvailableFactoryNames() com.adobe.granite.translation.api.TranslationMetadata.isSupportingObjectTranslationRequired() com.adobe.granite.translation.api.TranslationObject.getSupportingTranslationObjectsCount() com.adobe.granite.translation.api.TranslationObject.getTranslationObjectInputStream() UseTranslationObject.getTranslationObjectXMLInputStream()
instead. Gets XML input stream for the Translation Object to be translated.com.adobe.granite.translation.core.MachineTranslationCloudConfig.getDefaultCategory() com.adobe.granite.translation.core.MachineTranslationCloudConfig.getDefaultTranslationProvider() com.adobe.granite.translation.core.MachineTranslationCloudConfig.getUgcPath() com.adobe.granite.translation.core.TranslationCloudConfigUtil.getCloudConfigObjectFromPath(Class<?>, String) since 6.4, useTranslationCloudConfigUtil.getCloudConfigObjectFromPath(Resource, Class, String)
insteadcom.adobe.granite.ui.clientlibs.HtmlLibrary.send(HttpServletResponse, boolean) com.adobe.granite.workflow.core.event.EventPublishUtil.publishExternalProcessJobEvent(Map, Integer, String) com.adobe.granite.workflow.core.event.EventPublishUtil.publishJobEvent(Map, Integer, int, String) com.adobe.granite.workflow.core.event.EventPublishUtil.publishResetTimeoutEvent(WorkItem) com.adobe.granite.workflow.core.event.EventPublishUtil.publishTimeoutEvent(WorkItem, WorkflowSession) com.adobe.granite.workflow.launcher.ConfigEntry.getWhereClause() use #getWhereClauses()com.adobe.granite.workflow.launcher.ConfigEntry.setWhereClause(String) use #setWhereClausescom.adobe.granite.xss.XSSAPI.getValidHref(String, boolean) com.adobe.versioncue.nativecomm.IRequest.processPool() useIRequest.service()
insteadcom.adobe.versioncue.nativecomm.IResult.processPool() useIResult.service()
insteadcom.adobe.xmp.schema.service.RelaxNGProvider.getNamespaces() TODO Check if this is really needed.com.day.cq.analytics.sitecatalyst.SitecatalystHttpClient.execute(URI, String, Configuration) com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.checkCredentials(String, String, String) com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.deleteClassifications(Configuration, String, String[], int, int) This method was used to support SAINT which is now deprecated.com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.getClassifications(Configuration, String, String[], int) This method was used to support SAINT which is now deprecated.com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.getLoginKey(String, String, String) com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.getPages(Configuration, Integer, String, String, Integer) The Analytics API no longer supports retrieving a list of pages from specified report suite starting with the 1.4 version.com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.getReportStatus(Configuration, String) com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.getSynchronousReport(Configuration, String, JSONObject) The Analytics API no longer supports synchronous reports starting with the 1.4 version.com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.queueReport(Configuration, String, JSONObject) Analytics API 1.4 no longer requires a report type as parameter for queueing reports. UseSitecatalystWebservice.queueReport(Configuration, JSONObject)
instead.com.day.cq.analytics.sitecatalyst.SitecatalystWebservice.saveClassifications(Configuration, String, boolean, String, int, String[], boolean) This method was used to support SAINT which is now deprecated.com.day.cq.analytics.sitecatalyst.util.AuthenticationHelper.base64Encode(byte[]) com.day.cq.analytics.sitecatalyst.util.AuthenticationHelper.generateApplicationKey(byte[], String) com.day.cq.analytics.sitecatalyst.util.AuthenticationHelper.generateSharedSecret(String) com.day.cq.analytics.sitecatalyst.util.AuthenticationHelper.getBase64Digest(byte[], byte[], byte[]) com.day.cq.analytics.sitecatalyst.util.AuthenticationHelper.getBase64DigestKey(byte[], byte[]) com.day.cq.analytics.testandtarget.TargetMediator.deleteOffer(Configuration, long) com.day.cq.analytics.testandtarget.TestandtargetService.createWidgetOffer(Configuration, String, String, String) com.day.cq.analytics.testandtarget.TestandtargetService.getCampaignById(Configuration, long, CampaignType) com.day.cq.analytics.testandtarget.TestandtargetService.getMboxActivityCollisions(Configuration, String, String) com.day.cq.analytics.testandtarget.TestandtargetService.getReusableOffer(Configuration, ViewOfferRequest) com.day.cq.analytics.testandtarget.TestandtargetService.listCampaigns(Configuration, Date, Date, String, String, String, String) com.day.cq.analytics.testandtarget.TestandtargetService.listOffers(Configuration, String) com.day.cq.analytics.testandtarget.TestandtargetService.publishOffer(Configuration, String, String, String) com.day.cq.audit.AuditLog.getLatestEvent(String, String) since 6.3, useAuditLog.getLatestEvent(org.apache.sling.api.resource.ResourceResolver, String, String)
insteadcom.day.cq.audit.AuditLog.getLatestEvents(String, String, int) com.day.cq.audit.AuditLog.getLatestEventsFromTree(String[], String, int) com.day.cq.commons.ConsoleUtil.dispose() com.day.cq.commons.DownloadResource.getIconPath() since 5.4 please use css classes for the icon, like "icon_xls.gif"com.day.cq.commons.Externalizer.absoluteLink(ResourceResolver, String, String) since 5.5, useexternalLink(resolver, Externalizer.LOCAL, scheme, path)
insteadcom.day.cq.commons.ImageResource.getDoctype() com.day.cq.commons.ImageResource.setDoctype(Doctype) com.day.cq.commons.mail.MailTemplate.getEmail(StrLookup, Class<T>) UseMailTemplate.getEmail(java.util.Map, Class)
instead.com.day.cq.contentsync.ContentSyncManager.getConfigs() com.day.cq.contentsync.ContentSyncManager.sendZip(HttpServletResponse, String) com.day.cq.contentsync.handler.util.RequestResponseFactory.getMD5(HttpServletResponse) com.day.cq.dam.api.Asset.getCurrentOriginal() Will be removed without replacement. The concept of current originals will henceforth be managed through versioning the asset upon modifying the original. UseAsset.getOriginal()
instead.com.day.cq.dam.api.Asset.setCurrentOriginal(String) Will be removed without replacement.com.day.cq.dam.api.Asset.setRendition(String, InputStream, String) com.day.cq.dam.api.AssetReferenceResolver.cleanup(String, ResourceResolver) since 1.2com.day.cq.dam.api.AssetReferenceResolver.deleteLink(String, ResourceResolver) since 1.2com.day.cq.dam.api.AssetReferenceResolver.resolveLink(String, String, ResourceResolver) since 1.2com.day.cq.dam.api.DamManager.createAssetStructure(String, Session, boolean) Usecom.day.cq.dam.commons.util.DamUtil#createAssetForBinary(String, ResourceResolver, Boolean)
instead.com.day.cq.dam.api.DamManager.createBinaryUploadLocationPath(String) UseDamUtil.assetToBinaryPath(String)
instead.com.day.cq.dam.api.DamManager.createMetadataPath(String) UseDamUtil.binaryToAssetPath(String)
instead.com.day.cq.dam.api.DamManager.createTempFile(String, String) UseFile.createTempFile(String, String)
instead.com.day.cq.dam.api.DamManager.getAssetNode(String, Session) Usecom.day.cq.dam.commons.util.DamUtil#getAssetNodeForBinary(String, Session)
instead.com.day.cq.dam.api.DamManager.getSession() Will be removed without replacement.com.day.cq.dam.api.DamManager.removeAssetNode(String, Session) Usecom.day.cq.dam.commons.util.DamUtil#removeAssetForBinary(String, Session)
instead.com.day.cq.dam.api.handler.store.AssetStore.getFileNameSuffix(String) useMimeTypeService.getExtension(String)
insteadcom.day.cq.dam.api.handler.store.AssetStore.getIconPath(String, int) no replacementcom.day.cq.dam.api.handler.store.AssetStore.getMimeType(String) useMimeTypeService.getMimeType(String)
insteadcom.day.cq.dam.api.handler.xmp.XMPHandler.readXmp(Asset) com.day.cq.dam.api.handler.xmp.XMPHandler.writeXmp(Asset, XMPMeta) com.day.cq.dam.api.jobs.AssetDownloadService.assetDownload(Resource, Set<Resource>, boolean, boolean, boolean, String, Date, ZipOutputStream, String, String) since 6.5, Please useAssetDownloadService.assetDownload(Resource, Set, boolean, boolean, boolean, String, Date, String, String, OutputStream)
that operates with `OutputStream` instead.com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.getPath() com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.getZipOutputStream() com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setConfigResource(Resource) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setDate(Date) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setDownloadAssets(boolean) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setDownloadName(String) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setDownloadRenditions(boolean) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setDownloadSet(Set<Resource>) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setDownloadSubassets(boolean) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setEmailRecipients(String) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setFlatStructure(boolean) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setPath(String) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setPermissions(List<String>) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setS7ExportSettings(String) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setSource(String) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams.setZipOutputStream(ZipOutputStream) com.day.cq.dam.api.jobs.AssetDownloadService.assetDownloadParamsReference() com.day.cq.dam.api.lightbox.Lightbox.getAssetReference(String) com.day.cq.dam.api.s7dam.config.YouTubeChannelConfig.getParentConfig() com.day.cq.dam.api.s7dam.set.ImageSet.getImages() Use getMembers() instead of this.com.day.cq.dam.api.s7dam.utils.PublishUtils.externalizeImageDeliveryAsset(Resource, String) com.day.cq.dam.commons.metadata.SimpleXmpToJcrMetadataBuilder.getXmpFromJcr(Node) com.day.cq.dam.commons.metadata.SimpleXmpToJcrMetadataBuilder.storeAsXmp(ExtractedMetadata, Node, boolean) com.day.cq.dam.commons.metadata.SimpleXmpToJcrMetadataBuilder.storeXmp(Node, XMPMeta, boolean) com.day.cq.dam.commons.util.DamLanguageUtil.addSmartAssetUpdateFlag(Asset) com.day.cq.dam.commons.util.DamLanguageUtil.getLanguage(String) since 6.2, useLanguageUtil
insteadcom.day.cq.dam.commons.util.DamLanguageUtil.getLanguageRoot(String) since 6.2, useLanguageUtil
insteadcom.day.cq.dam.commons.util.DamLanguageUtil.moveUpdatedAsset(String, String, Session, PageManagerFactory, ResourceResolverFactory) com.day.cq.dam.commons.util.DamUtil.createEmptyArchiveNode(Resource, String, Session) com.day.cq.dam.commons.util.DamUtil.getAppliedProcessingProfilePath(Asset) com.day.cq.dam.commons.util.DynamicMediaHelper.isDynamicMediaEnabled(ResourceResolver) Use isEnabled() method provided by ImageDelivery service insteadcom.day.cq.dam.commons.util.SchemaFormHelper.getMasterForms(Resource, String) Use getMasterForms(Resource resource) insteadcom.day.cq.dam.commons.util.UIHelper.getDirectoryActionRels(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean) com.day.cq.dam.commons.util.UIHelper.lookupMimeType(String, Node, boolean) com.day.cq.dam.commons.util.WebEnabledImageCreator.create(BufferedImage, String, String, String, String, boolean) since 6.0, useRenditionMaker
service insteadcom.day.cq.dam.core.process.ApplyProcessingProfileProcess.execute(WorkItem, WorkflowSession, MetaDataMap) com.day.cq.dam.core.process.CreateReferenceProcess.execute(WorkItem, WorkflowSession, MetaDataMap) com.day.cq.dam.core.process.SendDownloadAssetEmailProcess.loadTemplate(Session, String) since 6.4. Reading content of email-templates given template-absolute-paths is not supported.com.day.cq.dam.core.process.SyncAssetProcess.execute(WorkItem, WorkflowSession, MetaDataMap) com.day.cq.dam.core.process.SyncContentProcess.buildArguments(MetaDataMap) com.day.cq.dam.core.process.SyncContentProcess.execute(WorkItem, WorkflowSession, MetaDataMap) com.day.cq.dam.core.process.SyncVarProcess.buildArguments(MetaDataMap) com.day.cq.dam.core.process.SyncVarProcess.execute(WorkItem, WorkflowSession, MetaDataMap) com.day.cq.dam.scene7.api.S7Config.getFlashTemplatesServer() com.day.cq.dam.scene7.api.S7Config.getFXGServer() com.day.cq.dam.scene7.api.S7Config.isDelayedPublishEnabled() com.day.cq.dam.scene7.api.S7Config.isPublishEnabled() com.day.cq.dam.scene7.api.S7ConfigResolver.getDefaultS7Config(ResourceResolver, String) com.day.cq.dam.scene7.api.S7ConfigResolver.getS7ConfigForImageUrl(ResourceResolver, String) com.day.cq.dam.scene7.api.S7ConfigResolver.getS7ConfigForResource(Resource) com.day.cq.dam.scene7.api.S7ConfigResolver.getS7Configurations(ResourceResolver, String) com.day.cq.dam.scene7.api.Scene7APIClient.getIPSFile(Scene7Asset, S7Config) Incompatible with Scene7 IPS SSL endpoint. Please use getOriginalFile() instead.com.day.cq.dam.scene7.api.Scene7APIClient.getSystemProperties(S7Config) com.day.cq.dam.scene7.api.Scene7APIClient.updateImageSet(S7Config, String, List<String>, String) com.day.cq.dam.scene7.api.Scene7DAMService.setResourceMetadataOnSync(Resource, String, S7Config, String, Boolean) com.day.cq.dam.scene7.api.Scene7Service.createImageSet(S7Config, String, String, String) com.day.cq.dam.scene7.api.Scene7Service.createViewerPreset(S7Config, String, String, String, List<Scene7ConfigSetting>) com.day.cq.dam.scene7.api.Scene7Service.deleteImageFormat(S7Config, String) com.day.cq.dam.scene7.api.Scene7Service.getFlashTemplatesServer(S7Config) com.day.cq.dam.scene7.api.Scene7Service.getFxgServer(S7Config) com.day.cq.dam.scene7.api.Scene7Service.saveImageFormat(S7Config, String, String, String) com.day.cq.dam.scene7.api.Scene7Service.updateImageSet(S7Config, String, List<String>, String) com.day.cq.dam.scene7.api.Scene7UploadService.moveFile(String, ResourceResolver, ResourceResolver) com.day.cq.dam.scene7.api.Scene7UploadService.moveFolder(String, String, ResourceResolver, ResourceResolver) useScene7Service.moveFolder(S7Config,String,String)
insteadcom.day.cq.dam.video.VideoProfile.get(ResourceResolver, String) since release 6.4. With Video Transcoding profiles being resolved by Sling ContentAware Configuration Resolver, useVideoProfile.get(ResourceResolver, ConfigurationResourceResolver, String)
instead Resolves a video profile by name (relative to the video profile base path) or absolute path.com.day.cq.mailer.MailingService.getStatus(String) It's recommended to useMailingService.getStatus(String, javax.jcr.Session)
instead.com.day.cq.mailer.MailService.sendEmail(Email) since 5.4 useMessageGateway.send(Object)
instead}com.day.cq.personalization.ContextSessionPersistence.get(SlingHttpServletRequest, String, SlingSettingsService) since 5.6. UseContextSessionPersistence.get(org.apache.sling.api.SlingHttpServletRequest, String)
instead.com.day.cq.personalization.ContextSessionPersistence.getCookieName(SlingSettingsService) since 5.6. UseContextSessionPersistence.getCookieName()
instead.com.day.cq.personalization.ContextSessionPersistence.getMap(SlingHttpServletRequest, SlingSettingsService) since 5.6. UseContextSessionPersistence.getMap(org.apache.sling.api.SlingHttpServletRequest)
instead.com.day.cq.personalization.ContextSessionPersistence.getStore(SlingHttpServletRequest, String, SlingSettingsService) since 5.6. UseContextSessionPersistence.getStore(org.apache.sling.api.SlingHttpServletRequest, String)
instead.com.day.cq.personalization.ContextSessionPersistence.put(SlingHttpServletRequest, SlingHttpServletResponse, String, String, SlingSettingsService) com.day.cq.personalization.ContextSessionPersistence.putStore(SlingHttpServletRequest, SlingHttpServletResponse, String, Map<String, String>, SlingSettingsService) com.day.cq.personalization.TargetedContentHelper.findLocations(ResourceResolver, String...) com.day.cq.personalization.TargetedContentHelper.findLocationsPaths(ResourceResolver, String[]) com.day.cq.personalization.TargetedContentManager.getTeaserInfo(ResourceResolver, String, String) com.day.cq.personalization.TargetedContentManager.getTeasers(ResourceResolver, String, String) com.day.cq.replication.AgentConfig.getMaxRetries() This is handled by the queue configurationcom.day.cq.replication.OutboxManager.checkPermission(Session) since 5.12.4; useOutboxManager.getDefaultOutbox(javax.jcr.Session)
} instead.com.day.cq.replication.OutboxManager.fetch(Session, Calendar, OutputStream) since 5.12.4; useOutboxManager.getDefaultOutbox(javax.jcr.Session)
.Outbox.fetch(java.util.Calendar, java.io.OutputStream)
instead.com.day.cq.replication.OutboxManager.put(ReplicationAction, InputStream) since 5.12.4; useOutboxManager.getDefaultOutbox(javax.jcr.Session)
.Outbox.put(ReplicationAction, java.io.InputStream)
instead.com.day.cq.replication.ReplicationOptions.setDesiredAgentIDs(String...) useReplicationOptions.setFilter(AgentFilter)
instead.com.day.cq.replication.ReplicationQueue.isBlocked() since 5.4. useReplicationQueue.getStatus()
insteadcom.day.cq.replication.ReplicationQueue.lastProcessTime() since 5.4. useReplicationQueue.getStatus()
insteadcom.day.cq.replication.ReplicationQueue.nextRetryPeriod() since 5.4. useReplicationQueue.getStatus()
insteadcom.day.cq.replication.ReplicationStatus.isPublished() com.day.cq.replication.Replicator.createContentFilterChain(ReplicationAction) com.day.cq.rewriter.linkchecker.LinkChecker.getLinkValidity(String, LinkCheckerSettings) since 5.3 - useLinkChecker.getLink(java.lang.String, com.day.cq.rewriter.linkchecker.LinkCheckerSettings)
instead.com.day.cq.search.eval.AbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext) com.day.cq.search.eval.PredicateEvaluator.isFiltering(Predicate, EvaluationContext) Since 5.3, usePredicateEvaluator.canFilter(Predicate, EvaluationContext)
andPredicateEvaluator.canXpath(Predicate, EvaluationContext)
instead.com.day.cq.search.suggest.Suggester.getSuggestions(String, String, boolean) use the variant with a user session argument:Suggester.getSuggestions(Session, String, String, boolean)
com.day.cq.search.suggest.Suggester.spellCheck(String) use the variant with a user session argument:Suggester.spellCheck(Session, String)
com.day.cq.search.suggest.SuggestionIndexManager.delete(String) useget(session, name).delete()
com.day.cq.search.suggest.SuggestionIndexManager.get(String) use the variant with a session:SuggestionIndexManager.get(Session, String)
com.day.cq.search.suggest.SuggestionIndexManager.list() use the variant with a session:SuggestionIndexManager.list(Session)
com.day.cq.security.Authorizable.getPrivilege(String) CQ 5.5com.day.cq.security.Authorizable.getPrivileges() CQ 5.5com.day.cq.security.Authorizable.grantPrivilege(String) CQ 5.5com.day.cq.security.Authorizable.hasPermission(String) CQ 5.5com.day.cq.security.Authorizable.hasPermissionOn(String, String) CQ 5.5com.day.cq.security.Authorizable.revokePrivilege(String) CQ 5.5com.day.cq.security.User.setPassword(String, String) com.day.cq.security.util.CqActions.getActions(Session, String) Since 5.4com.day.cq.security.util.CqActions.getPrivileges(String) As of CQ 5.4 the mapping of CQ action to resulting ACEs/privileges depends on the nature of the target node.com.day.cq.security.util.CqActions.isGranted(Set<Privilege>, String) As of CQ 5.4 the mapping of CQ action to privileges depends on the nature of the target node.com.day.cq.security.util.ImpersonationRequestUtil.createCookie(String, String) with no replacement. To initiate impersonation send a request with the sudo request parameter set to the target user id.com.day.cq.security.util.ImpersonationRequestUtil.isImpersonated(HttpServletRequest) check "impersonator" attribute of the session to see whether the session is impersonated or not.com.day.cq.tagging.JcrTagManagerFactory.getTagManager(Session) This is deprecated in favor ofJcrTagManagerFactory.getTagManager(ResourceResolver)
com.day.cq.tagging.TagManager.getSession() Deprecate in favor ofTagManager.getResourceResolver()
. This is consistent with recommended apiJcrTagManagerFactory.getTagManager(ResourceResolver)
Convenience method that returns the underlying session. Can be used to easily save the session when eg. creating tags withautoSave = false
.com.day.cq.wcm.api.designer.Cell.getPaths() since 5.4. useCell.paths()
instead.com.day.cq.wcm.api.designer.Cell.getSearchPaths() since 5.4. useCell.searchPaths()
instead.com.day.cq.wcm.api.LanguageManager.getAdjacentInfo(ResourceResolver, String) com.day.cq.wcm.api.LanguageManager.getLanguages(ResourceResolver, String) com.day.cq.wcm.api.LanguageManager.Tree.getLanguages() useLanguageManager.Tree.getCqLanguages()
insteadcom.day.cq.wcm.api.LanguageManager.TreeNode.getInfo(Locale) useLanguageManager.TreeNode.getInfo(Language)
insteadcom.day.cq.wcm.api.msm.LiveRelationshipManager.cancelRelationship(ResourceResolver, LiveRelationship, boolean) com.day.cq.wcm.api.msm.LiveRelationshipManager.reenableRelationship(ResourceResolver, LiveRelationship) com.day.cq.wcm.api.msm.LiveRelationshipManager.toggleRelationship(ResourceResolver, LiveRelationship, boolean) com.day.cq.wcm.api.msm.RolloutManager.isExcludedProperty(String) Use #isExcludedPageProperty instead.com.day.cq.wcm.api.PageManager.getBlueprints(String) since 5.4 useBlueprintManager.getBlueprints()
com.day.cq.wcm.api.PageManager.getTemplate(String) UseTemplateManager.getTemplate(String)
instead.com.day.cq.wcm.api.PageManager.getTemplates(String) com.day.cq.wcm.commons.ReferenceSearch.search(ResourceResolver, String) use Search(ResourceResolver resolver, String path, String limit, String offset)com.day.cq.wcm.commons.ReferenceSearch.setRepository(SlingRepository) The repository was used by the implementation to create an administrative session inReferenceSearch.adjustReferences(ResourceResolver, String, String, String[])
. Instead, specify a resource resolver which is sufficiently authorized to adjust references at the desired locations.com.day.cq.wcm.core.contentfinder.NodeNameIndexer.search(String, String, String[]) Use oak's lucene suggestions instead.com.day.cq.wcm.designimporter.parser.DesignImporterHTMLParser.getBodyHtmlContent() UseParseResult.getBodyHtmlContent()
insteadcom.day.cq.wcm.designimporter.parser.DesignImporterHTMLParser.getComponents() UseParseResult.getComponents()
insteadcom.day.cq.wcm.designimporter.parser.DesignImporterHTMLParser.getHeadHtmlContent() UseParseResult.getHeadHtmlContent()
insteadcom.day.cq.wcm.designimporter.parser.DesignImporterHTMLParser.getLanguage() UseParseResult.getLanguage()
insteadcom.day.cq.wcm.designimporter.parser.DesignImporterHTMLParser.parse(Page, InputStream, PageBuilder) com.day.cq.wcm.foundation.Download.getIconPath() since 5.4 please use css classes for the icon, like "icon_xls.gif"com.day.cq.wcm.foundation.forms.FormsHelper.checkFormStructure(Resource) useFormStructureHelper.updateFormStructure(Resource)
instead.com.day.cq.wcm.foundation.forms.FormsHelper.getFormElements(Resource) useFormStructureHelper.getFormElements(Resource)
instead.com.day.cq.wcm.foundation.forms.FormsHelper.isReadOnly(Resource) To always support the global read-only flag, set for example by the "view" selector of theFormChooserServlet
, useFormsHelper.isReadOnly(SlingHttpServletRequest, Resource)
instead.com.day.cq.wcm.foundation.forms.FormsHelper.startForm(SlingHttpServletRequest, SlingHttpServletResponse, JspWriter) com.day.cq.wcm.foundation.forms.ValidationHelper.checkConstraint(SlingHttpServletRequest, SlingHttpServletResponse, Resource) com.day.cq.wcm.foundation.forms.ValidationHelper.checkRequired(SlingHttpServletRequest, Resource) com.day.cq.wcm.foundation.forms.ValidationHelper.getConstraintMessage(Resource) com.day.cq.wcm.foundation.forms.ValidationHelper.getFormElementQualifier(SlingHttpServletRequest, Resource) com.day.cq.wcm.foundation.forms.ValidationHelper.getRequiredMessage(Resource) Use aFieldDescription
instead.com.day.cq.wcm.foundation.forms.ValidationHelper.getValidationInfo(SlingHttpServletRequest) com.day.cq.wcm.foundation.forms.ValidationHelper.hasValidationInfo(HttpServletRequest) com.day.cq.wcm.foundation.forms.ValidationHelper.writeConstraintCheck(SlingHttpServletRequest, SlingHttpServletResponse, Resource, JspWriter) com.day.cq.wcm.foundation.forms.ValidationHelper.writeRegexpText(SlingHttpServletRequest, Resource, String, JspWriter) com.day.cq.wcm.foundation.forms.ValidationHelper.writeRequiredCheck(SlingHttpServletRequest, Resource, JspWriter) com.day.cq.wcm.foundation.List.getResources() useList.getPages()
insteadcom.day.cq.wcm.foundation.model.responsivegrid.export.ResponsiveGridExporter.getAllowedComponents() Use ResponsiveGridExporter#getExportedAllowedComponents insteadcom.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getColumnCount(String) com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getCssClass() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getMissingBreakpointNames() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getProperties() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getResourceMetadata() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getResourceResolver() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getResourceSuperType() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveColumn.getResourceType() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid.getAllowedComponents() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid.getCssClass() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid.getParagraphs() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid.getResourceMetadata() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid.getResourceResolver() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid.getResourceSuperType() com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid.getResourceType() com.day.cq.wcm.foundation.Search.getExcerptPropertyNames() since 5.2. Excerpt properties can now only be specified in the configuration of the QueryBuilder interface. For 5.3, when Jackrabbit 1.5 is used, the excerpt properties can be configured in the repository.com.day.cq.wcm.foundation.Search.setExcerptPropertyNames(String) since 5.2. Excerpt properties can now only be specified in the configuration of the QueryBuilder interface. For 5.3, when Jackrabbit 1.5 is used, the excerpt properties can be configured in the repository.com.day.cq.wcm.msm.api.Blueprint.canUnlock() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getAbsoluteParent(int) since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getContentResource() since 5.4, access page insteadcom.day.cq.wcm.msm.api.Blueprint.getDepth() since 5.4, access page insteadcom.day.cq.wcm.msm.api.Blueprint.getLanguage(boolean) since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getLastModified() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getLastModifiedBy() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getLockOwner() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getNavigationTitle() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getOffTime() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getOnTime() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getPageManager() since 5.4, access page insteadcom.day.cq.wcm.msm.api.Blueprint.getPageTitle() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getParent() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getProperties() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getTags() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getTemplate() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.getVanityUrl() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.hasChild(String) since 5.4, access page insteadcom.day.cq.wcm.msm.api.Blueprint.hasContent() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.isHideInNav() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.isLocked() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.isValid() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.listChildren() since 5.4, access page insteadcom.day.cq.wcm.msm.api.Blueprint.lock() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.timeUntilValid() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.Blueprint.unlock() since 5.4, Page Blueprint is not required to be a Pagecom.day.cq.wcm.msm.api.LiveAction.execute(ResourceResolver, LiveRelationship, ActionConfig, boolean) com.day.cq.wcm.msm.api.LiveAction.getParameterName() since 5.5com.day.cq.wcm.msm.api.LiveAction.getPropertiesNames() since 5.5com.day.cq.wcm.msm.api.LiveAction.getRank() since 5.5 the Rank is defined by the order in theRolloutConfig
com.day.cq.wcm.msm.api.LiveAction.getTitle() since 5.5com.day.cq.wcm.msm.api.LiveAction.write(JSONWriter) since 5.5com.day.cq.wcm.msm.api.LiveRelationshipManager.addSkippedPages(Page, String[], boolean) since 5.7 useLiveCopy.addExclusion(String)
insteadcom.day.cq.wcm.msm.api.LiveRelationshipManager.detach(Resource, boolean) since 5.5 use endRelationship()com.day.cq.wcm.msm.api.LiveRelationshipManager.getLiveCopies() since 5.5 useLiveRelationshipManager.getLiveRelationships(org.apache.sling.api.resource.Resource, com.day.cq.wcm.msm.api.RolloutManager.Trigger, String[], boolean)
to search for LiveCopiescom.day.cq.wcm.msm.api.LiveRelationshipManager.getLiveCopy(Resource) com.day.cq.wcm.msm.api.LiveRelationshipManager.getLiveRelationships(Page, RolloutManager.Trigger, String[], boolean) com.day.cq.wcm.msm.api.LiveRelationshipManager.getSkippedSourcePages(Page) since 5.7 useLiveCopy.getExclusions()
insteadcom.day.cq.wcm.msm.api.LiveRelationshipManager.isInBlueprint(Resource) useBlueprintManager.getContainingBlueprint(String)
to checkcom.day.cq.wcm.msm.api.LiveRelationshipManager.isLiveCopy(Resource) since 5.5 useLiveRelationshipManager.hasLiveRelationship(org.apache.sling.api.resource.Resource)
insteadcom.day.cq.wcm.msm.api.LiveRelationshipManager.removeSkippedPages(Page, String[], boolean) since 5.7 useLiveCopy.removeExclusion(String)
insteadcom.day.cq.wcm.msm.api.RolloutConfig.getActionsConfig() since 5.5 usegetActions()
insteadcom.day.cq.wcm.msm.api.RolloutManager.isExcludedProperty(String) Use #isExcludedPageProperty instead.com.day.cq.wcm.msm.commons.BaseAction.execute(ResourceResolver, LiveRelationship, ActionConfig, boolean) com.day.cq.wcm.msm.commons.BaseAction.getParameterName() com.day.cq.wcm.msm.commons.BaseAction.getPropertiesNames() com.day.cq.wcm.msm.commons.BaseAction.getRank() com.day.cq.wcm.msm.commons.BaseAction.getTitle() com.day.cq.wcm.msm.commons.BaseAction.write(JSONWriter) com.day.cq.widget.WidgetExtensionProvider.getExtensions(String, Session) since 6.4com.day.cq.widget.WidgetExtensionProvider.getJson(String, Session) since 6.4com.day.cq.widget.WidgetExtensionProvider.getJsonString(String, Session) since 6.4com.day.cq.workflow.exec.JavaProcess.execute(WorkItem, WorkflowSession) com.day.cq.workflow.exec.ParticipantChooser.getParticipant(WorkItem, WorkflowSession, String[]) UseParticipantStepChooser
instead.com.day.cq.workflow.HasMetaData.getMetaData() It's recommended to useHasMetaData.getMetaDataMap()
instead.com.day.cq.workflow.PayloadMap.getWorkflowInstance(String) usePayloadMap.getWorkflowInstances(String, boolean)
instead!com.day.cq.workflow.PayloadMap.isInWorkflow(String) usePayloadMap.isInWorkflow(String, boolean)
instead!com.day.cq.workflow.status.WorkflowStatus.getWorkflow() useWorkflowStatus.getWorkflows(boolean)
insteadcom.day.cq.workflow.status.WorkflowStatus.isInRunningWorkflow() useWorkflowStatus.isInRunningWorkflow(boolean)
insteadcom.day.cq.workflow.util.WorkflowUtil.isStaleWorkflow(Workflow, Collection<Job>) No longer useful (stale workflows don't occur enymore). Always return false. Can't be removed as it is a documented API.com.day.cq.workflow.WorkflowSession.startWorkflow(WorkflowModel, WorkflowData, Dictionary<String, String>) It is recommended to use startWorkflow(WorkflowModel, WorkflowData, Map) instead.com.day.cq.xss.XSSProtectionService.invalidatePolicy(String) com.day.crx.CRXRepository.getLicense() Use the Granite License APIcom.day.crx.security.token.TokenCookie.getTokenInfo(HttpServletRequest) com.day.crx.security.token.TokenCookie.setCookie(HttpServletResponse, String, String, int, String) com.day.crx.security.token.TokenCookie.update(HttpServletRequest, HttpServletResponse, String, String) com.day.image.Dither.dither(BufferedImage, int, long, long, int) as of Communiqu� 3.1.0, use com.day.image.DitherOp instead, this class will be removed in the next release.com.day.text.Text.digest(String, String) com.day.text.Text.getLabel(String) com.day.text.Text.joinFixSlash(String, String) com.day.text.Text.makeCanonicalPath(StringBuffer) useText.makeCanonicalPath(char[])
insteadcom.day.text.Text.md5(String) com.day.text.Text.split(String, int) com.day.util.diff.LineElementsFactory.create(FileDocumentSource, boolean) com.fasterxml.jackson.core.base.GeneratorBase.setFeatureMask(int) com.fasterxml.jackson.core.base.ParserBase.getCurrentLocation() com.fasterxml.jackson.core.base.ParserBase.getCurrentName() com.fasterxml.jackson.core.base.ParserBase.getTokenLocation() com.fasterxml.jackson.core.base.ParserBase.setFeatureMask(int) com.fasterxml.jackson.core.base.ParserMinimalBase.getCurrentName() com.fasterxml.jackson.core.base.ParserMinimalBase.getCurrentTokenId() com.fasterxml.jackson.core.filter.FilteringParserDelegate.getCurrentLocation() com.fasterxml.jackson.core.filter.FilteringParserDelegate.getCurrentName() com.fasterxml.jackson.core.filter.FilteringParserDelegate.getCurrentToken() com.fasterxml.jackson.core.filter.FilteringParserDelegate.getCurrentTokenId() com.fasterxml.jackson.core.filter.FilteringParserDelegate.getTokenLocation() com.fasterxml.jackson.core.io.CharTypes.copyHexBytes() Since 2.14 UseCharTypes.copyHexBytes(boolean)
insteadcom.fasterxml.jackson.core.io.CharTypes.copyHexChars() Since 2.14 UseCharTypes.copyHexChars(boolean)
insteadcom.fasterxml.jackson.core.io.ContentReference.construct(boolean, Object) Since 2.16. UseContentReference.construct(boolean, Object, ErrorReportConfiguration)
instead.com.fasterxml.jackson.core.io.IOContext.getSourceReference() Since 2.13, useIOContext.contentReference()
insteadcom.fasterxml.jackson.core.io.NumberInput.parseBigDecimal(String) Since 2.17 useNumberInput.parseBigDecimal(String, boolean)
insteadcom.fasterxml.jackson.core.io.NumberInput.parseBigInteger(String) Since 2.17 useNumberInput.parseBigInteger(String, boolean)
insteadcom.fasterxml.jackson.core.io.NumberInput.parseDouble(String) Since 2.17 useNumberInput.parseDouble(String, boolean)
insteadcom.fasterxml.jackson.core.io.NumberInput.parseFloat(String) Since 2.17 useNumberInput.parseFloat(String, boolean)
insteadcom.fasterxml.jackson.core.json.JsonParserBase.getCurrentLocation() com.fasterxml.jackson.core.json.JsonParserBase.getTokenLocation() com.fasterxml.jackson.core.json.JsonReadContext.getStartLocation(Object) com.fasterxml.jackson.core.json.JsonWriteContext.createRootContext() Since 2.3; use method that takes argumentcom.fasterxml.jackson.core.JsonFactory.configure(JsonFactory.Feature, boolean) since 2.10 useTSFBuilder.configure(JsonFactory.Feature, boolean)
insteadcom.fasterxml.jackson.core.JsonFactory.createJsonGenerator(OutputStream, JsonEncoding) Since 2.2, useJsonFactory.createGenerator(OutputStream, JsonEncoding)
instead.com.fasterxml.jackson.core.JsonFactory.createJsonParser(File) Since 2.2, useJsonFactory.createParser(File)
instead.com.fasterxml.jackson.core.JsonFactory.disable(JsonFactory.Feature) since 2.10 useTSFBuilder.configure(JsonFactory.Feature, boolean)
insteadcom.fasterxml.jackson.core.JsonFactory.enable(JsonFactory.Feature) since 2.10 useTSFBuilder.configure(JsonFactory.Feature, boolean)
insteadcom.fasterxml.jackson.core.JsonFactory.setInputDecorator(InputDecorator) Since 2.10 useTSFBuilder.inputDecorator(InputDecorator)
insteadcom.fasterxml.jackson.core.JsonFactory.setOutputDecorator(OutputDecorator) Since 2.10 useTSFBuilder.outputDecorator(OutputDecorator)
insteadcom.fasterxml.jackson.core.JsonGenerator.getCurrentValue() Since 2.17 useJsonGenerator.currentValue()
insteadcom.fasterxml.jackson.core.JsonGenerator.setCurrentValue(Object) Since 2.17 useJsonGenerator.currentValue()
insteadcom.fasterxml.jackson.core.JsonGenerator.setFeatureMask(int) Since 2.7, useJsonGenerator.overrideStdFeatures(int, int)
instead -- remove from 2.9com.fasterxml.jackson.core.JsonGenerator.writeStartArray(int) Since 2.12 UseJsonGenerator.writeStartArray(Object, int)
insteadcom.fasterxml.jackson.core.JsonLocation.getSourceRef() Since 2.13 UseJsonLocation.contentReference()
insteadcom.fasterxml.jackson.core.JsonParser.getCurrentLocation() Since 2.17 useJsonParser.currentLocation()
insteadcom.fasterxml.jackson.core.JsonParser.getCurrentName() Since 2.17 useJsonParser.currentName()
instead.com.fasterxml.jackson.core.JsonParser.getCurrentTokenId() Since 2.12 useJsonParser.currentTokenId()
insteadcom.fasterxml.jackson.core.JsonParser.getCurrentValue() Since 2.17 useJsonParser.currentValue()
insteadcom.fasterxml.jackson.core.JsonParser.getTokenLocation() Since 2.17 useJsonParser.currentTokenLocation()
insteadcom.fasterxml.jackson.core.JsonParser.setCurrentValue(Object) Since 2.17 useJsonParser.assignCurrentValue(java.lang.Object)
insteadcom.fasterxml.jackson.core.JsonParser.setFeatureMask(int) Since 2.7, useJsonParser.overrideStdFeatures(int, int)
insteadcom.fasterxml.jackson.core.JsonStreamContext.getStartLocation(Object) Since 2.13 useJsonStreamContext.startLocation(com.fasterxml.jackson.core.io.ContentReference)
insteadcom.fasterxml.jackson.core.JsonStreamContext.getTypeDesc() Since 2.8 useJsonStreamContext.typeDesc()
insteadcom.fasterxml.jackson.core.ObjectCodec.getJsonFactory() UseObjectCodec.getFactory()
instead.com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.createRoot() Since 2.16 useCharsToNameCanonicalizer.createRoot(TokenStreamFactory)
insteadcom.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.makeChild(int) Since 2.16 useCharsToNameCanonicalizer.makeChild()
instead.com.fasterxml.jackson.core.type.ResolvedType.getParameterSource() Since 2.7: does not have meaning as parameters depend on type resolved.com.fasterxml.jackson.core.util.BufferRecyclers.encodeAsUTF8(String) Since 2.10 callJsonStringEncoder.getInstance()
and thenencodeAsUTF8()
) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)com.fasterxml.jackson.core.util.BufferRecyclers.getBufferRecycler() Since 2.16 should useRecyclerPool
abstraction instead of calling static methods of this classcom.fasterxml.jackson.core.util.BufferRecyclers.getJsonStringEncoder() Since 2.10 callJsonStringEncoder.getInstance()
instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonText(String) Since 2.10 callJsonStringEncoder.getInstance()
and thenquoteAsString()
) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonUTF8(String) Since 2.10 callJsonStringEncoder.getInstance()
(and thenquoteAsUTF8()
) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withoutSpacesInObjectEntries() in 2.16. Use the Separators API instead.com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withRootSeparator(SerializableString) in 2.16. Use the Separators API instead.com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withSpacesInObjectEntries() in 2.16. Use the Separators API instead.com.fasterxml.jackson.core.util.JsonGeneratorDelegate.getCurrentValue() com.fasterxml.jackson.core.util.JsonGeneratorDelegate.getDelegate() com.fasterxml.jackson.core.util.JsonGeneratorDelegate.setCurrentValue(Object) com.fasterxml.jackson.core.util.JsonGeneratorDelegate.setFeatureMask(int) com.fasterxml.jackson.core.util.JsonParserDelegate.getCurrentLocation() com.fasterxml.jackson.core.util.JsonParserDelegate.getCurrentName() com.fasterxml.jackson.core.util.JsonParserDelegate.getCurrentToken() com.fasterxml.jackson.core.util.JsonParserDelegate.getCurrentTokenId() com.fasterxml.jackson.core.util.JsonParserDelegate.getCurrentValue() com.fasterxml.jackson.core.util.JsonParserDelegate.getTokenLocation() com.fasterxml.jackson.core.util.JsonParserDelegate.setCurrentValue(Object) com.fasterxml.jackson.core.util.JsonParserDelegate.setFeatureMask(int) com.fasterxml.jackson.core.util.JsonParserSequence.createFlattened(JsonParser, JsonParser) com.fasterxml.jackson.core.util.TextBuffer.contentsAsDecimal() Since 2.15 just access String contents if necessary, callNumberInput.parseBigDecimal(String, boolean)
(or other overloads) directly insteadcom.fasterxml.jackson.core.util.TextBuffer.contentsAsDouble() com.fasterxml.jackson.core.util.TextBuffer.contentsAsFloat() com.fasterxml.jackson.core.util.VersionUtil.mavenVersionFor(ClassLoader, String, String) Since 2.6: functionality not used by any official Jackson component, should be moved out if anyone needs itcom.fasterxml.jackson.core.util.VersionUtil.packageVersionFor(Class<?>) Since 2.12 simply useVersionUtil.versionFor(Class)
insteadcom.fasterxml.jackson.core.util.VersionUtil.version() com.fasterxml.jackson.core.Version.isUknownVersion() Since 2.7 use correctly spelled methodVersion.isUnknownVersion()
com.fasterxml.jackson.databind.AbstractTypeResolver.resolveAbstractType(DeserializationConfig, JavaType) since 2.8 (may be removed from 2.9 or later)com.fasterxml.jackson.databind.annotation.JsonSerialize.include() As of Jackson 2.0, this annotation has been replaced byJsonInclude
com.fasterxml.jackson.databind.AnnotationIntrospector.findCreatorBinding(Annotated) com.fasterxml.jackson.databind.AnnotationIntrospector.findDefaultEnumValue(Class<Enum<?>>) Since 2.16. UseAnnotationIntrospector.findDefaultEnumValue(AnnotatedClass, Enum[])
instead.com.fasterxml.jackson.databind.AnnotationIntrospector.findEnumAliases(Class<?>, Enum<?>[], String[][]) Since 2.16com.fasterxml.jackson.databind.AnnotationIntrospector.findEnumValue(Enum<?>) Since 2.8: useAnnotationIntrospector.findEnumValues(java.lang.Class<?>, java.lang.Enum<?>[], java.lang.String[])
instead because this method does not properly handle override settings (defaults toenum.name
without indicating whether that is explicit or not), and is inefficient to call one-by-one.com.fasterxml.jackson.databind.AnnotationIntrospector.findEnumValues(Class<?>, Enum<?>[], String[]) Since 2.16com.fasterxml.jackson.databind.AnnotationIntrospector.findInjectableValueId(AnnotatedMember) com.fasterxml.jackson.databind.AnnotationIntrospector.findPropertyIgnorals(Annotated) com.fasterxml.jackson.databind.AnnotationIntrospector.hasAnyGetterAnnotation(AnnotatedMethod) Since 2.9 UseAnnotationIntrospector.hasAnyGetter(com.fasterxml.jackson.databind.introspect.Annotated)
insteadcom.fasterxml.jackson.databind.AnnotationIntrospector.hasAnySetterAnnotation(AnnotatedMethod) Since 2.9 useAnnotationIntrospector.hasAnySetter(com.fasterxml.jackson.databind.introspect.Annotated)
instead.com.fasterxml.jackson.databind.AnnotationIntrospector.hasAsValueAnnotation(AnnotatedMethod) Since 2.9 UseAnnotationIntrospector.hasAsValue(Annotated)
instead.com.fasterxml.jackson.databind.AnnotationIntrospector.hasCreatorAnnotation(Annotated) com.fasterxml.jackson.databind.BeanDescription.bindingsForBeanType() Since 2.7, should not need to access bindings directlycom.fasterxml.jackson.databind.BeanDescription.findAnySetter() Since 2.9: useBeanDescription.findAnySetterAccessor()
insteadcom.fasterxml.jackson.databind.BeanDescription.findAnySetterField() Since 2.9: useBeanDescription.findAnySetterAccessor()
insteadcom.fasterxml.jackson.databind.BeanDescription.findBackReferenceProperties() Since 2.9 useBeanDescription.findBackReferences()
insteadcom.fasterxml.jackson.databind.BeanDescription.findExpectedFormat(JsonFormat.Value) Since 2.17 useBeanDescription.findExpectedFormat()
com.fasterxml.jackson.databind.BeanDescription.findFactoryMethod(Class<?>...) Since 2.13: instead useBeanDescription.getFactoryMethods()
, filter.com.fasterxml.jackson.databind.BeanDescription.findJsonValueMethod() com.fasterxml.jackson.databind.BeanDescription.findSingleArgConstructor(Class<?>...) Since 2.13: instead useBeanDescription.getConstructors()
, filter.com.fasterxml.jackson.databind.BeanDescription.resolveType(Type) Since 2.8, should simply callgetType
of property accessor directly.com.fasterxml.jackson.databind.BeanProperty.Bogus.findFormatOverrides(AnnotationIntrospector) com.fasterxml.jackson.databind.BeanProperty.findFormatOverrides(AnnotationIntrospector) com.fasterxml.jackson.databind.BeanProperty.Std.findFormatOverrides(AnnotationIntrospector) com.fasterxml.jackson.databind.cfg.MapperConfig.hasMapperFeatures(int) Since 2.13 -- no replacementcom.fasterxml.jackson.databind.cfg.MapperConfigBase.getRootName() Since 2.6 useMapperConfigBase.getFullRootName()
instead.com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(JsonParser, DeserializationContext) Since 2.11 Should not be used: was never meant to be called by code other than sub-classes (implementations), and implementations details differcom.fasterxml.jackson.databind.deser.BeanDeserializerBase.getBeanClass() Since 2.3, useBeanDeserializerBase.handledType()
insteadcom.fasterxml.jackson.databind.deser.BeanDeserializerBase.withIgnorableProperties(Set<String>) com.fasterxml.jackson.databind.deser.CreatorProperty.findInjectableValue(DeserializationContext, Object) com.fasterxml.jackson.databind.deser.CreatorProperty.inject(DeserializationContext, Object) com.fasterxml.jackson.databind.deser.DeserializationProblemHandler.handleMissingInstantiator(DeserializationContext, Class<?>, JsonParser, String) Since 2.9: use variant that takesValueInstantiator
com.fasterxml.jackson.databind.deser.DeserializationProblemHandler.handleUnexpectedToken(DeserializationContext, Class<?>, JsonToken, JsonParser, String) Since 2.10com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.construct(MapperConfig<?>, Collection<SettableBeanProperty>, Map<String, List<PropertyName>>) since 2.12com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator.construct(DeserializationContext, ValueInstantiator, SettableBeanProperty[]) com.fasterxml.jackson.databind.deser.std.EnumDeserializer.deserializerForCreator(DeserializationConfig, Class<?>, AnnotatedMethod) Since 2.8com.fasterxml.jackson.databind.deser.std.EnumDeserializer.withResolved(Boolean) Since 2.15com.fasterxml.jackson.databind.deser.std.EnumSetDeserializer.withResolved(JsonDeserializer<?>, NullValueProvider, Boolean) Since 2.17com.fasterxml.jackson.databind.deser.std.JdkDeserializers.find(Class<?>, String) Since 2.14 use the variant that takes one more argumentcom.fasterxml.jackson.databind.deser.std.MapDeserializer.setIgnorableProperties(String[]) in 2.12, remove from 3.0com.fasterxml.jackson.databind.deser.std.StdDeserializer.getValueClass() Since 2.3 useStdDeserializer.handledType()
insteadcom.fasterxml.jackson.databind.DeserializationConfig.introspectForBuilder(JavaType) Since 2.12 - use variant that takes both builder and value typecom.fasterxml.jackson.databind.exc.MismatchedInputException.from(JsonParser, String) com.fasterxml.jackson.databind.ext.DOMSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.introspect.Annotated.annotations() Since 2.9 should instead useAnnotated.getAnnotated()
com.fasterxml.jackson.databind.introspect.AnnotatedClass.annotations() com.fasterxml.jackson.databind.introspect.AnnotatedClass.construct(JavaType, MapperConfig<?>) Since 2.9, use methods inAnnotatedClassResolver
instead.com.fasterxml.jackson.databind.introspect.AnnotatedClass.constructWithoutSuperTypes(Class<?>, MapperConfig<?>) Since 2.9, use methods inAnnotatedClassResolver
instead.com.fasterxml.jackson.databind.introspect.AnnotatedClass.getStaticMethods() Since 2.9; useAnnotatedClass.getFactoryMethods()
instead.com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.getGenericParameterType(int) com.fasterxml.jackson.databind.introspect.AnnotatedMember.annotations() com.fasterxml.jackson.databind.introspect.AnnotatedMember.getTypeContext() Since 2.9com.fasterxml.jackson.databind.introspect.AnnotatedMethod.getGenericParameterType(int) com.fasterxml.jackson.databind.introspect.AnnotatedMethod.getGenericParameterTypes() com.fasterxml.jackson.databind.introspect.AnnotatedMethod.hasReturnType() Since 2.12 (related to [databind#2675]), needs to be configurablecom.fasterxml.jackson.databind.introspect.AnnotatedWithParams.getGenericParameterType(int) Since 2.7, remove in 2.9com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findCreatorBinding(Annotated) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findDefaultEnumValue(Class<Enum<?>>) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findEnumAliases(Class<?>, Enum<?>[], String[][]) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findEnumValue(Enum<?>) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findEnumValues(Class<?>, Enum<?>[], String[]) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findInjectableValueId(AnnotatedMember) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findPropertyIgnorals(Annotated) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.hasAnyGetterAnnotation(AnnotatedMethod) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.hasAnySetterAnnotation(AnnotatedMethod) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.hasAsValueAnnotation(AnnotatedMethod) com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.hasCreatorAnnotation(Annotated) com.fasterxml.jackson.databind.introspect.BasicBeanDescription._findPropertyFields(Collection<String>, boolean) Since 2.7.2, does not seem to be used?com.fasterxml.jackson.databind.introspect.BasicBeanDescription.bindingsForBeanType() com.fasterxml.jackson.databind.introspect.BasicBeanDescription.findBackReferenceProperties() com.fasterxml.jackson.databind.introspect.BasicBeanDescription.findFactoryMethod(Class<?>...) com.fasterxml.jackson.databind.introspect.BasicBeanDescription.findJsonValueMethod() com.fasterxml.jackson.databind.introspect.BasicBeanDescription.findSingleArgConstructor(Class<?>...) com.fasterxml.jackson.databind.introspect.BasicBeanDescription.resolveType(Type) com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forDeserializationWithBuilder(DeserializationConfig, JavaType, ClassIntrospector.MixInResolver) com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserializationWithBuilder(DeserializationConfig, JavaType, ClassIntrospector.MixInResolver) Since 2.12 use overload that take value type descriptioncom.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase.findFormatOverrides(AnnotationIntrospector) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findCreatorBinding(Annotated) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findDefaultEnumValue(Class<Enum<?>>) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findEnumAliases(Class<?>, Enum<?>[], String[][]) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findEnumValue(Enum<?>) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findEnumValues(Class<?>, Enum<?>[], String[]) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findInjectableValueId(AnnotatedMember) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findPropertyIgnorals(Annotated) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.hasAnyGetterAnnotation(AnnotatedMethod) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.hasAnySetterAnnotation(AnnotatedMethod) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.hasAsValueAnnotation(AnnotatedMethod) com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.hasCreatorAnnotation(Annotated) com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.findPOJOBuilderClass() com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.getAnyGetter() Since 2.12 use separatePOJOPropertiesCollector.getAnyGetterMethod()
andPOJOPropertiesCollector.getAnyGetterField()
.com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.getJsonValueMethod() com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder.removeNonVisible(boolean) com.fasterxml.jackson.databind.JavaType.containedTypeName(int) com.fasterxml.jackson.databind.JavaType.forcedNarrowBy(Class<?>) com.fasterxml.jackson.databind.JavaType.getParameterSource() com.fasterxml.jackson.databind.JsonDeserializer.getEmptyValue() Since 2.6 Use overloaded variant that takes context argumentcom.fasterxml.jackson.databind.JsonDeserializer.getNullValue() Since 2.6 Use overloaded variant that takes context argumentcom.fasterxml.jackson.databind.JsonNode.with(String) Since 2.14 useJsonNode.withObject(String)
insteadcom.fasterxml.jackson.databind.jsonschema.JsonSerializableSchema.schemaItemDefinition() (since 2.1) -- support will be dropped in future, since JSON-as-String is fundamentally bad way for customizing anything. No direct replacements offered.com.fasterxml.jackson.databind.jsonschema.JsonSerializableSchema.schemaObjectPropertiesDefinition() (since 2.1) -- support will be dropped in future, since JSON-as-String is fundamentally bad way for customizing anything. No direct replacements offered.com.fasterxml.jackson.databind.JsonSerializer.isEmpty(T) Since 2.5 UseJsonSerializer.isEmpty(SerializerProvider, Object)
instead; will be removed from 3.0com.fasterxml.jackson.databind.jsontype.SubtypeResolver.collectAndResolveSubtypes(AnnotatedMember, MapperConfig<?>, AnnotationIntrospector, JavaType) com.fasterxml.jackson.databind.jsontype.TypeSerializer.writeCustomTypePrefixForArray(Object, JsonGenerator, String) Since 2.9 useTypeSerializer.writeTypePrefix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeCustomTypePrefixForObject(Object, JsonGenerator, String) Since 2.9 useTypeSerializer.writeTypePrefix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeCustomTypePrefixForScalar(Object, JsonGenerator, String) Since 2.9 useTypeSerializer.writeTypePrefix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeCustomTypeSuffixForArray(Object, JsonGenerator, String) Since 2.9 useTypeSerializer.writeTypeSuffix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeCustomTypeSuffixForObject(Object, JsonGenerator, String) Since 2.9 useTypeSerializer.writeTypeSuffix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeCustomTypeSuffixForScalar(Object, JsonGenerator, String) Since 2.9 useTypeSerializer.writeTypeSuffix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeTypePrefixForArray(Object, JsonGenerator) Since 2.9 useTypeSerializer.writeTypePrefix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeTypePrefixForObject(Object, JsonGenerator) Since 2.9 useTypeSerializer.writeTypePrefix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeTypePrefixForScalar(Object, JsonGenerator) Since 2.9 useTypeSerializer.writeTypePrefix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeTypeSuffixForArray(Object, JsonGenerator) Since 2.9 useTypeSerializer.writeTypeSuffix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeTypeSuffixForObject(Object, JsonGenerator) Since 2.9 useTypeSerializer.writeTypeSuffix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.jsontype.TypeSerializer.writeTypeSuffixForScalar(Object, JsonGenerator) Since 2.9 useTypeSerializer.writeTypeSuffix(JsonGenerator, WritableTypeId)
insteadcom.fasterxml.jackson.databind.MapperFeature.enabledIn(int) com.fasterxml.jackson.databind.MapperFeature.getMask() com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolver.resolveAbstractType(DeserializationConfig, JavaType) com.fasterxml.jackson.databind.node.ArrayNode.with(String) com.fasterxml.jackson.databind.node.JsonNodeFactory.withExactBigDecimals(boolean) UseJsonNodeFeature.STRIP_TRAILING_BIGDECIMAL_ZEROES
instead for configuring behavior.com.fasterxml.jackson.databind.node.ObjectNode.put(String, JsonNode) Since 2.4 use eitherObjectNode.set(String,JsonNode)
orObjectNode.replace(String,JsonNode)
,com.fasterxml.jackson.databind.node.ObjectNode.putAll(Map<String, ? extends JsonNode>) Since 2.4 useObjectNode.setAll(Map)
,com.fasterxml.jackson.databind.node.ObjectNode.with(String) com.fasterxml.jackson.databind.node.TreeTraversingParser.getCurrentLocation() com.fasterxml.jackson.databind.node.TreeTraversingParser.getCurrentName() com.fasterxml.jackson.databind.node.TreeTraversingParser.getTokenLocation() com.fasterxml.jackson.databind.ObjectMapper.addMixInAnnotations(Class<?>, Class<?>) Since 2.5: replaced by a fluent form of the method;ObjectMapper.addMixIn(Class, Class)
.com.fasterxml.jackson.databind.ObjectMapper.configure(MapperFeature, boolean) Since 2.13 useJsonMapper.builder().configure(...)
com.fasterxml.jackson.databind.ObjectMapper.disable(MapperFeature...) Since 2.13 useJsonMapper.builder().disable(...)
com.fasterxml.jackson.databind.ObjectMapper.disableDefaultTyping() Since 2.10 useObjectMapper.deactivateDefaultTyping()
insteadcom.fasterxml.jackson.databind.ObjectMapper.enable(MapperFeature...) Since 2.13 useJsonMapper.builder().enable(...)
com.fasterxml.jackson.databind.ObjectMapper.enableDefaultTyping() Since 2.10 useObjectMapper.activateDefaultTyping(PolymorphicTypeValidator)
insteadcom.fasterxml.jackson.databind.ObjectMapper.enableDefaultTypingAsProperty(ObjectMapper.DefaultTyping, String) Since 2.10 useObjectMapper.activateDefaultTypingAsProperty(PolymorphicTypeValidator,DefaultTyping,String)
insteadcom.fasterxml.jackson.databind.ObjectMapper.generateJsonSchema(Class<?>) Since 2.6 use external JSON Schema generator (jackson-module-jsonSchema) (which under the hood callsObjectMapper.acceptJsonFormatVisitor(JavaType, JsonFormatVisitorWrapper)
)com.fasterxml.jackson.databind.ObjectMapper.reader(JavaType) Since 2.5, useObjectMapper.readerFor(JavaType)
insteadcom.fasterxml.jackson.databind.ObjectMapper.setFilters(FilterProvider) Since 2.6, useObjectMapper.setFilterProvider(com.fasterxml.jackson.databind.ser.FilterProvider)
instead (allows chaining)com.fasterxml.jackson.databind.ObjectMapper.setMixInAnnotations(Map<Class<?>, Class<?>>) Since 2.5: replaced by a fluent form of the method;ObjectMapper.setMixIns(java.util.Map<java.lang.Class<?>, java.lang.Class<?>>)
.com.fasterxml.jackson.databind.ObjectMapper.setPropertyInclusion(JsonInclude.Value) com.fasterxml.jackson.databind.ObjectMapper.setVisibilityChecker(VisibilityChecker<?>) Since 2.6 useObjectMapper.setVisibility(VisibilityChecker)
instead.com.fasterxml.jackson.databind.ObjectMapper.writerWithType(Class<?>) Since 2.5, useObjectMapper.writerFor(Class)
insteadcom.fasterxml.jackson.databind.ObjectReader.withType(JavaType) since 2.5 UseObjectReader.forType(JavaType)
insteadcom.fasterxml.jackson.databind.ObjectWriter.isEnabled(JsonParser.Feature) com.fasterxml.jackson.databind.ObjectWriter.withSchema(FormatSchema) Since 2.5 useObjectWriter.with(FormatSchema)
insteadcom.fasterxml.jackson.databind.ObjectWriter.withType(JavaType) since 2.5 UseObjectWriter.forType(JavaType)
insteadcom.fasterxml.jackson.databind.PropertyMetadata.construct(boolean, String, Integer, String) com.fasterxml.jackson.databind.ser.BasicSerializerFactory.createKeySerializer(SerializationConfig, JavaType, JsonSerializer<Object>) com.fasterxml.jackson.databind.ser.BeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter, ObjectNode, SerializerProvider) Since 2.3: new code should use the alternativedepositSchemaProperty
methodcom.fasterxml.jackson.databind.ser.BeanPropertyWriter.depositSchemaProperty(ObjectNode, SerializerProvider) com.fasterxml.jackson.databind.ser.BeanPropertyWriter.getGenericPropertyType() Since 2.7, to be removed from 2.9, useBeanPropertyWriter.getType()
instead.com.fasterxml.jackson.databind.ser.BeanPropertyWriter.getPropertyType() Since 2.7, to be removed from 2.9, useBeanPropertyWriter.getType()
instead.com.fasterxml.jackson.databind.ser.BeanPropertyWriter.getRawSerializationType() com.fasterxml.jackson.databind.ser.BeanSerializer.createDummy(JavaType) Since 2.10com.fasterxml.jackson.databind.ser.BeanSerializerFactory.findBeanSerializer(SerializerProvider, JavaType, BeanDescription) com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.generateJsonSchema(Class<?>) Should not be used any morecom.fasterxml.jackson.databind.ser.FilterProvider.findFilter(Object) Since 2.3 deprecated becauseBeanPropertyFilter
is deprecated;com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter, ObjectNode, SerializerProvider) com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter.serializeAll(Set<String>) Since 2.6; to be removed from 2.7com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter.serializeAsField(Object, JsonGenerator, SerializerProvider, BeanPropertyWriter) com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider.addFilter(String, BeanPropertyFilter) since 2.3com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider.findFilter(Object) com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider.setDefaultFilter(BeanPropertyFilter) Since 2.3 should usePropertyFilter
instead ofBeanPropertyFilter
com.fasterxml.jackson.databind.ser.impl.StringArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.PropertyFilter.depositSchemaProperty(PropertyWriter, ObjectNode, SerializerProvider) Since 2.3: new code should use the alternativedepositSchemaProperty
methodcom.fasterxml.jackson.databind.ser.PropertyWriter.depositSchemaProperty(ObjectNode, SerializerProvider) Since 2.2com.fasterxml.jackson.databind.ser.SerializerFactory.createKeySerializer(SerializationConfig, JavaType, JsonSerializer<Object>) com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase.withResolved(BeanProperty, TypeSerializer, JsonSerializer<?>) since 2.6: use the overloaded method that takes 'unwrapSingle'com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.getSchema(SerializerProvider, Type) com.fasterxml.jackson.databind.ser.std.BooleanSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.ByteArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.ClassSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.EnumSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.FileSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.JsonValueSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.MapProperty.depositSchemaProperty(ObjectNode, SerializerProvider) com.fasterxml.jackson.databind.ser.std.MapProperty.reset(Object, JsonSerializer<Object>, JsonSerializer<Object>) com.fasterxml.jackson.databind.ser.std.MapSerializer.construct(String[], JavaType, boolean, TypeSerializer, JsonSerializer<Object>, JsonSerializer<Object>, Object) Since 2.8 use the other overloadcom.fasterxml.jackson.databind.ser.std.MapSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.MapSerializer.withContentInclusion(Object) since 2.9com.fasterxml.jackson.databind.ser.std.NullSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.NumberSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.NumberSerializers.Base.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.NumberSerializers.DoubleSerializer.notFinite(double) com.fasterxml.jackson.databind.ser.std.RawSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.SqlTimeSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StaticListSerializerBase.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdArraySerializers.BooleanArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdArraySerializers.CharArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdArraySerializers.DoubleArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdArraySerializers.FloatArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdArraySerializers.IntArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdArraySerializers.LongArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdArraySerializers.ShortArraySerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdDelegatingSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdJdkSerializers.AtomicBooleanSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdJdkSerializers.AtomicIntegerSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdJdkSerializers.AtomicLongSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdKeySerializers.getDefault() since 2.7com.fasterxml.jackson.databind.ser.std.StdScalarSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.StdSerializer.getSchema(SerializerProvider, Type) Since 2.15, we recommend use of external JSON Schema generator modulecom.fasterxml.jackson.databind.ser.std.StringSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.ToEmptyObjectSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.TokenBufferSerializer.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase.getSchema(SerializerProvider, Type) Since 2.15com.fasterxml.jackson.databind.SerializationConfig.getSerializationInclusion() Since 2.7 useMapperConfigBase.getDefaultPropertyInclusion()
insteadcom.fasterxml.jackson.databind.SerializationConfig.withPropertyInclusion(JsonInclude.Value) Since 2.9; not needed any morecom.fasterxml.jackson.databind.SerializerProvider.mappingException(String, Object...) Since 2.9com.fasterxml.jackson.databind.type.CollectionLikeType.construct(Class<?>, JavaType) Since 2.7, useCollectionLikeType.upgradeFrom(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JavaType)
for constructing instances, given pre-resolvedSimpleType
.com.fasterxml.jackson.databind.type.CollectionLikeType.isTrueCollectionType() Since 2.12 just use instanceofcom.fasterxml.jackson.databind.type.CollectionType.construct(Class<?>, JavaType) Since 2.7, remove from 2.9com.fasterxml.jackson.databind.type.MapLikeType.construct(Class<?>, JavaType, JavaType) com.fasterxml.jackson.databind.type.MapLikeType.isTrueMapType() Since 2.12 just use instanceofcom.fasterxml.jackson.databind.type.MapType.construct(Class<?>, JavaType, JavaType) com.fasterxml.jackson.databind.type.ReferenceType.construct(Class<?>, JavaType) com.fasterxml.jackson.databind.type.ReferenceType.getAnchorType() Since 2.16com.fasterxml.jackson.databind.type.ReferenceType.isAnchorType() Since 2.16com.fasterxml.jackson.databind.type.SimpleType.construct(Class<?>) Since 2.7com.fasterxml.jackson.databind.type.TypeBase.containedTypeName(int) com.fasterxml.jackson.databind.type.TypeFactory.constructParametrizedType(Class<?>, Class<?>, JavaType...) since 2.9 UseTypeFactory.constructParametricType(Class,JavaType...)
insteadcom.fasterxml.jackson.databind.type.TypeFactory.constructSimpleType(Class<?>, Class<?>, JavaType[]) Since 2.7com.fasterxml.jackson.databind.type.TypeFactory.constructType(Type, TypeBindings) Since 2.12com.fasterxml.jackson.databind.type.TypeFactory.findTypeParameters(Class<?>, Class<?>, TypeBindings) Since 2.7 resolve raw type first, then find type parameterscom.fasterxml.jackson.databind.type.TypeFactory.uncheckedSimpleType(Class<?>) Since 2.8, to indicate users should never call this method.com.fasterxml.jackson.databind.type.TypeFactory.withCache(LRUMap<Object, JavaType>) Since 2.12com.fasterxml.jackson.databind.util.BeanUtil.okNameForGetter(AnnotatedMethod, boolean) Since 2.12 replaced withAccessorNamingStrategy
com.fasterxml.jackson.databind.util.BeanUtil.okNameForIsGetter(AnnotatedMethod, String, boolean) Since 2.12 replaced withAccessorNamingStrategy
com.fasterxml.jackson.databind.util.BeanUtil.okNameForMutator(AnnotatedMethod, String, boolean) Since 2.12 replaced withAccessorNamingStrategy
com.fasterxml.jackson.databind.util.BeanUtil.okNameForRegularGetter(AnnotatedMethod, String, boolean) Since 2.12 replaced withAccessorNamingStrategy
com.fasterxml.jackson.databind.util.BeanUtil.okNameForSetter(AnnotatedMethod, boolean) com.fasterxml.jackson.databind.util.ClassUtil.checkAndFixAccess(Member) Since 2.7 call variant that takes boolean flag.com.fasterxml.jackson.databind.util.ClassUtil.findSuperTypes(Class<?>, Class<?>) com.fasterxml.jackson.databind.util.ClassUtil.getDeclaredFields(Class<?>) since 2.11 (just call Class method directly)com.fasterxml.jackson.databind.util.ClassUtil.getDeclaredMethods(Class<?>) since 2.11 (just call Class method directly)com.fasterxml.jackson.databind.util.ClassUtil.getPackageName(Class<?>) Since 2.12 (just call methods directly or check class name)com.fasterxml.jackson.databind.util.ClassUtil.hasGetterSignature(Method) Since 2.6 not used; may be removed before 3.xcom.fasterxml.jackson.databind.util.EnumResolver.constructFor(DeserializationConfig, Class<?>) Since 2.16 useEnumResolver.constructFor(DeserializationConfig, AnnotatedClass)
insteadcom.fasterxml.jackson.databind.util.EnumResolver.constructUsingEnumNamingStrategy(DeserializationConfig, Class<?>, EnumNamingStrategy) com.fasterxml.jackson.databind.util.EnumResolver.constructUsingIndex(DeserializationConfig, Class<Enum<?>>) Since 2.16. UseEnumResolver.constructUsingIndex(DeserializationConfig, AnnotatedClass)
instead.com.fasterxml.jackson.databind.util.EnumResolver.constructUsingMethod(DeserializationConfig, Class<?>, AnnotatedMember) Since 2.16. UseEnumResolver.constructUsingMethod(DeserializationConfig, AnnotatedClass, AnnotatedMember)
instead.com.fasterxml.jackson.databind.util.EnumResolver.constructUsingToString(DeserializationConfig, Class<?>) Since 2.16 useEnumResolver.constructUsingToString(DeserializationConfig, AnnotatedClass)
insteadcom.fasterxml.jackson.databind.util.EnumValues.constructFromName(MapperConfig<?>, Class<Enum<?>>) Since 2.16, useEnumValues.constructFromName(MapperConfig, AnnotatedClass)
instead.com.fasterxml.jackson.databind.util.EnumValues.constructFromToString(MapperConfig<?>, Class<Enum<?>>) since 2.16; useEnumValues.constructFromToString(MapperConfig, AnnotatedClass)
insteadcom.fasterxml.jackson.databind.util.EnumValues.constructUsingEnumNamingStrategy(MapperConfig<?>, Class<Enum<?>>, EnumNamingStrategy) Since 2.16; useEnumValues.constructUsingEnumNamingStrategy(MapperConfig, AnnotatedClass, EnumNamingStrategy)
instead.com.fasterxml.jackson.databind.util.ISO8601Utils.format(Date, boolean, TimeZone) com.fasterxml.jackson.databind.util.StdDateFormat.getISO8601Format(TimeZone, Locale) Since 2.9com.fasterxml.jackson.databind.util.StdDateFormat.getRFC1123Format(TimeZone, Locale) Since 2.9com.fasterxml.jackson.databind.util.TokenBuffer.asCopyOfValue(JsonParser) Since 2.13: useDeserializationContext.bufferAsCopyOfValue(com.fasterxml.jackson.core.JsonParser)
instead.com.fasterxml.jackson.databind.util.TokenBuffer.setFeatureMask(int) com.fasterxml.jackson.dataformat.xml.XmlFactory.setXMLInputFactory(XMLInputFactory) Since 2.12 -- should be set as part of build process (either in builder, or constructor)com.fasterxml.jackson.dataformat.xml.XmlFactory.setXMLOutputFactory(XMLOutputFactory) Since 2.12 -- should be set as part of build process (either in builder, or constructor)com.fasterxml.jackson.dataformat.xml.XmlFactoryBuilder.inputFactory(XMLInputFactory) Since 2.13 useXmlFactoryBuilder.xmlInputFactory()
insteadcom.fasterxml.jackson.dataformat.xml.XmlFactoryBuilder.outputFactory(XMLOutputFactory) Since 2.13 useXmlFactoryBuilder.xmlOutputFactory()
insteadcom.fasterxml.jackson.dataformat.xml.XmlMapper.setDefaultUseWrapper(boolean) Since 2.10 useXmlMapper.Builder.defaultUseWrapper(boolean)
insteadcom.google.gson.Gson.excluder() This method by accident exposes an internal Gson class; it might be removed in a future version.com.google.gson.JsonElement.getAsCharacter() This method is misleading, as it does not get this element as a char but rather as a string's first character.com.google.gson.JsonParser.parse(String) com.google.gson.reflect.TypeToken.isAssignableFrom(Class<?>) this implementation may be inconsistent with javac for types with wildcards.com.mongodb.AggregationOptions.Builder.outputMode(AggregationOptions.OutputMode) There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.com.mongodb.AggregationOptions.getOutputMode() There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.com.mongodb.bulk.BulkWriteResult.isModifiedCountAvailable() no longer needed since all supported server versions support modified countcom.mongodb.bulk.UpdateRequest.getUpdate() useUpdateRequest.getUpdateValue()
insteadcom.mongodb.BulkWriteResult.isModifiedCountAvailable() no longer needed since all supported server versions support modified countcom.mongodb.client.AggregateIterable.useCursor(Boolean) There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.com.mongodb.client.FindIterable.maxScan(long) Deprecated as of MongoDB 4.0 releasecom.mongodb.client.FindIterable.modifiers(Bson) use the individual setters insteadcom.mongodb.client.FindIterable.snapshot(boolean) Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 releasecom.mongodb.client.gridfs.GridFSBucket.downloadToStreamByName(String, OutputStream) useGridFSBucket.downloadToStream(String, OutputStream)
instead.com.mongodb.client.gridfs.GridFSBucket.getDisableMD5() there is no replacement for this method, as MD5 is being removedcom.mongodb.client.gridfs.GridFSBucket.openDownloadStreamByName(String) useGridFSBucket.openDownloadStream(String)
instead.com.mongodb.client.gridfs.GridFSBucket.withDisableMD5(boolean) there is no replacement for this method, as MD5 is being removedcom.mongodb.client.gridfs.GridFSUploadStream.getFileId() useGridFSUploadStream.getObjectId()
instead.com.mongodb.client.gridfs.model.GridFSFile.getAliases() any aliases should be stored in the metadata document instead.com.mongodb.client.gridfs.model.GridFSFile.getContentType() content type information should be stored the metadata document instead.com.mongodb.client.gridfs.model.GridFSFile.getExtraElements() any extra information should be stored in the metadata document instead.com.mongodb.client.gridfs.model.GridFSFile.getMD5() file hashing is deprecated and may be removed in the future.com.mongodb.client.model.CreateCollectionOptions.autoIndex(boolean) this option was deprecated in MongoDB 3.2 and removed in MongodB 4.0com.mongodb.client.model.CreateCollectionOptions.isAutoIndex() this option was deprecated in MongoDB 3.2 and removed in MongodB 4.0com.mongodb.client.model.CreateCollectionOptions.isUsePowerOf2Sizes() As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB servercom.mongodb.client.model.CreateCollectionOptions.usePowerOf2Sizes(Boolean) As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB servercom.mongodb.client.model.DBCollectionFindOptions.getModifiers() use the individual setters insteadcom.mongodb.client.model.DBCollectionFindOptions.modifiers(DBObject) use the individual setters insteadcom.mongodb.client.model.Filters.text(String, String) com.mongodb.client.model.FindOptions.getMaxScan() Deprecated as of MongoDB 4.0 releasecom.mongodb.client.model.FindOptions.getModifiers() use the individual modifier methods instead.com.mongodb.client.model.FindOptions.isSnapshot() Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 releasecom.mongodb.client.model.FindOptions.maxScan(long) Deprecated as of MongoDB 4.0 releasecom.mongodb.client.model.FindOptions.modifiers(Bson) use the individual modifier methods instead.com.mongodb.client.model.FindOptions.snapshot(boolean) Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 releasecom.mongodb.client.model.ReplaceOneModel.getOptions() useReplaceOneModel.getReplaceOptions()
insteadcom.mongodb.client.model.ReplaceOptions.createReplaceOptions(UpdateOptions) there is no replacement for this methodcom.mongodb.client.MongoCollection.count() com.mongodb.client.MongoCollection.replaceOne(Bson, TDocument, UpdateOptions) com.mongodb.client.MongoIterable.forEach(Block<? super TResult>) PreferIterable.forEach(Consumer)
, which was added in Java 8com.mongodb.client.result.UpdateResult.isModifiedCountAvailable() no longer needed since all supported server versions support modified countcom.mongodb.connection.AsyncConnection.commandAsync(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>, SingleResultCallback<T>) com.mongodb.connection.AsyncConnection.killCursorAsync(List<Long>, SingleResultCallback<Void>) com.mongodb.connection.AsyncConnection.queryAsync(MongoNamespace, BsonDocument, BsonDocument, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>, SingleResultCallback<QueryResult<T>>) com.mongodb.connection.ClusterDescription.getAll() UseClusterDescription.getServerDescriptions()
insteadcom.mongodb.connection.ClusterDescription.getAny() Replace with a filter on ServerDescription in the callercom.mongodb.connection.ClusterDescription.getAnyPrimaryOrSecondary() Replace with a filter on ServerDescription in the callercom.mongodb.connection.ClusterDescription.getByServerAddress(ServerAddress) Replace with a filter on ServerDescription in the callercom.mongodb.connection.ClusterDescription.getPrimaries() Replace with a filter on ServerDescription in the callercom.mongodb.connection.ClusterDescription.getSecondaries() Replace with a filter on ServerDescription in the callercom.mongodb.connection.ClusterSettings.Builder.description(String) com.mongodb.connection.ClusterSettings.Builder.maxWaitQueueSize(int) in the next major release, wait queue size limitations will be removedcom.mongodb.connection.ClusterSettings.getDescription() com.mongodb.connection.ClusterSettings.getMaxWaitQueueSize() in the next major release, wait queue size limitations will be removedcom.mongodb.connection.Connection.command(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>) com.mongodb.connection.Connection.killCursor(List<Long>) Replaced byConnection.killCursor(MongoNamespace, List)
com.mongodb.connection.Connection.query(MongoNamespace, BsonDocument, BsonDocument, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>) com.mongodb.connection.ConnectionDescription.getServerVersion() UseConnectionDescription.getMaxWireVersion()
insteadcom.mongodb.connection.ConnectionPoolSettings.Builder.maxWaitQueueSize(int) in the next major release, wait queue size limitations will be removedcom.mongodb.connection.ConnectionPoolSettings.getMaxWaitQueueSize() in the next major release, wait queue size limitations will be removedcom.mongodb.connection.DefaultClusterFactory.create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener, CommandListener) com.mongodb.connection.DefaultClusterFactory.createCluster(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, CommandListener, String, MongoDriverInformation) com.mongodb.connection.ServerDescription.Builder.version(ServerVersion) UseServerDescription.Builder.maxWireVersion
insteadcom.mongodb.connection.ServerDescription.getVersion() UseServerDescription.getMaxWireVersion()
insteadcom.mongodb.connection.SocketSettings.Builder.keepAlive(boolean) configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.com.mongodb.connection.SocketSettings.isKeepAlive() configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.com.mongodb.ConnectionString.getCredentialList() com.mongodb.ConnectionString.getRetryWrites() com.mongodb.ConnectionString.getStreamType() UseMongoClientSettings.Builder.streamFactoryFactory(StreamFactoryFactory)
to configure the stream type programmaticallycom.mongodb.ConnectionString.getThreadsAllowedToBlockForConnectionMultiplier() in the next major release, wait queue size limitations will be removedcom.mongodb.ConnectionString.getURI() com.mongodb.DB.addOption(int) Replaced withDBCursor.addOption(int)
com.mongodb.DB.addUser(String, char[]) UseDB.command
to call either the createUser or updateUser commandcom.mongodb.DB.doEval(String, Object...) The eval command was deprecated in MongoDB 3.0com.mongodb.DB.eval(String, Object...) The eval command was deprecated in MongoDB 3.0com.mongodb.DB.getCollectionFromString(String) PreferDB.getCollection(String)
com.mongodb.DB.getMongo() UseDB.getMongoClient()
insteadcom.mongodb.DB.getOptions() Replaced withDBCursor.getOptions()
com.mongodb.DB.getStats() PreferDB.command(DBObject)
to run the dbStats commandcom.mongodb.DB.removeUser(String) UseDB.command
to call the dropUser commandcom.mongodb.DB.resetOptions() Replaced withDBCursor.resetOptions()
com.mongodb.DB.setOptions(int) Replaced withDBCursor.setOptions(int)
com.mongodb.DB.slaveOk() Replaced withReadPreference.secondaryPreferred()
com.mongodb.DBCollection.addOption(int) Replaced withDBCursor.addOption(int)
com.mongodb.DBCollection.aggregate(DBObject, DBObject...) UseDBCollection.aggregate(List, AggregationOptions)
insteadcom.mongodb.DBCollection.find(DBObject, DBObject, int, int, int) useDBCursor.skip(int)
,DBCursor.batchSize(int)
andDBCursor.setOptions(int)
on theDBCursor
returned fromDBCollection.find(DBObject, DBObject)
com.mongodb.DBCollection.getCount(DBObject, DBObject) com.mongodb.DBCollection.getHintFields() PreferDBCursor.hint(DBObject)
com.mongodb.DBCollection.getOptions() Replaced withDBCursor.getOptions()
com.mongodb.DBCollection.group(DBObject, DBObject, DBObject, String) The group command was deprecated in MongoDB 3.4com.mongodb.DBCollection.parallelScan(ParallelScanOptions) the parallelCollectionScan command will be removed in MongoDB 4.2com.mongodb.DBCollection.resetOptions() Replaced withDBCursor.resetOptions()
com.mongodb.DBCollection.setHintFields(List<? extends DBObject>) PreferDBCursor.hint(DBObject)
com.mongodb.DBCollection.setOptions(int) Replaced withDBCursor.setOptions(int)
com.mongodb.DBCollection.slaveOk() Replaced withReadPreference.secondaryPreferred()
com.mongodb.DBCursor.addOption(int) Prefer per-option methods, e.g.DBCursor.cursorType(CursorType)
,DBCursor.noCursorTimeout(boolean)
, etc.com.mongodb.DBCursor.addSpecial(String, Object) Prefer per-operator methods, e.g.DBCursor.comment(String)
,DBCursor.explain()
, etc.com.mongodb.DBCursor.explain() Replace with direct use of the explain command using the runCommand helper methodcom.mongodb.DBCursor.getOptions() com.mongodb.DBCursor.hint(String) PreferDBCursor.hint(DBObject)
com.mongodb.DBCursor.maxScan(int) Deprecated as of MongoDB 4.0 releasecom.mongodb.DBCursor.resetOptions() com.mongodb.DBCursor.setOptions(int) com.mongodb.DBCursor.showDiskLoc() showDiskLoc has been deprecated in the MongoDB server. There is no replacement for it.com.mongodb.DBCursor.slaveOk() Replaced withReadPreference.secondaryPreferred()
com.mongodb.DBCursor.snapshot() Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 releasecom.mongodb.event.ConnectionPoolListener.waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent) In the next major release, this event will no longer be publishedcom.mongodb.event.ConnectionPoolListener.waitQueueExited(ConnectionPoolWaitQueueExitedEvent) In the next major release, this event will no longer be publishedcom.mongodb.gridfs.GridFSFile.containsKey(String) com.mongodb.gridfs.GridFSFile.getMD5() there is no replacement for this methodcom.mongodb.gridfs.GridFSFile.validate() there is no replacement for this methodcom.mongodb.LazyDBList.toString() there is no replacement for this method, as the driver no longer supports generating top-level JSON arrays. To encode an instance of this class to JSON it must be embedded inside a document.com.mongodb.management.ConnectionPoolStatisticsMBean.getWaitQueueSize() In the next major release, wait queue events will no longer be published so this statistic will be unavailablecom.mongodb.Mongo.addOption(int) Add options instead on instances ofDBCursor
com.mongodb.Mongo.fsync(boolean) com.mongodb.Mongo.fsyncAndLock() com.mongodb.Mongo.getAddress() com.mongodb.Mongo.getAllAddress() com.mongodb.Mongo.getConnectPoint() com.mongodb.Mongo.getDatabaseNames() Replaced withMongoClient.listDatabaseNames()
com.mongodb.Mongo.getDB(String) This method is not currently scheduled for removal, but preferMongoClient.getDatabase(String)
for new code. Note thatDB
andMongoDatabase
can be used together in the same application, whith the sameMongoClient
instance.com.mongodb.Mongo.getMaxBsonObjectSize() com.mongodb.Mongo.getMongoOptions() Please useMongoClient
class to connect to server and correspondingMongoClient.getMongoClientOptions()
com.mongodb.Mongo.getOptions() Get options instead from instances ofDBCursor
com.mongodb.Mongo.getReplicaSetStatus() com.mongodb.Mongo.getServerAddressList() com.mongodb.Mongo.getUsedDatabases() com.mongodb.Mongo.Holder.connect(MongoURI) Please useMongo.Holder.connect(MongoClientURI)
instead.com.mongodb.Mongo.isLocked() com.mongodb.Mongo.resetOptions() Reset options instead on instances ofDBCursor
com.mongodb.Mongo.setOptions(int) Set options on instances ofDBCursor
com.mongodb.Mongo.setReadPreference(ReadPreference) Set the default read preference with eitherMongoClientURI
orMongoClientOptions
com.mongodb.Mongo.setWriteConcern(WriteConcern) Set the default write concern with eitherMongoClientURI
orMongoClientOptions
com.mongodb.Mongo.slaveOk() Replaced withReadPreference.secondaryPreferred()
com.mongodb.Mongo.unlock() com.mongodb.MongoClient.getCredentialsList() PreferMongoClient.getCredential()
com.mongodb.MongoClientOptions.Builder.alwaysUseMBeans(boolean) there is no replacement for this propertycom.mongodb.MongoClientOptions.Builder.description(String) com.mongodb.MongoClientOptions.Builder.legacyDefaults() there is no replacement for this methodcom.mongodb.MongoClientOptions.Builder.socketFactory(SocketFactory) com.mongodb.MongoClientOptions.Builder.socketKeepAlive(boolean) configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.com.mongodb.MongoClientOptions.Builder.threadsAllowedToBlockForConnectionMultiplier(int) in the next major release, wait queue size limitations will be removedcom.mongodb.MongoClientOptions.getDescription() com.mongodb.MongoClientOptions.getSocketFactory() com.mongodb.MongoClientOptions.getThreadsAllowedToBlockForConnectionMultiplier() in the next major release, wait queue size limitations will be removedcom.mongodb.MongoClientOptions.isAlwaysUseMBeans() there is no replacement for this propertycom.mongodb.MongoClientOptions.isSocketKeepAlive() configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.com.mongodb.MongoCredential.createMongoCRCredential(String, String, char[]) MONGODB-CR was replaced by SCRAM-SHA-1 in MongoDB 3.0, and is now deprecated. Use theMongoCredential.createCredential(String, String, char[])
factory method instead.com.mongodb.operation.AggregateOperation.getUseCursor() There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.com.mongodb.operation.AggregateOperation.useCursor(Boolean) There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.com.mongodb.operation.ChangeStreamOperation.getResumeToken() useChangeStreamOperation.getResumeAfter()
insteadcom.mongodb.operation.CreateCollectionOperation.isUsePowerOf2Sizes() As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB servercom.mongodb.operation.CreateCollectionOperation.usePowerOf2Sizes(Boolean) As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB servercom.mongodb.operation.FindOperation.getMaxScan() Deprecated as of MongoDB 4.0 releasecom.mongodb.operation.FindOperation.isSnapshot() Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 releasecom.mongodb.operation.FindOperation.maxScan(long) Deprecated as of MongoDB 4.0 releasecom.mongodb.operation.FindOperation.modifiers(BsonDocument) use the individual setters insteadcom.mongodb.operation.FindOperation.snapshot(boolean) Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 releasecom.mongodb.operation.FsyncUnlockOperation.execute(WriteBinding) useFsyncUnlockOperation.execute(ReadBinding)
instead.com.mongodb.ReflectionDBObject.JavaWrapper.containsKey(String) com.mongodb.ServerAddress.sameHost(String) use theServerAddress.equals(Object)
method insteadcom.mongodb.WriteConcern.callGetLastError() com.mongodb.WriteConcern.fsync() PreferWriteConcern.getJournal()
com.mongodb.WriteConcern.getFsync() PreferWriteConcern.getJournal()
com.mongodb.WriteConcern.getJ() PreferWriteConcern.getJournal()
com.mongodb.WriteConcern.getWtimeout() com.mongodb.WriteConcern.majorityWriteConcern(int, boolean, boolean) com.mongodb.WriteConcern.withFsync(boolean) com.mongodb.WriteConcern.withJ(boolean) com.sun.mail.imap.protocol.IMAPProtocol.id(String) As of JavaMail 1.5.1, replaced byid(Map<String,String>)
com.sun.mail.util.PropUtil.getBooleanSessionProperty(Session, String, boolean) com.sun.mail.util.PropUtil.getIntSessionProperty(Session, String, int) com.sun.mail.util.SocketFetcher.startTLS(Socket) opennlp.tools.chunker.ChunkerModel.getChunkerModel() use getChunkerSequenceModel instead. This method will be removed soon.opennlp.tools.dictionary.serializer.DictionaryEntryPersistor.serialize(OutputStream, Iterator<Entry>) opennlp.tools.ml.AbstractEventTrainer.isValid() opennlp.tools.ml.AbstractTrainer.init(Map<String, String>, Map<String, String>) opennlp.tools.ml.AbstractTrainer.isValid() UseAbstractTrainer.validate()
instead.opennlp.tools.ml.EventModelSequenceTrainer.init(Map<String, String>, Map<String, String>) opennlp.tools.ml.EventTrainer.init(Map<String, String>, Map<String, String>) opennlp.tools.ml.maxent.quasinewton.QNTrainer.init(Map<String, String>, Map<String, String>) opennlp.tools.ml.maxent.quasinewton.QNTrainer.isValid() opennlp.tools.ml.perceptron.PerceptronTrainer.isValid() opennlp.tools.ml.perceptron.SimplePerceptronSequenceTrainer.isValid() opennlp.tools.ml.SequenceTrainer.init(Map<String, String>, Map<String, String>) opennlp.tools.namefind.NameFinderEventStream.generateOutcomes(Span[], String, int) use the BioCodec implementation of the SequenceValidator instead!opennlp.tools.postag.POSModel.getPosModel() use getPosSequenceModel instead. This method will be removed soon. Only required for Parser 1.5.x backward compatibility. Newer models don't need this anymore.opennlp.tools.postag.POSTaggerFactory.create(String, Dictionary, TagDictionary) opennlp.tools.postag.POSTaggerFactory.getDictionary() this will be reduced in visibility and later removedopennlp.tools.postag.POSTaggerFactory.setDictionary(Dictionary) opennlp.tools.util.featuregen.AggregatedFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.BigramNameFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.BrownClusterBigramFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.BrownClusterTokenClassFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.BrownClusterTokenFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.CachedFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.CharacterNgramFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.DefinitionFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.DictionaryFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.DocumentBeginFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.PosTaggerFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.POSTaggerNameFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.PrefixFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.PreviousMapFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.SentenceFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.SuffixFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.TokenClassFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.TokenFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.TokenPatternFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.TrigramNameFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.WindowFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.featuregen.WordClusterFeatureGeneratorFactory.create(Element, FeatureGeneratorResourceProvider) opennlp.tools.util.TrainingParameters.getSettings(String) useTrainingParameters.getObjectSettings(String)
insteadorg.apache.abdera.i18n.text.Localizer.format(String, Object...) org.apache.abdera.i18n.text.Localizer.formatValue(String, Object...) org.apache.abdera.util.ServiceUtil.loadimpls(String) org.apache.abdera.util.ServiceUtil.newFactoryInstance(Abdera) org.apache.abdera.util.ServiceUtil.newInstance(String, String, Abdera) org.apache.abdera.util.ServiceUtil.newParserFactoryInstance(Abdera) org.apache.abdera.util.ServiceUtil.newParserInstance(Abdera) org.apache.abdera.util.ServiceUtil.newStreamWriterInstance(Abdera) org.apache.abdera.util.ServiceUtil.newWriterFactoryInstance(Abdera) org.apache.abdera.util.ServiceUtil.newWriterInstance(Abdera) org.apache.abdera.util.ServiceUtil.newXPathInstance(Abdera) org.apache.commons.codec.binary.Base64.isArrayByteBase64(byte[]) 1.5 UseBase64.isBase64(byte[])
, will be removed in 2.0.org.apache.commons.codec.digest.DigestUtils.getShaDigest() (1.11) UseDigestUtils.getSha1Digest()
org.apache.commons.codec.digest.DigestUtils.sha(byte[]) (1.11) UseDigestUtils.sha1(byte[])
org.apache.commons.codec.digest.DigestUtils.shaHex(byte[]) (1.11) UseDigestUtils.sha1Hex(byte[])
org.apache.commons.codec.digest.HmacUtils.getHmacMd5(byte[]) (1.11) UsegetInitializedMac(HmacAlgorithms.HMAC_MD5, byte[])
org.apache.commons.codec.digest.HmacUtils.getHmacSha1(byte[]) (1.11) UsegetInitializedMac(HmacAlgorithms.HMAC_SHA_1, byte[])
org.apache.commons.codec.digest.HmacUtils.getHmacSha256(byte[]) (1.11) UsegetInitializedMac(HmacAlgorithms.HMAC_SHA_256, byte[])
org.apache.commons.codec.digest.HmacUtils.getHmacSha384(byte[]) (1.11) UsegetInitializedMac(HmacAlgorithms.HMAC_SHA_384, byte[])
org.apache.commons.codec.digest.HmacUtils.getHmacSha512(byte[]) (1.11) UsegetInitializedMac(HmacAlgorithms.HMAC_SHA_512, byte[])
org.apache.commons.codec.digest.HmacUtils.hmacMd5(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmac(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacMd5Hex(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmacHex(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha1(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmac(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha1Hex(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmacHex(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha256(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmac(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha256Hex(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmacHex(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha384(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmac(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha384Hex(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmacHex(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha512(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmac(byte[])
org.apache.commons.codec.digest.HmacUtils.hmacSha512Hex(byte[], byte[]) (1.11) Usenew HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmacHex(byte[])
org.apache.commons.codec.digest.MurmurHash3.hash128(byte[], int, int, int) UseMurmurHash3.hash128x64(byte[], int, int, int)
. This corrects the seed initialization.org.apache.commons.codec.digest.MurmurHash3.hash32(byte[]) UseMurmurHash3.hash32x86(byte[], int, int, int)
. This corrects the processing of trailing bytes.org.apache.commons.codec.digest.MurmurHash3.hash64(byte[]) Not part of the MurmurHash3 implementation. Use half of the hash bytes fromMurmurHash3.hash128x64(byte[])
.org.apache.commons.codec.language.bm.Rule.Phoneme.join(Rule.Phoneme) since 1.9org.apache.commons.codec.language.Soundex.getMaxLength() This feature is not needed since the encoding size must be constant. Will be removed in 2.0.org.apache.commons.codec.language.Soundex.setMaxLength(int) This feature is not needed since the encoding size must be constant. Will be removed in 2.0.org.apache.commons.codec.net.URLCodec.getEncoding() UseURLCodec.getDefaultCharset()
, will be removed in 2.0.org.apache.commons.collections.CollectionUtils.index(Object, int) useCollectionUtils.get(Object, int)
instead. Will be removed in v4.0org.apache.commons.collections4.CollectionUtils.cardinality(O, Iterable<? super O>) since 4.1, useIterableUtils.frequency(Iterable, Object)
instead. Be aware that the order of parameters has changed.org.apache.commons.collections4.CollectionUtils.countMatches(Iterable<C>, Predicate<? super C>) since 4.1, useIterableUtils.countMatches(Iterable, Predicate)
insteadorg.apache.commons.collections4.CollectionUtils.exists(Iterable<C>, Predicate<? super C>) since 4.1, useIterableUtils.matchesAny(Iterable, Predicate)
insteadorg.apache.commons.collections4.CollectionUtils.find(Iterable<T>, Predicate<? super T>) since 4.1, useIterableUtils.find(Iterable, Predicate)
insteadorg.apache.commons.collections4.CollectionUtils.forAllButLastDo(Iterable<T>, C) since 4.1, useIterableUtils.forEachButLast(Iterable, Closure)
insteadorg.apache.commons.collections4.CollectionUtils.forAllDo(Iterable<T>, C) since 4.1, useIterableUtils.forEach(Iterable, Closure)
insteadorg.apache.commons.collections4.CollectionUtils.get(Iterator<T>, int) since 4.1, useIteratorUtils.get(Iterator, int)
insteadorg.apache.commons.collections4.CollectionUtils.matchesAll(Iterable<C>, Predicate<? super C>) since 4.1, useIterableUtils.matchesAll(Iterable, Predicate)
insteadorg.apache.commons.collections4.CollectionUtils.synchronizedCollection(Collection<C>) since 4.1, useCollections.synchronizedCollection(Collection)
insteadorg.apache.commons.collections4.CollectionUtils.unmodifiableCollection(Collection<? extends C>) since 4.1, useCollections.unmodifiableCollection(Collection)
insteadorg.apache.commons.collections4.MapUtils.multiValueMap(Map<K, ? super Collection<V>>) since 4.1, useMultiValuedMap
insteadorg.apache.commons.collections4.TransformerUtils.switchTransformer(Predicate<? super I>, Transformer<? super I, ? extends O>, Transformer<? super I, ? extends O>) org.apache.commons.compress.archivers.ar.ArArchiveInputStream.getNextArEntry() org.apache.commons.compress.archivers.ArchiveInputStream.getCount() this method may yield wrong results for large archives, useArchiveInputStream.getBytesRead()
instead.org.apache.commons.compress.archivers.ArchiveOutputStream.getCount() this method may yield wrong results for large archives, use #getBytesWritten insteadorg.apache.commons.compress.archivers.ArchiveStreamFactory.setEntryEncoding(String) 1.10 useArchiveStreamFactory(String)
to specify the encodingorg.apache.commons.compress.archivers.cpio.CpioArchiveEntry.getHeaderPadCount() This method doesn't properly work for multi-byte encodings. And creates corrupt archives. UseCpioArchiveEntry.getHeaderPadCount(Charset)
orCpioArchiveEntry.getHeaderPadCount(long)
in any case.org.apache.commons.compress.archivers.cpio.CpioArchiveInputStream.getNextCPIOEntry() org.apache.commons.compress.archivers.dump.DumpArchiveInputStream.getCount() org.apache.commons.compress.archivers.dump.DumpArchiveInputStream.getNextDumpEntry() org.apache.commons.compress.archivers.jar.JarArchiveEntry.getCertificates() since 1.5, not currently implementedorg.apache.commons.compress.archivers.jar.JarArchiveEntry.getManifestAttributes() since 1.5, do not use; always returns nullorg.apache.commons.compress.archivers.jar.JarArchiveInputStream.getNextJarEntry() org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry.getCrc() use getCrcValue instead.org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry.javaTimeToNtfsTime(Date) UseFileTimes.toNtfsTime(Date)
instead.org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry.ntfsTimeToJavaTime(long) UseFileTimes.ntfsTimeToDate(long)
instead.org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry.setCrc(int) use setCrcValue instead.org.apache.commons.compress.archivers.sevenz.SevenZOutputFile.putArchiveEntry(ArchiveEntry) org.apache.commons.compress.archivers.tar.TarArchiveEntry.getGroupId() use #getLongGroupId instead as group ids can be bigger thanInteger.MAX_VALUE
org.apache.commons.compress.archivers.tar.TarArchiveEntry.getUserId() use #getLongUserId instead as user ids can be bigger thanInteger.MAX_VALUE
org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry() org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.getCount() org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.getRecordSize() org.apache.commons.compress.archivers.zip.ExtraFieldUtils.register(Class<?>) UseZipArchiveInputStream.setExtraFieldSupport(java.util.function.Function<org.apache.commons.compress.archivers.zip.ZipShort, org.apache.commons.compress.archivers.zip.ZipExtraField>)
instead to not leak instances between archives and applications.org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.getNextZipEntry() org.apache.commons.compress.compressors.bzip2.BZip2Utils.getCompressedFilename(String) org.apache.commons.compress.compressors.bzip2.BZip2Utils.getUncompressedFilename(String) org.apache.commons.compress.compressors.bzip2.BZip2Utils.isCompressedFilename(String) org.apache.commons.compress.compressors.CompressorInputStream.getCount() this method may yield wrong results for large archives, use #getBytesRead insteadorg.apache.commons.compress.compressors.CompressorStreamFactory.setDecompressConcatenated(boolean) 1.10 use theCompressorStreamFactory(boolean)
constructor insteadorg.apache.commons.compress.compressors.FileNameUtil.getCompressedFilename(String) org.apache.commons.compress.compressors.FileNameUtil.getUncompressedFilename(String) org.apache.commons.compress.compressors.FileNameUtil.isCompressedFilename(String) org.apache.commons.compress.compressors.gzip.GzipParameters.getFilename() org.apache.commons.compress.compressors.gzip.GzipParameters.setFilename(String) org.apache.commons.compress.compressors.gzip.GzipUtils.getCompressedFilename(String) org.apache.commons.compress.compressors.gzip.GzipUtils.getUncompressedFilename(String) org.apache.commons.compress.compressors.gzip.GzipUtils.isCompressedFilename(String) org.apache.commons.compress.compressors.lzma.LZMAUtils.getCompressedFilename(String) org.apache.commons.compress.compressors.lzma.LZMAUtils.getUncompressedFilename(String) org.apache.commons.compress.compressors.lzma.LZMAUtils.isCompressedFilename(String) org.apache.commons.compress.compressors.xz.XZUtils.getCompressedFilename(String) org.apache.commons.compress.compressors.xz.XZUtils.getUncompressedFilename(String) org.apache.commons.compress.compressors.xz.XZUtils.isCompressedFilename(String) org.apache.commons.compress.utils.ArchiveUtils.isEqual(byte[], byte[]) UseArrays.equals(byte[], byte[])
.org.apache.commons.compress.utils.ByteUtils.fromLittleEndian(InputStream, int) Unusedorg.apache.commons.compress.utils.ByteUtils.toLittleEndian(DataOutput, long, int) Unusedorg.apache.commons.compress.utils.ChecksumCalculatingInputStream.getValue() UseCheckedInputStream.getChecksum()
andChecksum.getValue()
.org.apache.commons.compress.utils.FileNameUtils.getBaseName(String) No longer used, no replacement.org.apache.commons.compress.utils.FileNameUtils.getExtension(String) org.apache.commons.compress.utils.IOUtils.closeQuietly(Closeable) org.apache.commons.compress.utils.IOUtils.copy(File, OutputStream) org.apache.commons.compress.utils.IOUtils.copyRange(InputStream, long, OutputStream) org.apache.commons.compress.utils.IOUtils.read(File, byte[]) UseFiles.readAllBytes(java.nio.file.Path)
.org.apache.commons.compress.utils.IOUtils.toByteArray(InputStream) org.apache.commons.compress.utils.TimeUtils.ntfsTimeToDate(long) org.apache.commons.compress.utils.TimeUtils.ntfsTimeToFileTime(long) org.apache.commons.compress.utils.TimeUtils.toDate(FileTime) org.apache.commons.compress.utils.TimeUtils.toFileTime(Date) org.apache.commons.compress.utils.TimeUtils.toNtfsTime(Date) org.apache.commons.fileupload.DefaultFileItemFactory.createItem(String, String, boolean, String) 1.1 UseDiskFileItemFactory
instead.org.apache.commons.fileupload.DiskFileUpload.getFileItemFactory() 1.1 UseFileUpload
instead.org.apache.commons.fileupload.DiskFileUpload.getRepositoryPath() 1.1 UseDiskFileItemFactory
instead.org.apache.commons.fileupload.DiskFileUpload.getSizeThreshold() 1.1 UseDiskFileItemFactory
instead.org.apache.commons.fileupload.DiskFileUpload.parseRequest(HttpServletRequest, int, long, String) 1.1 UseServletFileUpload
instead.org.apache.commons.fileupload.DiskFileUpload.setFileItemFactory(FileItemFactory) 1.1 UseFileUpload
instead.org.apache.commons.fileupload.DiskFileUpload.setRepositoryPath(String) 1.1 UseDiskFileItemFactory
instead.org.apache.commons.fileupload.DiskFileUpload.setSizeThreshold(int) 1.1 UseDiskFileItemFactory
instead.org.apache.commons.fileupload.FileUploadBase.isMultipartContent(HttpServletRequest) 1.1 Use the method onServletFileUpload
instead.org.apache.commons.fileupload.FileUploadBase.parseRequest(HttpServletRequest) 1.1 UseServletFileUpload.parseRequest(HttpServletRequest)
instead.org.apache.commons.fileupload.portlet.PortletRequestContext.getContentLength() 1.3 UsePortletRequestContext.contentLength()
insteadorg.apache.commons.fileupload.RequestContext.getContentLength() 1.3 UseUploadContext.contentLength()
insteadorg.apache.commons.fileupload.servlet.ServletRequestContext.getContentLength() 1.3 UseServletRequestContext.contentLength()
insteadorg.apache.commons.httpclient.HostConfiguration.getVirtualHost() use HostParamsorg.apache.commons.httpclient.HostConfiguration.isHostSet() no longer usedorg.apache.commons.httpclient.HostConfiguration.isProxySet() no longer usedorg.apache.commons.httpclient.HostConfiguration.setHost(String, String, int, Protocol) #setHost(String, int, Protocol)org.apache.commons.httpclient.HttpState.getCookiePolicy() UseHttpMethodParams.getCookiePolicy()
,HttpMethod.getParams()
.org.apache.commons.httpclient.HttpState.getCookies(String, int, String, boolean) use CookieSpec#match(String, int, String, boolean, Cookie)org.apache.commons.httpclient.HttpState.getCredentials(String, String) use #getCredentials(AuthScope)org.apache.commons.httpclient.HttpState.getProxyCredentials(String, String) use #getProxyCredentials(AuthScope)org.apache.commons.httpclient.HttpState.isAuthenticationPreemptive() UseHttpClientParams.isAuthenticationPreemptive()
,HttpClient.getParams()
.org.apache.commons.httpclient.HttpState.setAuthenticationPreemptive(boolean) UseHttpClientParams.setAuthenticationPreemptive(boolean)
,HttpClient.getParams()
.org.apache.commons.httpclient.HttpState.setCookiePolicy(int) UseHttpMethodParams.setCookiePolicy(String)
,HttpMethod.getParams()
.org.apache.commons.httpclient.HttpState.setCredentials(String, String, Credentials) use #setCredentials(AuthScope, Credentials)org.apache.commons.httpclient.HttpState.setProxyCredentials(String, String, Credentials) use #setProxyCredentials(AuthScope, Credentials)org.apache.commons.io.CopyUtils.copy(byte[], Writer) UseCopyUtils.copy(byte[], Writer, String)
insteadorg.apache.commons.io.file.PathUtils.readBasicFileAttributesUnchecked(Path) org.apache.commons.io.FileCleaner.exitWhenFinished() org.apache.commons.io.FileCleaner.getTrackCount() org.apache.commons.io.FileCleaner.track(File, Object) org.apache.commons.io.filefilter.FileFilterUtils.andFileFilter(IOFileFilter, IOFileFilter) org.apache.commons.io.filefilter.FileFilterUtils.orFileFilter(IOFileFilter, IOFileFilter) org.apache.commons.io.FileSystemUtils.freeSpace(String) Use freeSpaceKb(String) Deprecated from 1.3, may be removed in 2.0org.apache.commons.io.FileSystemUtils.freeSpaceKb() As of 2.6 deprecated without replacement. Please useFileStore.getUsableSpace()
.org.apache.commons.io.FileUtils.readFileToString(File) UseFileUtils.readFileToString(File, Charset)
instead (and specify the appropriate encoding)org.apache.commons.io.FileUtils.readLines(File) UseFileUtils.readLines(File, Charset)
instead (and specify the appropriate encoding)org.apache.commons.io.FileUtils.write(File, CharSequence) UseFileUtils.write(File, CharSequence, Charset)
instead (and specify the appropriate encoding)org.apache.commons.io.FileUtils.writeStringToFile(File, String) UseFileUtils.writeStringToFile(File, String, Charset)
instead (and specify the appropriate encoding)org.apache.commons.io.input.BoundedInputStream.getMaxLength() org.apache.commons.io.input.BoundedInputStream.setPropagateClose(boolean) UseBoundedInputStream.AbstractBuilder.setPropagateClose(boolean)
.org.apache.commons.io.input.CountingInputStream.getCount() org.apache.commons.io.input.CountingInputStream.resetCount() org.apache.commons.io.input.Tailer.create(File, Charset, TailerListener, long, boolean, boolean, int) org.apache.commons.io.input.Tailer.getDelay() org.apache.commons.io.input.Tailer.stop() UseTailer.close()
.org.apache.commons.io.IOUtils.copy(InputStream, Writer) UseIOUtils.copy(InputStream, Writer, Charset)
insteadorg.apache.commons.io.IOUtils.readLines(InputStream) UseIOUtils.readLines(InputStream, Charset)
insteadorg.apache.commons.io.IOUtils.toByteArray(Reader) UseIOUtils.toByteArray(Reader, Charset)
insteadorg.apache.commons.io.IOUtils.toCharArray(InputStream) UseIOUtils.toCharArray(InputStream, Charset)
insteadorg.apache.commons.io.IOUtils.toInputStream(CharSequence) UseIOUtils.toInputStream(CharSequence, Charset)
insteadorg.apache.commons.io.IOUtils.toString(byte[]) UseString(byte[])
insteadorg.apache.commons.io.IOUtils.write(byte[], Writer) UseIOUtils.write(byte[], Writer, Charset)
insteadorg.apache.commons.io.IOUtils.writeLines(Collection<?>, String, OutputStream) org.apache.commons.io.LineIterator.closeQuietly(LineIterator) As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle suppressed exceptions manually.org.apache.commons.io.output.AbstractByteArrayOutputStream.toString() UseAbstractByteArrayOutputStream.toString(String)
insteadorg.apache.commons.lang.builder.ReflectionToStringBuilder.toString(Object, ToStringStyle, boolean, Class) org.apache.commons.lang.builder.StandardToStringStyle.isShortClassName() UseStandardToStringStyle.isUseShortClassName()
Method will be removed in Commons Lang 3.0.org.apache.commons.lang.builder.StandardToStringStyle.setShortClassName(boolean) UseStandardToStringStyle.setUseShortClassName(boolean)
Method will be removed in Commons Lang 3.0.org.apache.commons.lang.CharSetUtils.evaluateSet(String[]) UseCharSet.getInstance(String[])
. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.CharSetUtils.translate(String, String, String) UseStringUtils.replaceChars(String, String, String)
. Method will be removed in Commons Lang 3.0. NOTE: StringUtils#replaceChars behaves differently when 'searchChars' is longer than 'replaceChars'. CharSetUtils#translate will use the last char of the replacement string whereas StringUtils#replaceChars will deleteorg.apache.commons.lang.math.NumberUtils.stringToInt(String) UseNumberUtils.toInt(String)
This method will be removed in Commons Lang 3.0org.apache.commons.lang.ObjectUtils.appendIdentityToString(StringBuffer, Object) The design of this method is bad - see LANG-360. Instead, use identityToString(StringBuffer, Object).org.apache.commons.lang.StringUtils.capitalise(String) Use the standardly namedStringUtils.capitalize(String)
. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.capitaliseAllWords(String) Use the relocatedWordUtils.capitalize(String)
. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.chompLast(String) UseStringUtils.chomp(String)
instead. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.chopNewline(String) UseStringUtils.chomp(String)
instead. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.clean(String) Use the clearer namedStringUtils.trimToEmpty(String)
. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.concatenate(Object[]) Use the better namedStringUtils.join(Object[])
instead. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.deleteSpaces(String) Use the better localizedStringUtils.deleteWhitespace(String)
. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.escape(String) UseStringEscapeUtils.escapeJava(String)
This method will be removed in Commons Lang 3.0org.apache.commons.lang.StringUtils.getChomp(String, String) UseStringUtils.substringAfterLast(String, String)
instead (although this doesn't include the separator) Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.getNestedString(String, String) Use the better namedStringUtils.substringBetween(String, String)
. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.getPrechomp(String, String) UseStringUtils.substringBefore(String,String)
instead (although this doesn't include the separator). Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.overlayString(String, String, int, int) Use better namedStringUtils.overlay(String, String, int, int)
instead. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.prechomp(String, String) UseStringUtils.substringAfter(String,String)
instead. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.reverseDelimitedString(String, String) UseStringUtils.reverseDelimited(String, char)
instead. This method is broken as the join doesn't know which char to use. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.StringUtils.uncapitalise(String) Use the standardly namedStringUtils.uncapitalize(String)
. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.SystemUtils.getJavaVersion() UseSystemUtils.JAVA_VERSION_FLOAT
instead. Method will be removed in Commons Lang 3.0.org.apache.commons.lang.time.DateUtils.add(Date, int, int) Will become privately scoped in 3.0org.apache.commons.lang3.ArrayUtils.add(boolean[], int, boolean) this method has been superseded byArrayUtils.insert(int, boolean[], boolean...)
and may be removed in a future release. Please note the handling ofnull
input arrays differs in the new method: insertingX
into anull
array results innull
notX
.org.apache.commons.lang3.ArrayUtils.isEquals(Object, Object) this method has been replaced byjava.util.Objects.deepEquals(Object, Object)
and will be removed from future releases.org.apache.commons.lang3.ArrayUtils.removeAllOccurences(boolean[], boolean) org.apache.commons.lang3.CharEncoding.isSupported(String) Please useCharset.isSupported(String)
instead, although be aware thatnull
values are not accepted by that method and anIllegalCharsetNameException
may be thrown.org.apache.commons.lang3.CharUtils.toCharacterObject(char) Java 5 introducedCharacter.valueOf(char)
which caches chars 0 through 127.org.apache.commons.lang3.exception.ExceptionUtils.getCause(Throwable) This feature will be removed in Lang 4, useThrowable.getCause()
insteadorg.apache.commons.lang3.exception.ExceptionUtils.getDefaultCauseMethodNames() This feature will be removed in Lang 4org.apache.commons.lang3.exception.ExceptionUtils.rethrow(Throwable) org.apache.commons.lang3.exception.ExceptionUtils.throwUnchecked(T) org.apache.commons.lang3.math.NumberUtils.isNumber(String) This feature will be removed in Lang 4, useNumberUtils.isCreatable(String)
insteadorg.apache.commons.lang3.ObjectUtils.equals(Object, Object) this method has been replaced byjava.util.Objects.equals(Object, Object)
in Java 7 and will be removed from future releases.org.apache.commons.lang3.ObjectUtils.hashCode(Object) this method has been replaced byjava.util.Objects.hashCode(Object)
in Java 7 and will be removed in future releasesorg.apache.commons.lang3.ObjectUtils.hashCodeMulti(Object...) this method has been replaced byjava.util.Objects.hash(Object...)
in Java 7 and will be removed in future releases.org.apache.commons.lang3.ObjectUtils.identityToString(StrBuilder, Object) as of 3.6, because StrBuilder was moved to commons-text, use one of the otheridentityToString
methods insteadorg.apache.commons.lang3.ObjectUtils.toString(Object) this method has been replaced byjava.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 an empty String. To preserve behavior usejava.util.Objects.toString(myObject, "")
org.apache.commons.lang3.Range.between(T, T) org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(Field, boolean) As of Java 12, we can no longer drop thefinal
modifier, thus rendering this method obsolete. The JDK discussion about this change can be found here: https://mail.openjdk.java.net/pipermail/core-libs-dev/2018-November/056486.htmlorg.apache.commons.lang3.stream.Streams.stream(Collection<E>) org.apache.commons.lang3.StringEscapeUtils.escapeXml(String) org.apache.commons.lang3.StringUtils.chomp(String, String) This feature will be removed in Lang 4, useStringUtils.removeEnd(String, String)
insteadorg.apache.commons.lang3.StringUtils.defaultString(String, String) UseObjects.toString(Object, String)
org.apache.commons.lang3.StringUtils.getFuzzyDistance(CharSequence, CharSequence, Locale) As of 3.6, use Apache Commons Text FuzzyScore insteadorg.apache.commons.lang3.StringUtils.getJaroWinklerDistance(CharSequence, CharSequence) As of 3.6, use Apache Commons Text JaroWinklerDistance insteadorg.apache.commons.lang3.StringUtils.getLevenshteinDistance(CharSequence, CharSequence) As of 3.6, use Apache Commons Text LevenshteinDistance insteadorg.apache.commons.lang3.StringUtils.removeAll(String, String) Moved to RegExUtils.org.apache.commons.lang3.StringUtils.removeFirst(String, String) Moved to RegExUtils.org.apache.commons.lang3.StringUtils.removePattern(String, String) Moved to RegExUtils.org.apache.commons.lang3.StringUtils.replaceAll(String, String, String) Moved to RegExUtils.org.apache.commons.lang3.StringUtils.replaceFirst(String, String, String) Moved to RegExUtils.org.apache.commons.lang3.StringUtils.replacePattern(String, String, String) Moved to RegExUtils.org.apache.commons.lang3.StringUtils.toString(byte[], String) useStringUtils.toEncodedString(byte[], Charset)
instead of String constants in your codeorg.apache.commons.lang3.SystemUtils.getUserName() org.apache.commons.lang3.ThreadUtils.findThreadGroups(ThreadGroup, boolean, ThreadUtils.ThreadGroupPredicate) org.apache.commons.lang3.ThreadUtils.findThreads(ThreadGroup, boolean, ThreadUtils.ThreadPredicate) org.apache.commons.lang3.time.DatePrinter.format(Calendar, StringBuffer) org.apache.commons.lang3.time.DurationUtils.getNanosOfMiili(Duration) org.apache.commons.lang3.time.FastDateFormat.format(Calendar, StringBuffer) org.apache.commons.lang3.time.FastDatePrinter.format(Object, StringBuffer, FieldPosition) org.apache.commons.lang3.Validate.notNull(T) UseObjects.requireNonNull(Object)
.org.apache.commons.mail.Email.isSSL() since 1.3, use isSSLOnConnect() insteadorg.apache.commons.mail.Email.isTLS() since 1.3, use isStartTLSEnabled() insteadorg.apache.commons.mail.Email.setSSL(boolean) since 1.3, use setSSLOnConnect() insteadorg.apache.commons.mail.Email.setTLS(boolean) since 1.3, use setStartTLSEnabled() insteadorg.apache.commons.math.analysis.integration.LegendreGaussIntegrator.integrate(double, double) org.apache.commons.math.analysis.integration.RombergIntegrator.integrate(double, double) org.apache.commons.math.analysis.integration.SimpsonIntegrator.integrate(double, double) org.apache.commons.math.analysis.integration.TrapezoidIntegrator.integrate(double, double) org.apache.commons.math.analysis.integration.UnivariateRealIntegrator.integrate(double, double) replaced byUnivariateRealIntegrator.integrate(UnivariateRealFunction, double, double)
since 2.0org.apache.commons.math.analysis.solvers.BisectionSolver.solve(double, double, double) org.apache.commons.math.analysis.solvers.BrentSolver.solve(double, double) org.apache.commons.math.analysis.solvers.LaguerreSolver.getPolynomialFunction() as of 2.0 the function is not stored anymore within the instance.org.apache.commons.math.analysis.solvers.LaguerreSolver.solve(double, double) org.apache.commons.math.analysis.solvers.LaguerreSolver.solveAll(double[], double) in 2.2.org.apache.commons.math.analysis.solvers.MullerSolver.solve(double, double) org.apache.commons.math.analysis.solvers.MullerSolver.solve2(double, double) replaced byMullerSolver.solve2(UnivariateRealFunction, double, double)
since 2.0org.apache.commons.math.analysis.solvers.NewtonSolver.solve(double, double) org.apache.commons.math.analysis.solvers.RiddersSolver.solve(double, double) org.apache.commons.math.analysis.solvers.SecantSolver.solve(double, double) org.apache.commons.math.analysis.solvers.UnivariateRealSolver.solve(double, double) replaced byUnivariateRealSolver.solve(UnivariateRealFunction, double, double)
since 2.0org.apache.commons.math.distribution.BetaDistribution.setAlpha(double) as of 2.1org.apache.commons.math.distribution.BetaDistribution.setBeta(double) as of 2.1org.apache.commons.math.distribution.BetaDistributionImpl.density(Double) org.apache.commons.math.distribution.BetaDistributionImpl.setAlpha(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.BetaDistributionImpl.setBeta(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.BinomialDistribution.setNumberOfTrials(int) as of v2.1org.apache.commons.math.distribution.BinomialDistribution.setProbabilityOfSuccess(double) as of v2.1org.apache.commons.math.distribution.BinomialDistributionImpl.setNumberOfTrials(int) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.BinomialDistributionImpl.setProbabilityOfSuccess(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.CauchyDistribution.setMedian(double) as of v2.1org.apache.commons.math.distribution.CauchyDistribution.setScale(double) as of v2.1org.apache.commons.math.distribution.CauchyDistributionImpl.setMedian(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.CauchyDistributionImpl.setScale(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.ChiSquaredDistribution.setDegreesOfFreedom(double) as of v2.1org.apache.commons.math.distribution.ChiSquaredDistributionImpl.density(Double) org.apache.commons.math.distribution.ChiSquaredDistributionImpl.setDegreesOfFreedom(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.ChiSquaredDistributionImpl.setGamma(GammaDistribution) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.ExponentialDistribution.setMean(double) as of v2.1org.apache.commons.math.distribution.ExponentialDistributionImpl.density(Double) - use density(double)org.apache.commons.math.distribution.ExponentialDistributionImpl.setMean(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.FDistribution.setDenominatorDegreesOfFreedom(double) as of v2.1org.apache.commons.math.distribution.FDistribution.setNumeratorDegreesOfFreedom(double) as of v2.1org.apache.commons.math.distribution.FDistributionImpl.setDenominatorDegreesOfFreedom(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.FDistributionImpl.setNumeratorDegreesOfFreedom(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.GammaDistribution.setAlpha(double) as of v2.1org.apache.commons.math.distribution.GammaDistribution.setBeta(double) as of v2.1org.apache.commons.math.distribution.GammaDistributionImpl.density(Double) org.apache.commons.math.distribution.GammaDistributionImpl.setAlpha(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.GammaDistributionImpl.setBeta(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.HypergeometricDistribution.setNumberOfSuccesses(int) as of v2.1org.apache.commons.math.distribution.HypergeometricDistribution.setPopulationSize(int) as of v2.1org.apache.commons.math.distribution.HypergeometricDistribution.setSampleSize(int) as of v2.1org.apache.commons.math.distribution.HypergeometricDistributionImpl.setNumberOfSuccesses(int) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.HypergeometricDistributionImpl.setPopulationSize(int) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.HypergeometricDistributionImpl.setSampleSize(int) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.NormalDistribution.setMean(double) as of v2.1org.apache.commons.math.distribution.NormalDistribution.setStandardDeviation(double) as of v2.1org.apache.commons.math.distribution.NormalDistributionImpl.density(Double) org.apache.commons.math.distribution.NormalDistributionImpl.setMean(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.NormalDistributionImpl.setStandardDeviation(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.PascalDistribution.setNumberOfSuccesses(int) as of v2.1org.apache.commons.math.distribution.PascalDistribution.setProbabilityOfSuccess(double) as of v2.1org.apache.commons.math.distribution.PascalDistributionImpl.setNumberOfSuccesses(int) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.PascalDistributionImpl.setProbabilityOfSuccess(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.PoissonDistribution.setMean(double) as of v2.1org.apache.commons.math.distribution.PoissonDistributionImpl.setMean(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.PoissonDistributionImpl.setNormal(NormalDistribution) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.TDistribution.setDegreesOfFreedom(double) as of v2.1org.apache.commons.math.distribution.TDistributionImpl.setDegreesOfFreedom(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.WeibullDistribution.setScale(double) as of v2.1org.apache.commons.math.distribution.WeibullDistribution.setShape(double) as of v2.1org.apache.commons.math.distribution.WeibullDistributionImpl.setScale(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.WeibullDistributionImpl.setShape(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.ZipfDistribution.setExponent(double) as of v2.1org.apache.commons.math.distribution.ZipfDistribution.setNumberOfElements(int) as of v2.1org.apache.commons.math.distribution.ZipfDistributionImpl.setExponent(double) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.distribution.ZipfDistributionImpl.setNumberOfElements(int) as of 2.1 (class will become immutable in 3.0)org.apache.commons.math.linear.AbstractRealMatrix.getDeterminant() org.apache.commons.math.linear.AbstractRealMatrix.inverse() org.apache.commons.math.linear.AbstractRealMatrix.isSingular() org.apache.commons.math.linear.AbstractRealMatrix.luDecompose() as of release 2.0, replaced byLUDecomposition
org.apache.commons.math.linear.AbstractRealMatrix.solve(double[]) org.apache.commons.math.linear.MatrixUtils.createBigIdentityMatrix(int) since 2.0, replaced byMatrixUtils.createFieldIdentityMatrix(Field, int)
org.apache.commons.math.linear.MatrixUtils.createBigMatrix(double[][]) since 2.0 replaced byMatrixUtils.createFieldMatrix(FieldElement[][])
org.apache.commons.math.linear.MatrixUtils.createColumnBigMatrix(double[]) since 2.0 replaced byMatrixUtils.createColumnFieldMatrix(FieldElement[])
org.apache.commons.math.linear.MatrixUtils.createRowBigMatrix(double[]) since 2.0 replaced byMatrixUtils.createRowFieldMatrix(FieldElement[])
org.apache.commons.math.linear.OpenMapRealVector.getSparcity() as of 2.2 replaced by the correctly spelledOpenMapRealVector.getSparsity()
org.apache.commons.math.linear.RealMatrix.getDeterminant() as of release 2.0, replaced bynew LUDecompositionImpl(m)
.getDeterminant()
org.apache.commons.math.linear.RealMatrix.inverse() as of release 2.0, replaced bynew LUDecompositionImpl(m)
.getSolver()
.getInverse()
org.apache.commons.math.linear.RealMatrix.isSingular() as of release 2.0, replaced by the boolean negation ofnew LUDecompositionImpl(m)
.getSolver()
.isNonSingular()
org.apache.commons.math.linear.RealMatrix.solve(double[]) as of release 2.0, replaced byDecompositionSolver.solve(double[])
org.apache.commons.math.linear.RealVector.mapAbs() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapAbsToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapAcos() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapAcosToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapAsin() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapAsinToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapAtan() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapAtanToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCbrt() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCbrtToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCeil() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCeilToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCos() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCosh() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCoshToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapCosToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapExp() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapExpm1() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapExpm1ToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapExpToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapFloor() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapFloorToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapInv() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapInvToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapLog() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapLog10() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapLog10ToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapLog1p() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapLog1pToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapLogToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapPow(double) in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapPowToSelf(double) in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapRint() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapRintToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSignum() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSignumToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSin() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSinh() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSinhToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSinToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSqrt() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapSqrtToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapTan() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapTanh() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapTanhToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapTanToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapUlp() in 2.2 (to be removed in 3.0).org.apache.commons.math.linear.RealVector.mapUlpToSelf() in 2.2 (to be removed in 3.0).org.apache.commons.math.MathException.getPattern() as of 2.2 replaced byMathException.getSpecificPattern()
andMathException.getGeneralPattern()
org.apache.commons.math.MathRuntimeException.createArithmeticException(String, Object...) as of 2.2 replaced byMathRuntimeException.createArithmeticException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createArrayIndexOutOfBoundsException(String, Object...) as of 2.2 replaced byMathRuntimeException.createArrayIndexOutOfBoundsException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createConcurrentModificationException(String, Object...) as of 2.2 replaced byMathRuntimeException.createConcurrentModificationException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createEOFException(String, Object...) as of 2.2 replaced byMathRuntimeException.createEOFException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(String, Object...) as of 2.2 replaced byMathRuntimeException.createIllegalArgumentException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createIllegalStateException(String, Object...) as of 2.2 replaced byMathRuntimeException.createIllegalStateException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createNoSuchElementException(String, Object...) as of 2.2 replaced byMathRuntimeException.createNoSuchElementException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createNullPointerException(String, Object...) as of 2.2 replaced byMathRuntimeException.createNullPointerException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createParseException(int, String, Object...) as of 2.2 replaced byMathRuntimeException.createParseException(int, Localizable, Object...)
org.apache.commons.math.MathRuntimeException.createUnsupportedOperationException(Localizable, Object...) in 2.2. Please useMathUnsupportedOperationException
instead.org.apache.commons.math.MathRuntimeException.getPattern() as of 2.2 replaced byMathRuntimeException.getSpecificPattern()
andMathRuntimeException.getGeneralPattern()
org.apache.commons.math.stat.Frequency.addValue(Object) useFrequency.addValue(Comparable)
insteadorg.apache.commons.math.stat.Frequency.getCount(Object) replaced byFrequency.getCount(Comparable)
as of 2.0org.apache.commons.math.stat.Frequency.getCumFreq(Object) replaced byFrequency.getCumFreq(Comparable)
as of 2.0org.apache.commons.math.stat.Frequency.getCumPct(Object) replaced byFrequency.getCumPct(Comparable)
as of 2.0org.apache.commons.math.stat.Frequency.getPct(Object) replaced byFrequency.getPct(Comparable)
as of 2.0org.apache.commons.math.stat.inference.TestUtils.getChiSquareTest() 2.2 will be removed in 3.0org.apache.commons.math.stat.inference.TestUtils.getOneWayAnova() 2.2 will be removed in 3.0org.apache.commons.math.stat.inference.TestUtils.getTTest() 2.2 will be removed in 3.0org.apache.commons.math.stat.inference.TestUtils.getUnknownDistributionChiSquareTest() 2.2 will be removed in 3.0org.apache.commons.math.stat.inference.TestUtils.setChiSquareTest(TTest) 2.2 will be removed in 3.0 - not compatible with use from multiple threadsorg.apache.commons.math.stat.inference.TestUtils.setOneWayAnova(OneWayAnova) 2.2 will be removed in 3.0 - not compatible with use from multiple threadsorg.apache.commons.math.stat.inference.TestUtils.setUnknownDistributionChiSquareTest(UnknownDistributionChiSquareTest) 2.2 will be removed in 3.0 - not compatible with use from multiple threadsorg.apache.commons.math.stat.inference.TTestImpl.setDistribution(TDistribution) in 2.2 (to be removed in 3.0).org.apache.commons.math.stat.regression.SimpleRegression.setDistribution(TDistribution) in 2.2 (to be removed in 3.0).org.apache.commons.math.util.MathUtils.checkOrder(double[], int, boolean) as of 2.2 (please use the newcheckOrder
method). To be removed in 3.0.org.apache.commons.math.util.MathUtils.equals(float, float) as of 2.2 his method considers thatNaN == NaN
. In release 3.0, the semantics will change in order to comply with IEEE754 where it is specified thatNaN != NaN
. New methods have been added for those cases wher the old semantics is useful (see e.g.equalsIncludingNaN
.org.apache.commons.math.util.MathUtils.nextAfter(double, double) as of 2.2, replaced byFastMath.nextAfter(double, double)
which handles Infinities differently, and returns direction if d and direction compare equal.org.apache.commons.math.util.MathUtils.scalb(double, int) as of 2.2, replaced byFastMath.scalb(double, int)
org.apache.commons.math.util.ResizableDoubleArray.getValues() replaced byResizableDoubleArray.getInternalValues()
as of 2.0org.apache.felix.webconsole.AbstractWebConsolePlugin.getBrandingPlugin() org.apache.felix.webconsole.AbstractWebConsolePlugin.getParameter(HttpServletRequest, String) Use the Servlet API for uploadsorg.apache.felix.webconsole.AbstractWebConsolePlugin.setBrandingPlugin(BrandingPlugin) org.apache.felix.webconsole.WebConsoleUtil.escapeHtml(String) It is better to use specialized encoders insteadorg.apache.felix.webconsole.WebConsoleUtil.getParameter(HttpServletRequest, String) Use the Servlet API for uploadsorg.apache.felix.webconsole.WebConsoleUtil.getVariableResolver(ServletRequest) Use theRequestVariableResolver
instead.org.apache.felix.webconsole.WebConsoleUtil.setVariableResolver(ServletRequest, VariableResolver) Use theRequestVariableResolver
instead.org.apache.jackrabbit.core.data.db.DbDataStore.getMaxConnections() org.apache.jackrabbit.core.data.db.DbDataStore.setMaxConnections(int) org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean.checkpoint(long) UseCheckpointMBean
insteadorg.apache.jackrabbit.oak.api.jmx.IndexStatsMBean.getExecutionTime() org.apache.jackrabbit.oak.api.jmx.IndexStatsMBean.resetConsolidatedExecutionStats() org.apache.jackrabbit.oak.api.jmx.RepositoryManagementMBean.checkpoint(long) UseCheckpointMBean
insteadorg.apache.jackrabbit.oak.jcr.Jcr.with(PartialConflictHandler) UseJcr.with(ThreeWayConflictHandler)
insteadorg.apache.jackrabbit.oak.jcr.Jcr.withAsyncIndexing() UseJcr.withAsyncIndexing(String, long)
insteadorg.apache.jackrabbit.oak.Oak.with(ConflictHandler) UseOak.with(ThreeWayConflictHandler)
insteadorg.apache.jackrabbit.oak.Oak.withAsyncIndexing() UseOak.withAsyncIndexing(String, long)
insteadorg.apache.jackrabbit.oak.plugins.commit.ConflictHook.of(ConflictHandler) UseConflictHook.of(ThreeWayConflictHandler)
instead.org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.generateUUID() org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.isValidUUID(String) UseUUIDUtils.isValidUUID(String)
(String)}org.apache.jackrabbit.oak.plugins.tree.factories.RootFactory.createSystemRoot(NodeStore, CommitHook, String, SecurityProvider, QueryEngineSettings, QueryIndexProvider) with Oak 1.7.2 due to the usage of deprecatedQueryEngineSettings
org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore.deleteChunks(List<String>, long) org.apache.jackrabbit.oak.spi.nodetype.EffectiveNodeTypeProvider.isNodeType(String, Iterator<String>, String) org.apache.jackrabbit.oak.spi.query.Filter.getFulltextConditions() org.apache.jackrabbit.oak.spi.query.QueryIndex.IndexPlan.Builder.addAdditionalMessage(Level, String) org.apache.jackrabbit.oak.spi.query.QueryIndex.IndexPlan.getAdditionalMessages() useQueryIndex.IndexPlan.getAdditionalLogMessages()
insteadorg.apache.jackrabbit.oak.spi.security.authentication.external.basic.DefaultSyncContext.joinPaths(String...) Since Oak 1.3.10. Please usePathUtils.concatRelativePaths(String...)
instead.org.apache.jackrabbit.spi.commons.iterator.Iterators.filterIterator(Iterator<? extends T>, Predicate<? super T>) org.apache.jackrabbit.spi.commons.query.OrderQueryNode.addOrderSpec(Name, boolean) useOrderQueryNode.addOrderSpec(Path , boolean)
instead.org.apache.jackrabbit.spi.commons.query.OrderQueryNode.OrderSpec.getProperty() useOrderQueryNode.OrderSpec.getPropertyPath()
instead.org.apache.jackrabbit.spi.commons.query.sql.SimpleCharStream.getColumn() org.apache.jackrabbit.spi.commons.query.sql.SimpleCharStream.getLine() org.apache.jackrabbit.spi.commons.query.TextsearchQueryNode.getPropertyName() UseTextsearchQueryNode.getRelativePath()
instead.org.apache.jackrabbit.spi.commons.query.TextsearchQueryNode.setPropertyName(Name) UseTextsearchQueryNode.setRelativePath(Path)
instead.org.apache.jackrabbit.spi.commons.query.xpath.SimpleCharStream.getColumn() org.apache.jackrabbit.spi.commons.query.xpath.SimpleCharStream.getLine() org.apache.jackrabbit.spi.NodeInfo.getReferences() org.apache.jackrabbit.spi.RepositoryService.getNodeInfo(SessionInfo, NodeId) org.apache.jackrabbit.spi.RepositoryService.getPropertyInfo(SessionInfo, PropertyId) org.apache.jackrabbit.vault.fs.api.ImportInfo.getError(String) since 3.1 useImportInfo.getInfo(String)
.getError()
org.apache.jackrabbit.vault.fs.api.ImportInfo.getNameList() since 3.1 useImportInfo.getInfos()
to retrieve information about namesorg.apache.jackrabbit.vault.fs.api.ImportInfo.onMissing(String) Is no longer issued, as this depends on the registered node type definitionsorg.apache.jackrabbit.vault.fs.config.CredentialsConfig.write(ContentHandler) org.apache.jackrabbit.vault.fs.config.DefaultWorkspaceFilter.addPropertyFilterSet(PathFilterSet) org.apache.jackrabbit.vault.fs.config.SimpleCredentialsConfig.writeInner(ContentHandler) org.apache.jackrabbit.vault.fs.config.VaultAuthConfig.RepositoryConfig.write(ContentHandler) org.apache.jackrabbit.vault.fs.io.AutoSave.markMissing(String) org.apache.jackrabbit.vault.fs.io.AutoSave.markResolved(String) org.apache.jackrabbit.vault.fs.io.ImportOptions.isStrict() UseImportOptions.isStrict(boolean)
instead.org.apache.jackrabbit.vault.fs.spi.UserManagement.getAuthorizableId(DocViewNode) UseUserManagement.getAuthorizableId(DocViewNode2)
insteadorg.apache.jackrabbit.vault.packaging.Dependency.getPath() As of 3.1.42, the storage location is implementation details.org.apache.jackrabbit.vault.packaging.JcrPackage.verifyId(boolean, boolean) As of 3.1.42, the storage location is implementation details.org.apache.jackrabbit.vault.packaging.JcrPackageDefinition.getAccessControlHandling() UsePackageProperties.getACHandling()
retrieved viaJcrPackageDefinition.getMetaInf()
andMetaInf.getPackageProperties()
.org.apache.jackrabbit.vault.packaging.PackageId.getInstallationPath() As of 3.1.42, the storage location is implementation details.org.apache.jackrabbit.vault.packaging.PackageId.isFromPath() As of 3.1.42, the storage location is implementation details.org.apache.jackrabbit.vault.packaging.Packaging.getJcrPackageRegistry(Session) Rather usePackaging.getJcrBasedPackageRegistry(Session)
which doesn't return a private classorg.apache.jackrabbit.vault.packaging.Version.osgiCompareTo(Version) since 3.1.32. useVersion.compareTo(Version)
. See JCRVLT-146org.apache.jackrabbit.vault.util.DocViewProperty.isAmbiguous(Property) was not supposed to be public but rather is an implementation detail, should not be called at allorg.apache.jackrabbit.vault.util.InputStreamPump.getError() Rather callInputStreamPump.close()
, as otherwise this might be called too early (before the thread finished).close()
will automatically wrap the potential exception from the pump in an IOException and throws it as wellorg.apache.jackrabbit.webdav.property.PropContainer.addContent(Object) UsePropContainer.addContent(PropEntry)
instead.org.apache.jackrabbit.webdav.xml.DomUtil.getQualifiedName(String, Namespace) As of 2.0. Please useDomUtil.getExpandedName(String, Namespace)
instead. This method was named according to usage of 'qualified name' in JSR 170 that conflicts with the terminology used in XMLNS. As of JCR 2.0 the String consisting of"{" + namespace uri + "}" + localName
is calledExpanded Name
.org.apache.log4j.Category.getPriority() Please useCategory.getLevel()
instead.org.apache.log4j.MDC.getContext() org.apache.log4j.Priority.getAllPossiblePriorities() This method will be removed with no replacement.org.apache.log4j.Priority.toPriority(String) Please use theLevel.toLevel(String)
method instead.org.apache.lucene.document.Field.translateFieldType(Field.Store, Field.Index, Field.TermVector) This is here only to ease transition from the pre-4.0 APIs.org.apache.lucene.index.AtomicReader.hasNorms(String) (4.0) useAtomicReader.getFieldInfos()
and checkFieldInfo.hasNorms()
for the field instead.org.apache.lucene.index.Fields.getUniqueTermCount() iterate fields and add their size() instead. this method is only provided as a transition mechanism to access this statistic for 3.x indexes, which do not have this statistic per-field.org.apache.lucene.index.IndexReader.open(Directory) org.apache.lucene.index.SegmentInfo.attributes() no longer supportedorg.apache.lucene.index.SegmentInfo.getAttribute(String) no longer supportedorg.apache.lucene.index.SegmentInfo.putAttribute(String, String) no longer supportedorg.apache.lucene.index.SegmentInfos.write3xInfo(Directory, SegmentInfo, IOContext) org.apache.lucene.search.FieldCache.getBytes(AtomicReader, String, boolean) (4.4) Index as a numeric field usingIntField
and then useFieldCache.getInts(AtomicReader, String, boolean)
instead.org.apache.lucene.search.FieldCache.getShorts(AtomicReader, String, boolean) (4.4) Index as a numeric field usingIntField
and then useFieldCache.getInts(AtomicReader, String, boolean)
instead.org.apache.lucene.search.FieldCacheRangeFilter.newByteRange(String, Byte, Byte, boolean, boolean) org.apache.lucene.search.FieldCacheRangeFilter.newShortRange(String, Short, Short, boolean, boolean) org.apache.lucene.search.FuzzyQuery.floatToEdits(float, int) pass integer edit distances instead.org.apache.lucene.search.IndexSearcher.document(int, Set<String>) UseIndexSearcher.doc(int, Set)
instead.org.apache.lucene.store.Directory.IndexInputSlicer.openFullSlice() Only for reading CFS files from 3.x indexes.org.apache.lucene.store.FSDirectory.getReadChunkSize() This is no longer used since Lucene 4.5.org.apache.lucene.store.FSDirectory.setReadChunkSize(int) This is no longer used since Lucene 4.5.org.apache.lucene.store.IndexOutput.seek(long) (4.1) This method will be removed in Lucene 5.0org.apache.lucene.util.BytesRef.getUTF8SortedAsUTF16Comparator() This comparator is only a transition mechanismorg.apache.lucene.util.CharsRef.getUTF16SortedAsUTF8Comparator() This comparator is only a transition mechanismorg.apache.sling.api.resource.observation.ResourceChange.getAddedPropertyNames() As there is no guarantee that this information is contained in the change event, this should not be used anymore.org.apache.sling.api.resource.observation.ResourceChange.getChangedPropertyNames() As there is no guarantee that this information is contained in the change event, this should not be used anymore.org.apache.sling.api.resource.observation.ResourceChange.getRemovedPropertyNames() As there is no guarantee that this information is contained in the change event, this should not be used anymore.org.apache.sling.api.resource.ResourceDecorator.decorate(Resource, HttpServletRequest) since 2.3.0 (and JCR Resource 2.1.0), this method will not be invoked.org.apache.sling.api.resource.ResourceProvider.getResource(ResourceResolver, HttpServletRequest, String) since 2.2.0 (and JCR Resource 2.1.0), this method will not be invoked.org.apache.sling.api.resource.ResourceProviderFactory.getAdministrativeResourceProvider(Map<String, Object>) as of 2.4 (bundle version 2.5.0) because of inherent security issues. Implementations may implement this method at their discretion but must support the new service based resource provider generation in theResourceProviderFactory.getResourceProvider(Map)
method honoring theResourceProviderFactory.SERVICE_BUNDLE
andResourceResolverFactory.SUBSERVICE
properties.org.apache.sling.api.resource.ResourceResolver.resolve(HttpServletRequest) as of 2.0.4, useResourceResolver.resolve(HttpServletRequest, String)
instead.org.apache.sling.api.resource.ResourceResolverFactory.getAdministrativeResourceResolver(Map<String, Object>) as of 2.4 (bundle version 2.5.0) because of inherent security issues. Services requiring specific permissions should use theResourceResolverFactory.getServiceResourceResolver(Map)
instead.org.apache.sling.api.resource.ResourceUtil.findResourceSuperType(Resource) org.apache.sling.api.resource.ResourceUtil.getName(Resource) since 2.1.0, useResource.getName()
insteadorg.apache.sling.api.resource.ResourceUtil.getParent(Resource) since 2.1.0, useResource.getParent()
insteadorg.apache.sling.api.resource.ResourceUtil.getResourceSuperType(ResourceResolver, String) org.apache.sling.api.resource.ResourceUtil.isA(Resource, String) org.apache.sling.api.resource.ResourceUtil.listChildren(Resource) since 2.1.0, useResource.listChildren()
insteadorg.apache.sling.api.scripting.SlingScriptHelper.dispose() This method is deprecated since version 2.1 and will be removed. It should never be called by clients.org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.getAttributeOrParameter(HttpServletRequest, String, String) since Bundle 1.0.8, useAuthUtil.getAttributeOrParameter(HttpServletRequest, String, String)
org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.getLoginResource(HttpServletRequest, String) since Bundle 1.0.8, useAuthUtil.getLoginResource(HttpServletRequest, String)
org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.isRedirectValid(HttpServletRequest, String) This method has been introduced after Bundle release 1.0.6 but has been replaced withAuthUtil.isRedirectValid(HttpServletRequest, String)
. Use the latter method.org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.isValidateRequest(HttpServletRequest) since Bundle 1.0.8, useAuthUtil.isValidateRequest(HttpServletRequest)
org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.sendInvalid(HttpServletRequest, HttpServletResponse) since Bundle 1.0.8, useAuthUtil.sendInvalid(HttpServletRequest, HttpServletResponse)
org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.sendRedirect(HttpServletRequest, HttpServletResponse, String, Map<String, String>) since Bundle 1.0.8, useAuthUtil.sendRedirect(HttpServletRequest, HttpServletResponse, String, Map)
org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.sendValid(HttpServletResponse) since Bundle 1.0.8, useAuthUtil.sendValid(HttpServletResponse)
org.apache.sling.auth.core.spi.AbstractAuthenticationHandler.setLoginResourceAttribute(HttpServletRequest, String) since Bundle 1.0.8, useAuthUtil.setLoginResourceAttribute(HttpServletRequest, String)
org.apache.sling.caconfig.management.ConfigurationManager.getPersistenceResourcePath(String) Please useConfigurationPersistenceStrategyMultiplexer
instead.org.apache.sling.caconfig.management.multiplexer.ConfigurationOverrideMultiplexer.overrideProperties(String, String, Resource) org.apache.sling.commons.json.io.JSONWriter.isTidy() do not use, was removed from library and later stubbedorg.apache.sling.commons.json.io.JSONWriter.setTidy(boolean) do not use, was removed from library and later stubbedorg.apache.sling.commons.json.jcr.JsonItemWriter.dump(Node, Writer, int, boolean) the tidy mode was removed from the json libraryorg.apache.sling.commons.osgi.OsgiUtil.getProperty(Object, double) since 2.0.4, useOsgiUtil.toDouble(Object, double)
insteadorg.apache.sling.commons.osgi.RankedServices.get() UseRankedServices.getList()
insteadorg.apache.sling.commons.osgi.ServiceUtil.getComparableForServiceRanking(Map<String, Object>) org.apache.sling.commons.scheduler.Scheduler.addJob(String, Object, Map<String, Serializable>, String, boolean) UseScheduler.schedule(Object, ScheduleOptions)
instead.org.apache.sling.commons.scheduler.Scheduler.addPeriodicJob(String, Object, Map<String, Serializable>, long, boolean) UseScheduler.schedule(Object, ScheduleOptions)
instead.org.apache.sling.commons.scheduler.Scheduler.fireJob(Object, Map<String, Serializable>) UseScheduler.schedule(Object, ScheduleOptions)
instead.org.apache.sling.commons.scheduler.Scheduler.fireJobAt(String, Object, Map<String, Serializable>, Date) UseScheduler.schedule(Object, ScheduleOptions)
instead.org.apache.sling.commons.scheduler.Scheduler.removeJob(String) UseScheduler.unschedule(String)
instead.org.apache.sling.commons.threads.jmx.ThreadPoolMBean.getMaxThreadAge() Since version 1.1.1 always returns -1 as threads are no longer retired but instead the thread locals are cleaned up (SLING-6261)org.apache.sling.commons.threads.ModifiableThreadPoolConfig.setMaxThreadAge(long) Since version 3.4.0 should no longer be called, as threads are no longer retired but instead the thread locals are cleaned up (SLING-6261)org.apache.sling.commons.threads.ThreadPoolConfig.getMaxThreadAge() Since version 3.4.0 always returns -1 as threads are no longer retired but instead the thread locals are cleaned up (SLING-6261)org.apache.sling.engine.RequestInfoProvider.getMayNumberOfInfos() org.apache.sling.hapi.HApiUtil.fromNode(ResourceResolver, Node) org.apache.sling.hapi.HApiUtil.getTypeNode(ResourceResolver, String) org.apache.sling.hc.api.execution.HealthCheckExecutor.execute(String...) use execute(HealthCheckFilter.Options)org.apache.sling.hc.util.HealthCheckFilter.getTaggedHealthChecks(String...) use getHealthChecks() insteadorg.apache.sling.hc.util.HealthCheckFilter.getTaggedHealthCheckServiceReferences(String...) use getHealthCheckServiceReferences() insteadorg.apache.sling.installer.api.tasks.InstallationContext.addAsyncTask(InstallTask) A async task should returntrue
forInstallTask.isAsynchronousTask()
and be add withInstallationContext.addTaskToCurrentCycle(InstallTask)
org.apache.sling.installer.api.tasks.InstallationContext.addTaskToNextCycle(InstallTask) org.apache.sling.jcr.api.SlingRepository.loginAdministrative(String) as of 2.2 (bundle version 2.2.0) because of inherent security issues. Services requiring specific permissions should use theSlingRepository.loginService(String, String)
instead.org.apache.sling.jcr.base.util.AccessControlUtil.replaceAccessControlEntry(Session, String, Principal, String[], String[], String[]) org.apache.sling.jcr.base.util.RepositoryAccessor.getRepository(String, Hashtable<String, Object>) No longer supportedorg.apache.sling.jcr.base.util.RepositoryAccessor.getRepositoryFromURL(String) No longer supportedorg.apache.sling.models.annotations.injectorspecific.ChildResource.optional() UseChildResource.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.OSGiService.optional() UseOSGiService.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.RequestAttribute.optional() UseRequestAttribute.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.ResourcePath.optional() UseResourcePath.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.ScriptVariable.optional() UseScriptVariable.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.Self.optional() UseSelf.injectionStrategy()
insteadorg.apache.sling.models.annotations.injectorspecific.SlingObject.optional() UseSlingObject.injectionStrategy()
insteadorg.apache.sling.models.annotations.injectorspecific.ValueMapValue.optional() UseValueMapValue.injectionStrategy()
insteadorg.apache.sling.models.factory.ModelFactory.isModelClass(Object, Class<?>) UseModelFactory.isModelClass(Class)
instead!org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor.isOptional() org.apache.sling.provisioning.model.ModelUtility.getEffectiveModel(Model, ModelUtility.VariableResolver) org.apache.sling.provisioning.model.ModelUtility.merge(Model, Model) Use {linkMergeUtility.merge(Model, Model)
org.apache.sling.repoinit.parser.operations.OperationVisitor.visitCreatePath(CreatePath) new statement callsOperationVisitor.visitEnsureNodes(EnsureNodes)
org.apache.sling.repoinit.parser.operations.OperationVisitor.visitSetAclPrincipalBased(SetAclPrincipalBased) new statement callsOperationVisitor.visitEnsureAclPrincipalBased(EnsureAclPrincipalBased)
org.apache.sling.scripting.core.ScriptHelper.dispose() org.apache.sling.serviceusermapping.ServiceUserMapper.getServiceUserID(Bundle, String) org.apache.tika.config.TikaConfig.getParser(MediaType) Use theTikaConfig.getParser()
method insteadorg.apache.tika.extractor.EmbeddedDocumentUtil.getConfig() as of 1.17, useEmbeddedDocumentUtil.getTikaConfig()
insteadorg.apache.tika.fork.ForkParser.getJavaCommand() since 1.8org.apache.tika.fork.ForkParser.setJavaCommand(String) since 1.8org.apache.tika.io.IOUtils.toByteArray(String) UseString.getBytes()
org.apache.tika.io.IOUtils.toString(byte[]) UseString(byte[])
org.apache.tika.io.IOUtils.write(StringBuffer, Writer) replaced by write(CharSequence, Writer)org.apache.tika.io.TikaInputStream.get(File) useTikaInputStream.get(Path)
. In Tika 2.0, this will be removed or modified to throw an IOException.org.apache.tika.mime.MimeTypes.getMimeType(String) UseTika.detect(String)
insteadorg.apache.tika.parser.AbstractParser.parse(InputStream, ContentHandler, Metadata) use theParser.parse(InputStream, ContentHandler, Metadata, ParseContext)
method insteadorg.apache.tika.parser.chm.lzx.ChmBlockInfo.getChmBlockInfoInstance(DirectoryListingEntry, int, ChmLzxcControlData) org.apache.tika.parser.html.HtmlParser.mapSafeAttribute(String, String) Use theHtmlMapper
mechanism to customize the HTML mapping. This method will be removed in Tika 1.0.org.apache.tika.parser.iptc.IptcAnpaParser.parse(InputStream, ContentHandler, Metadata) This method will be removed in Apache Tika 1.0.org.apache.tika.parser.ocr.TesseractOCRParser.parseInline(InputStream, XHTMLContentHandler, TesseractOCRConfig) org.apache.tika.parser.ParserDecorator.withFallbacks(Collection<? extends Parser>, Set<MediaType>) Do not use until the TODOs are resolved, see TIKA-1509org.apache.tika.parser.pdf.PDFParser.getExtractAnnotationText() org.apache.tika.parser.pdf.PDFParser.getSortByPosition() org.apache.tika.parser.pdf.PDFParser.getSuppressDuplicateOverlappingText() org.apache.tika.parser.pdf.PDFParserConfig.getOcrImageScale() as of Tika 1.23, this is no longer used in rendering page images; usePDFParserConfig.setOcrDPI(int)
org.apache.tika.parser.pdf.PDFParserConfig.isCatchIntermediateIOExceptions() org.apache.tika.parser.pdf.PDFParserConfig.setMaxMainMemoryBytes(int) org.apache.tika.parser.pdf.PDFParserConfig.setOcrImageScale(float) (as of Tika 1.23, this is no longer used in rendering page images)org.apache.tika.parser.RecursiveParserWrapper.getMetadata() use aRecursiveParserWrapperHandler
insteadorg.apache.tika.parser.RecursiveParserWrapper.reset() use aRecursiveParserWrapperHandler
insteadorg.apache.tika.parser.RecursiveParserWrapper.setMaxEmbeddedResources(int) set this on aRecursiveParserWrapperHandler
org.apache.tika.parser.rtf.RTFParser.getMaxBytesForEmbeddedObject() org.apache.tika.parser.rtf.RTFParser.setMaxBytesForEmbeddedObject(int) useRTFParser.setMemoryLimitInKb(int)
insteadorg.apache.tika.parser.txt.CharsetDetector.getDetectableCharsets() This API is ICU internal only.org.apache.tika.parser.txt.CharsetDetector.setDetectableCharset(String, boolean) This API is ICU internal only.org.apache.tika.parser.utils.CommonsDigester.parse(String) use theCommonsDigester(int, String)
insteadorg.apache.tika.sax.ContentHandlerFactory.getNewContentHandler(OutputStream, String) org.bson.BasicBSONCallback.gotBinaryArray(String, byte[]) org.bson.BasicBSONObject.containsKey(String) org.bson.BsonBinaryReader.mark() org.bson.BsonBinaryReader.reset() org.bson.BSONCallback.gotBinaryArray(String, byte[]) this method is no longer called by the decoderorg.bson.BsonDocumentReader.mark() org.bson.BsonDocumentReader.reset() org.bson.BSONObject.containsKey(String) Please useBSONObject.containsField(String)
insteadorg.bson.BsonReader.mark() UseBsonReader.getMark()
insteadorg.bson.BsonReader.reset() PreferBsonReader.getMark()
org.bson.EmptyBSONCallback.gotBinaryArray(String, byte[]) org.bson.io.BsonInput.mark(int) UseBsonInput.getMark(int)
insteadorg.bson.io.BsonInput.reset() PreferBsonInput.getMark(int)
org.bson.io.ByteBufferBsonInput.mark(int) org.bson.io.ByteBufferBsonInput.reset() org.bson.json.JsonReader.mark() org.bson.json.JsonReader.reset() org.bson.LazyBSONObject.containsKey(String) org.bson.types.BasicBSONList.containsKey(String) org.bson.types.ObjectId.createFromLegacyFormat(int, int, int) UseObjectId(int, int)
insteadorg.bson.types.ObjectId.getCounter() org.bson.types.ObjectId.getCurrentCounter() org.bson.types.ObjectId.getGeneratedMachineIdentifier() org.bson.types.ObjectId.getGeneratedProcessIdentifier() org.bson.types.ObjectId.getMachineIdentifier() org.bson.types.ObjectId.getProcessIdentifier() org.bson.types.ObjectId.getTime() Use #getDate insteadorg.bson.types.ObjectId.getTimeSecond() Use #getTimestamp insteadorg.bson.types.ObjectId.toStringMongod() org.joda.time.DateMidnight.toYearMonthDay() Use LocalDate instead of YearMonthDayorg.joda.time.DateTime.toDateMidnight() DateMidnight is deprecatedorg.joda.time.DateTime.toTimeOfDay() Use LocalTime instead of TimeOfDayorg.joda.time.DateTime.toYearMonthDay() Use LocalDate instead of YearMonthDayorg.joda.time.format.DateTimeFormatter.getChronolgy() Use the method with the correct spellingorg.joda.time.format.DateTimeParserBucket.getOffset() use Integer versionorg.joda.time.format.DateTimeParserBucket.setOffset(int) use Integer versionorg.joda.time.format.DateTimeParserBucket.setPivotYear(Integer) this method should never have been publicorg.joda.time.Instant.toDateTimeISO() Use toDateTime() as it is identicalorg.joda.time.Instant.toMutableDateTimeISO() Use toMutableDateTime() as it is identicalorg.joda.time.LocalDate.toDateMidnight() DateMidnight is deprecatedorg.joda.time.LocalDate.toDateTimeAtMidnight() UseLocalDate.toDateTimeAtStartOfDay()
which won't throw an exceptionorg.kohsuke.rngom.rngparser.parse.compact.UCode_UCodeESC_CharStream.getColumn() org.kohsuke.rngom.rngparser.parse.compact.UCode_UCodeESC_CharStream.getLine() org.mozilla.javascript.ClassCache.isInvokerOptimizationEnabled() The method always returns false.org.mozilla.javascript.ClassCache.setInvokerOptimizationEnabled(boolean) The method does nothing. Invoker optimization is no longer used by Rhino. On modern JDK like 1.4 or 1.5 the disadvantages of the optimization like increased memory usage or longer initialization time overweight small speed increase that can be gained using generated proxy class to replace reflection.org.mozilla.javascript.Context.addContextListener(ContextListener) org.mozilla.javascript.Context.call(ContextAction<T>) useContextFactory.call(ContextAction)
instead as this method relies on usage of a static singleton "global" ContextFactory.org.mozilla.javascript.Context.compileReader(Scriptable, Reader, String, int, Object) org.mozilla.javascript.Context.enter(Context) useContextFactory.enterContext(Context)
instead as this method relies on usage of a static singleton "global" ContextFactory.org.mozilla.javascript.Context.removeContextListener(ContextListener) org.mozilla.javascript.Context.setCachingEnabled(boolean) org.mozilla.javascript.Context.toObject(Object, Scriptable, Class<?>) org.mozilla.javascript.Context.toType(Object, Class<?>) org.mozilla.javascript.ContextFactory.enter() useContextFactory.enterContext()
insteadorg.mozilla.javascript.ContextFactory.exit() UseContext.exit()
instead.org.mozilla.javascript.ContextListener.contextEntered(Context) Rhino runtime never calls the method.org.mozilla.javascript.ContextListener.contextExited(Context) Rhino runtime never calls the method.org.mozilla.javascript.EcmaError.getColumnNumber() UseRhinoException.columnNumber()
from the super class.org.mozilla.javascript.EcmaError.getErrorObject() Always returns null.org.mozilla.javascript.EcmaError.getLineNumber() UseRhinoException.lineNumber()
from the super class.org.mozilla.javascript.EcmaError.getLineSource() UseRhinoException.lineSource()
from the super class.org.mozilla.javascript.EcmaError.getSourceName() UseRhinoException.sourceName()
from the super class.org.mozilla.javascript.EvaluatorException.getColumnNumber() UseRhinoException.columnNumber()
from the super class.org.mozilla.javascript.EvaluatorException.getLineNumber() UseRhinoException.lineNumber()
from the super class.org.mozilla.javascript.EvaluatorException.getLineSource() UseRhinoException.lineSource()
from the super class.org.mozilla.javascript.EvaluatorException.getSourceName() UseRhinoException.sourceName()
from the super class.org.mozilla.javascript.FunctionObject.convertArg(Context, Scriptable, Object, Class<?>) UseFunctionObject.getTypeTag(Class)
andFunctionObject.convertArg(Context, Scriptable, Object, int)
for type conversion.org.mozilla.javascript.ImporterTopLevel.importPackage(Context, Scriptable, Object[], Function) Kept only for compatibility.org.mozilla.javascript.JavaScriptException.getLineNumber() UseRhinoException.lineNumber()
from the super class.org.mozilla.javascript.JavaScriptException.getSourceName() UseRhinoException.sourceName()
from the super class.org.mozilla.javascript.NativeArray.jsGet_length() UseNativeArray.getLength()
instead.org.mozilla.javascript.NativeFunction.jsGet_name() UseBaseFunction.getFunctionName()
instead. For backwards compatibility keep an old method name used by Batik and possibly others.org.mozilla.javascript.NativeGlobal.constructError(Context, String, String, Scriptable) UseScriptRuntime.constructError(String,String)
instead.org.mozilla.javascript.NativeJavaObject.coerceType(Class<?>, Object) as of 1.5 Release 4org.mozilla.javascript.NativeJavaObject.wrap(Scriptable, Object, Class<?>) UseContext.getWrapFactory()
together with callingWrapFactory.wrap(Context, Scriptable, Object, Class)
org.mozilla.javascript.optimizer.OptRuntime.elemIncrDecr(Object, double, Context, int) org.mozilla.javascript.Parser.parse(Reader, String, int) use parse(String, String, int) insteadorg.mozilla.javascript.Ref.set(Context, Object) UseRef.set(Context, Scriptable, Object)
insteadorg.mozilla.javascript.RhinoException.getScriptStackTrace(FilenameFilter) the filter argument is ignored as we are able to recognize script stack elements by our own. Use #getScriptStackTrace() instead.org.mozilla.javascript.ScriptableObject.getAttributes(String, Scriptable) UseScriptableObject.getAttributes(String name)
. The engine always ignored the start argument.org.mozilla.javascript.ScriptableObject.setAttributes(String, Scriptable, int) UseScriptableObject.setAttributes(String name, int attributes)
. The engine always ignored the start argument.org.mozilla.javascript.ScriptRuntime.call(Context, Object, Object, Object[], Scriptable) The method is only present for compatibility.org.mozilla.javascript.ScriptRuntime.createFunctionActivation(NativeFunction, Scriptable, Object[]) org.mozilla.javascript.ScriptRuntime.delete(Object, Object, Context) org.mozilla.javascript.ScriptRuntime.doTopCall(Callable, Context, Scriptable, Scriptable, Object[]) org.mozilla.javascript.ScriptRuntime.elemIncrDecr(Object, Object, Context, int) org.mozilla.javascript.ScriptRuntime.enumInit(Object, Context, boolean) org.mozilla.javascript.ScriptRuntime.getElemFunctionAndThis(Object, Object, Context) org.mozilla.javascript.ScriptRuntime.getObjectElem(Object, Object, Context) org.mozilla.javascript.ScriptRuntime.getObjectIndex(Object, double, Context) org.mozilla.javascript.ScriptRuntime.getObjectProp(Object, String, Context) org.mozilla.javascript.ScriptRuntime.getObjectPropNoWarn(Object, String, Context) org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(Object, String, Context) org.mozilla.javascript.ScriptRuntime.nameIncrDecr(Scriptable, String, int) org.mozilla.javascript.ScriptRuntime.newObjectLiteral(Object[], Object[], Context, Scriptable) org.mozilla.javascript.ScriptRuntime.propIncrDecr(Object, String, Context, int) org.mozilla.javascript.ScriptRuntime.refIncrDecr(Ref, Context, int) org.mozilla.javascript.ScriptRuntime.refSet(Ref, Object, Context) org.mozilla.javascript.ScriptRuntime.setObjectElem(Object, Object, Object, Context) org.mozilla.javascript.ScriptRuntime.setObjectIndex(Object, double, Object, Context) org.mozilla.javascript.ScriptRuntime.setObjectProp(Object, String, Object, Context) org.mozilla.javascript.ScriptRuntime.specialRef(Object, String, Context) org.mozilla.javascript.ScriptRuntime.toObject(Scriptable, Object, Class<?>) UseScriptRuntime.toObject(Scriptable, Object)
instead.org.mozilla.javascript.ScriptRuntime.toObjectOrNull(Context, Object) org.mozilla.javascript.ScriptRuntime.typeErrorThrower() org.mozilla.javascript.SecurityController.execWithDomain(Context, Scriptable, Script, Object) The application should not override this method and instead overrideSecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.org.mozilla.javascript.tools.debugger.Main.contextCreated(Context) The method is only present for compatibility and should not be called.org.mozilla.javascript.tools.debugger.Main.contextEntered(Context) The method is only present for compatibility and should not be called.org.mozilla.javascript.tools.debugger.Main.contextExited(Context) The method is only present for compatibility and should not be called.org.mozilla.javascript.tools.debugger.Main.contextReleased(Context) The method is only present for compatibility and should not be called.org.mozilla.javascript.tools.debugger.Main.setOptimizationLevel(int) The method does nothing and is only present for compatibility.org.mozilla.javascript.tools.debugger.Main.setSize(Dimension) UseMain.setSize(int, int)
instead.org.mozilla.javascript.tools.shell.ShellLine.getStream(Scriptable) org.mozilla.javascript.WrappedException.unwrap() UseWrappedException.getWrappedException()
instead.org.osgi.jmx.service.useradmin.UserAdminMBean.createRole(String) This method was specified in error. It does not function and must not be used. Use eitherUserAdminMBean.createUser(String)
orUserAdminMBean.createGroup(String)
.org.osgi.service.log.LogEntry.getLevel() Since 1.4. Replaced byLogEntry.getLogLevel()
.org.osgi.service.log.LogService.log(int, String) Since 1.4. Replaced byLogger
. SeeLoggerFactory
.org.owasp.encoder.Encode.forUri(String) org.slf4j.Marker.hasChildren() Replaced byMarker.hasReferences()
.
-
Constructors Constructor Description com.adobe.aemds.guide.common.GuideValidationResult(List<GuideError>) from 6.3 use GuideValidationResult(ListguideErrorList, GuideSubmitErrorCause errorCausedBy) instead. com.adobe.forms.common.service.PrefillData(InputStream, ContentType, Map<String, String>, Map<String, String>) com.adobe.granite.workflow.launcher.ConfigEntry(int, String, String, String, String, String, String, boolean, List<String>, List<String>) com.day.cq.dam.api.jobs.AssetDownloadService.AssetDownloadParams() com.day.cq.dam.commons.util.WebEnabledImageCreator(Asset, MimeTypeService) since 6.0, useRenditionMaker
service insteadcom.day.cq.dam.core.process.MetadataExtractor() since release 6.3, this has been replaced bySimpleXmpToJcrMetadataBuilder
, implying that responsibility (and ownership) of providing XMP Metadata Builder class lies with the component instantiatingMetadataExtractor
To prevent catastrophic failures for components calling the deprecated API, a new instance ofSimpleXmpToJcrMetadataBuilder
is created by this constructor. However, please be aware that sinceSimpleXmpToJcrMetadataBuilder
is now an OSGi Declarative Service, lifecycle events and any configurations of the service WILL NOT be honoured when deprecated API is invoked.com.day.cq.dam.scene7.api.Scene7Endpoint(URL, URL, URL, URL, String, String, String) com.day.cq.mailer.commons.AuthorizableGroupMailingList(Group, Predicate) useAuthorizableGroupMailingList(Group, Predicate)
instead.com.day.cq.tagging.TagCloud(TagManager) com.day.text.AutoFormatter() as of echidna. To get an instance with default settings use theAutoFormatter.DEFAULT_FORMATTER
.com.fasterxml.jackson.annotation.JsonFormat.Value(String, JsonFormat.Shape, Locale, String, TimeZone, JsonFormat.Features) com.fasterxml.jackson.core.filter.FilteringGeneratorDelegate(JsonGenerator, TokenFilter, boolean, boolean) since 2.12 Use the constructor that takesTokenFilter.Inclusion
argument instead.com.fasterxml.jackson.core.filter.FilteringParserDelegate(JsonParser, TokenFilter, boolean, boolean) com.fasterxml.jackson.core.io.IOContext(StreamReadConstraints, BufferRecycler, ContentReference, boolean) com.fasterxml.jackson.core.json.JsonReadContext(JsonReadContext, DupDetector, int, int, int) com.fasterxml.jackson.core.json.UTF8JsonGenerator(IOContext, int, ObjectCodec, OutputStream) com.fasterxml.jackson.core.json.UTF8StreamJsonParser(IOContext, int, InputStream, ObjectCodec, ByteQuadsCanonicalizer, byte[], int, int, boolean) Since 2.10com.fasterxml.jackson.core.json.WriterBasedJsonGenerator(IOContext, int, ObjectCodec, Writer) com.fasterxml.jackson.core.JsonGenerationException(Throwable) com.fasterxml.jackson.core.JsonLocation(Object, long, int, int) com.fasterxml.jackson.core.JsonParseException(String, JsonLocation) com.fasterxml.jackson.core.util.DefaultPrettyPrinter(String) in 2.16. Use the Separators API instead.com.fasterxml.jackson.core.util.Separators(String, char, Separators.Spacing, char, Separators.Spacing, char, Separators.Spacing) Since 2.17 use new canonical constructorcom.fasterxml.jackson.core.Version(int, int, int, String) Use variant that takes group and artifact idscom.fasterxml.jackson.databind.BeanProperty.Std(PropertyName, JavaType, PropertyName, Annotations, AnnotatedMember, PropertyMetadata) Since 2.9com.fasterxml.jackson.databind.cfg.BaseSettings(ClassIntrospector, AnnotationIntrospector, PropertyNamingStrategy, TypeFactory, TypeResolverBuilder<?>, DateFormat, HandlerInstantiator, Locale, TimeZone, Base64Variant, PolymorphicTypeValidator, AccessorNamingStrategy.Provider) Since 2.16, use variant that takesCacheProvider
instead.com.fasterxml.jackson.databind.deser.AbstractDeserializer(BeanDeserializerBuilder, BeanDescription, Map<String, SettableBeanProperty>) com.fasterxml.jackson.databind.deser.BeanDeserializer(BeanDeserializerBuilder, BeanDescription, BeanPropertyMap, Map<String, SettableBeanProperty>, HashSet<String>, boolean, boolean) in 2.12, remove from 3.0com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer(BeanDeserializerBuilder, BeanDescription, BeanPropertyMap, Map<String, SettableBeanProperty>, Set<String>, boolean, boolean) Since 2.9com.fasterxml.jackson.databind.deser.CreatorProperty(PropertyName, JavaType, PropertyName, TypeDeserializer, Annotations, AnnotatedParameter, int, Object, PropertyMetadata) Since 2.11 use factory method insteadcom.fasterxml.jackson.databind.deser.impl.BeanPropertyMap(boolean, Collection<SettableBeanProperty>, Map<String, List<PropertyName>>) since 2.11com.fasterxml.jackson.databind.deser.impl.ValueInjector(PropertyName, JavaType, Annotations, AnnotatedMember, Object) in 2.9 (remove from 3.0)com.fasterxml.jackson.databind.deser.std.EnumDeserializer(EnumResolver, Boolean) since 2.16com.fasterxml.jackson.databind.deser.std.EnumMapDeserializer(JavaType, KeyDeserializer, JsonDeserializer<?>, TypeDeserializer) com.fasterxml.jackson.databind.deser.std.EnumSetDeserializer(JavaType, JsonDeserializer<?>) Since 2.17com.fasterxml.jackson.databind.deser.std.ReferenceTypeDeserializer(JavaType, TypeDeserializer, JsonDeserializer<?>) com.fasterxml.jackson.databind.deser.std.StackTraceElementDeserializer() com.fasterxml.jackson.databind.deser.std.StdValueInstantiator(DeserializationConfig, Class<?>) Since 2.7 use constructor that takesJavaType
insteadcom.fasterxml.jackson.databind.deser.std.ThrowableDeserializer(BeanDeserializer) com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer() Since 2.6 use variant takes type argumentscom.fasterxml.jackson.databind.exc.IgnoredPropertyException(String, JsonLocation, Class<?>, String, Collection<Object>) Since 2.7com.fasterxml.jackson.databind.exc.InvalidFormatException(String, Object, Class<?>) Since 2.7 Use variant that takesJsonParser
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException(String, JsonLocation, Class<?>, String, Collection<Object>) Since 2.7com.fasterxml.jackson.databind.JsonMappingException(String) Since 2.7 Use variant that takesJsonParser
insteadcom.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer(JavaType, TypeIdResolver, String, boolean, JavaType) Since 2.15 (not used)com.fasterxml.jackson.databind.ObjectMapper.DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping) Since 2.10com.fasterxml.jackson.databind.ser.BeanPropertyWriter(BeanPropertyDefinition, AnnotatedMember, Annotations, JavaType, JsonSerializer<?>, TypeSerializer, JavaType, boolean, Object) com.fasterxml.jackson.databind.ser.std.CollectionSerializer(JavaType, boolean, TypeSerializer, BeanProperty, JsonSerializer<Object>) since 2.6com.fasterxml.jackson.databind.ser.std.EnumSerializer(EnumValues, Boolean) Since 2.16com.fasterxml.jackson.databind.ser.std.JsonValueSerializer(AnnotatedMember, TypeSerializer, JsonSerializer<?>) com.fasterxml.jackson.databind.SerializationConfig(BaseSettings, SubtypeResolver, SimpleMixInResolver, RootNameLookup, ConfigOverrides) since 2.14com.fasterxml.jackson.databind.util.StdDateFormat(TimeZone, Locale) com.google.gson.JsonNull() com.google.gson.JsonParser() No need to instantiate this class, use the static methods instead.com.mongodb.binding.AsyncClusterBinding(Cluster, ReadPreference) com.mongodb.binding.ClusterBinding(Cluster, ReadPreference) com.mongodb.bulk.WriteConcernError(int, String, BsonDocument) com.mongodb.client.gridfs.model.GridFSFile(BsonValue, String, long, int, Date, String, Document) there is no replacement for this constructorcom.mongodb.client.model.changestream.ChangeStreamDocument(BsonDocument, MongoNamespace, TDocument, BsonDocument, OperationType, UpdateDescription) com.mongodb.client.model.FindOptions(FindOptions) this constructor is unusedcom.mongodb.client.model.ReplaceOneModel(Bson, T, UpdateOptions) useReplaceOneModel(Bson, Object, ReplaceOptions)
insteadcom.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory() UseAsynchronousSocketChannelStreamFactoryFactory.builder()
instead to construct theAsynchronousSocketChannelStreamFactoryFactory
.com.mongodb.connection.ConnectionDescription(ConnectionId, ServerVersion, ServerType, int, int, int) com.mongodb.connection.netty.NettyStreamFactoryFactory() UseNettyStreamFactoryFactory.builder()
instead to construct theNettyStreamFactoryFactory
.com.mongodb.connection.TlsChannelStreamFactoryFactory(AsynchronousTlsChannelGroup) com.mongodb.DB(Mongo, String) PreferMongo.getDB(String)
com.mongodb.event.ConnectionRemovedEvent(ConnectionId) com.mongodb.Mongo() Replaced byMongoClient()
)com.mongodb.MongoClient(ServerAddress, List<MongoCredential>) com.mongodb.MongoNodeIsRecoveringException(ServerAddress) com.mongodb.MongoNotPrimaryException(ServerAddress) com.mongodb.MongoOptions() com.mongodb.MongoURI(String) Replaced byMongoClientURI(String)
com.mongodb.operation.AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>) com.mongodb.operation.BaseWriteOperation(MongoNamespace, boolean, WriteConcern) com.mongodb.operation.CreateIndexesOperation(MongoNamespace, List<IndexRequest>) com.mongodb.operation.DeleteOperation(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) com.mongodb.operation.DropCollectionOperation(MongoNamespace) com.mongodb.operation.DropDatabaseOperation(String) com.mongodb.operation.DropIndexOperation(MongoNamespace, String) com.mongodb.operation.FindAndDeleteOperation(MongoNamespace, Decoder<T>) com.mongodb.operation.FindAndReplaceOperation(MongoNamespace, Decoder<T>, BsonDocument) com.mongodb.operation.FindAndUpdateOperation(MongoNamespace, Decoder<T>, BsonDocument) com.mongodb.operation.InsertOperation(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) com.mongodb.operation.MixedBulkWriteOperation(MongoNamespace, List<? extends WriteRequest>, boolean, WriteConcern) com.mongodb.operation.RenameCollectionOperation(MongoNamespace, MongoNamespace) com.mongodb.operation.UpdateOperation(MongoNamespace, boolean, WriteConcern, List<UpdateRequest>) com.mongodb.WriteConcern() PreferWriteConcern.UNACKNOWLEDGED
com.sun.mail.imap.protocol.SearchSequence() com.sun.mail.util.MailLogger(String, String, Session) opennlp.tools.namefind.DefaultNameContextGenerator() use the other constructor and always provide the feature generatorsopennlp.tools.namefind.RegexNameFinder(Pattern[]) opennlp.tools.postag.POSTaggerFactory(Dictionary, TagDictionary) this constructor is here for backward compatibility and is not functional anymore in the training of 1.8.x series modelsopennlp.tools.tokenize.SimpleTokenizer() Use INSTANCE field instead to obtain an instance, constructor will be made private in the future.opennlp.tools.tokenize.TokenizerME(TokenizerModel, Factory) useTokenizerFactory
to extend the Tokenizer functionalityopennlp.tools.util.featuregen.CachedFeatureGenerator(AdaptiveFeatureGenerator...) opennlp.tools.util.TrainingParameters(Map<String, String>) org.apache.commons.codec.binary.StringUtils() TODO Make private in 2.0.org.apache.commons.codec.CharEncoding() TODO Make private in 2.0.org.apache.commons.codec.Charsets() TODO Make private in 2.0.org.apache.commons.codec.digest.Crypt() TODO Make private in 2.0.org.apache.commons.codec.digest.DigestUtils() since 1.11; only useful to preserve binary compatibilityorg.apache.commons.codec.digest.HmacUtils() since 1.11; only useful to preserve binary compatibilityorg.apache.commons.codec.digest.Md5Crypt() TODO Make private in 2.0.org.apache.commons.codec.digest.UnixCrypt() TODO Make private in 2.0.org.apache.commons.codec.Resources() TODO Make private in 2.0.org.apache.commons.codec.StringEncoderComparator() Creating an instance without aStringEncoder
leads to aNullPointerException
. Will be removed in 2.0.org.apache.commons.compress.archivers.Lister() No replacement.org.apache.commons.compress.archivers.sevenz.SevenZFile(File) org.apache.commons.compress.archivers.tar.TarArchiveOutputStream(OutputStream, int, int) recordSize must always be 512 bytes. An IllegalArgumentException will be thrown if any other value is usedorg.apache.commons.compress.archivers.zip.ZipFile(File) org.apache.commons.compress.utils.ChecksumCalculatingInputStream(Checksum, InputStream) UseCheckedInputStream(InputStream, Checksum)
.org.apache.commons.compress.utils.CRC32VerifyingInputStream(InputStream, long, int) No longer used.org.apache.commons.fileupload.DefaultFileItem(String, String, boolean, String, int, File) 1.1 UseDiskFileItem
instead.org.apache.commons.fileupload.DefaultFileItemFactory() 1.1 UseDiskFileItemFactory
instead.org.apache.commons.fileupload.DiskFileUpload() 1.1 UseFileUpload
instead.org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException() 1.2 Replaced bySizeLimitExceededException(String, long, long)
org.apache.commons.fileupload.MultipartStream() org.apache.commons.io.CopyUtils() TODO Make private in 3.0.org.apache.commons.io.EndianUtils() TODO Make private in 3.0.org.apache.commons.io.filefilter.WildcardFileFilter(List<String>) org.apache.commons.io.FilenameUtils() TODO Make private in 3.0.org.apache.commons.io.FileSystemUtils() TODO Make private in 3.0.org.apache.commons.io.FileUtils() TODO Make private in 3.0.org.apache.commons.io.input.AutoCloseInputStream(InputStream) org.apache.commons.io.input.BOMInputStream(InputStream) org.apache.commons.io.input.BoundedInputStream(InputStream) UseIOSupplier.get()
.org.apache.commons.io.input.BrokenInputStream(IOException) org.apache.commons.io.input.BrokenReader(IOException) org.apache.commons.io.input.BufferedFileChannelInputStream(File) org.apache.commons.io.input.CharSequenceInputStream(CharSequence, Charset) org.apache.commons.io.input.CloseShieldInputStream(InputStream) Using this constructor prevents IDEs from warning if the underlying input stream is never closed. UseCloseShieldInputStream.wrap(InputStream)
instead.org.apache.commons.io.input.CloseShieldReader(Reader) Using this constructor prevents IDEs from warning if the underlying reader is never closed. UseCloseShieldReader.wrap(Reader)
instead.org.apache.commons.io.input.MessageDigestCalculatingInputStream(InputStream) org.apache.commons.io.input.QueueInputStream(BlockingQueue<Integer>) org.apache.commons.io.input.RandomAccessFileInputStream(RandomAccessFile) org.apache.commons.io.input.ReadAheadInputStream(InputStream, int) org.apache.commons.io.input.ReaderInputStream(Reader) UseReaderInputStream.builder()
insteadorg.apache.commons.io.input.ReversedLinesFileReader(File) org.apache.commons.io.input.Tailer(File, Charset, TailerListener, long, boolean, boolean, int) org.apache.commons.io.input.UnsynchronizedByteArrayInputStream(byte[]) org.apache.commons.io.input.XmlStreamReader(File) org.apache.commons.io.IOUtils() TODO Make private in 3.0.org.apache.commons.io.output.BrokenOutputStream(IOException) org.apache.commons.io.output.BrokenWriter(IOException) org.apache.commons.io.output.ChunkedOutputStream(OutputStream) org.apache.commons.io.output.CloseShieldOutputStream(OutputStream) Using this constructor prevents IDEs from warning if the underlying output stream is never closed. UseCloseShieldOutputStream.wrap(OutputStream)
instead.org.apache.commons.io.output.CloseShieldWriter(Writer) Using this constructor prevents IDEs from warning if the underlying writer is never closed. UseCloseShieldWriter.wrap(Writer)
instead.org.apache.commons.io.output.DeferredFileOutputStream(int, File) org.apache.commons.io.output.FileWriterWithEncoding(File, Charset) org.apache.commons.io.output.LockableFileWriter(File) org.apache.commons.io.output.NullOutputStream() org.apache.commons.io.output.NullPrintStream() org.apache.commons.io.output.NullWriter() UseNullWriter.INSTANCE
.org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream() org.apache.commons.io.output.WriterOutputStream(Writer) org.apache.commons.io.output.XmlStreamWriter(File) org.apache.commons.io.RandomAccessFiles() TODO Make private in 3.0.org.apache.commons.io.ThreadUtils() TODO Make private in 3.0.org.apache.commons.lang.builder.ReflectionToStringBuilder(Object, ToStringStyle, StringBuffer, Class, boolean) org.apache.commons.lang3.exception.ExceptionUtils() Will be private in 3.0.org.apache.commons.math.analysis.integration.RombergIntegrator(UnivariateRealFunction) as of 2.0 the integrand function is passed as an argument to theRombergIntegrator.integrate(UnivariateRealFunction, double, double)
method.org.apache.commons.math.analysis.integration.SimpsonIntegrator(UnivariateRealFunction) as of 2.0 the integrand function is passed as an argument to theSimpsonIntegrator.integrate(UnivariateRealFunction, double, double)
method.org.apache.commons.math.analysis.integration.TrapezoidIntegrator(UnivariateRealFunction) as of 2.0 the integrand function is passed as an argument to theTrapezoidIntegrator.integrate(UnivariateRealFunction, double, double)
method.org.apache.commons.math.analysis.solvers.BisectionSolver(UnivariateRealFunction) as of 2.0 the function to solve is passed as an argument to theBisectionSolver.solve(UnivariateRealFunction, double, double)
orUnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.org.apache.commons.math.analysis.solvers.BrentSolver(UnivariateRealFunction) as of 2.0 the function to solve is passed as an argument to theBrentSolver.solve(UnivariateRealFunction, double, double)
orUnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.org.apache.commons.math.analysis.solvers.LaguerreSolver(UnivariateRealFunction) as of 2.0 the function to solve is passed as an argument to theLaguerreSolver.solve(UnivariateRealFunction, double, double)
orUnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.org.apache.commons.math.analysis.solvers.MullerSolver(UnivariateRealFunction) as of 2.0 the function to solve is passed as an argument to theMullerSolver.solve(UnivariateRealFunction, double, double)
orUnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.org.apache.commons.math.analysis.solvers.NewtonSolver(DifferentiableUnivariateRealFunction) as of 2.0 the function to solve is passed as an argument to theNewtonSolver.solve(UnivariateRealFunction, double, double)
orUnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.org.apache.commons.math.analysis.solvers.RiddersSolver(UnivariateRealFunction) as of 2.0 the function to solve is passed as an argument to theRiddersSolver.solve(UnivariateRealFunction, double, double)
orUnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.org.apache.commons.math.analysis.solvers.SecantSolver(UnivariateRealFunction) as of 2.0 the function to solve is passed as an argument to theSecantSolver.solve(UnivariateRealFunction, double, double)
orUnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.org.apache.commons.math.ConvergenceException(String, Object...) as of 2.2 replaced byConvergenceException(Localizable, Object...)
org.apache.commons.math.distribution.ChiSquaredDistributionImpl(double, GammaDistribution) as of 2.1 (to avoid possibly inconsistent state, the "GammaDistribution" will be instantiated internally)org.apache.commons.math.distribution.PoissonDistributionImpl(double, NormalDistribution) as of 2.1 (to avoid possibly inconsistent state, the "NormalDistribution" will be instantiated internally)org.apache.commons.math.geometry.NotARotationMatrixException(String, Object...) as of 2.2 replaced byNotARotationMatrixException(Localizable, Object...)
org.apache.commons.math.linear.InvalidMatrixException(String, Object...) since 2.2 replaced byInvalidMatrixException(Localizable, Object...)
org.apache.commons.math.linear.MatrixIndexException(String, Object...) as of 2.2 replaced byMatrixIndexException(Localizable, Object...)
org.apache.commons.math.MathException(String, Object...) as of 2.2 replaced byMathException(Localizable, Object...)
org.apache.commons.math.MathRuntimeException(String, Object...) as of 2.2 replaced byMathRuntimeException(Localizable, Object...)
org.apache.commons.math.MaxEvaluationsExceededException(int, String, Object...) as of 2.2 replaced byMaxEvaluationsExceededException(int, Localizable, Object...)
org.apache.commons.math.MaxIterationsExceededException(int, String, Object...) as of 2.2 replaced byMaxIterationsExceededException(int, Localizable, Object...)
org.apache.commons.math.ode.events.EventException(String, Object...) as of 2.2 replaced byEventException(Localizable, Object...)
org.apache.commons.math.ode.IntegratorException(String, Object...) as of 2.2 replaced byIntegratorException(Localizable, Object...)
org.apache.commons.math.optimization.OptimizationException(String, Object...) as of 2.2 replaced byOptimizationException(Localizable, Object...)
org.apache.commons.math.stat.inference.TTestImpl(TDistribution) in 2.2 (to be removed in 3.0).org.apache.commons.math.stat.regression.SimpleRegression(TDistribution) in 2.2 (to be removed in 3.0). Please use theother constructor
instead.org.apache.jackrabbit.oak.plugins.commit.ConflictValidator(Tree) org.apache.jackrabbit.spi.commons.EventImpl(int, Path, ItemId, NodeId, Name, Name[], String) org.apache.jackrabbit.spi.commons.ItemInfoImpl(NodeId, Name, Path, boolean) UseItemInfoImpl(Path, boolean)
instead. The parentId is not used any more and the corresponding getter has been removed.org.apache.jackrabbit.spi.commons.LockInfoImpl(String, String, boolean, boolean, NodeId) org.apache.jackrabbit.spi.commons.NodeInfoImpl(NodeId, Name, Path, NodeId, int, Name, Name[], Iterator<PropertyId>, Iterator<PropertyId>, Iterator<ChildInfo>) UseNodeInfoImpl(Path, NodeId, int, Name, Name[], Iterator, Iterator, Iterator)
instead. The parentId is not used any more.org.apache.jackrabbit.spi.commons.PropertyInfoImpl(NodeId, Name, Path, PropertyId, int, boolean, QValue[]) UsePropertyInfoImpl(Path, PropertyId, int, boolean, QValue[])
instead. The parentId is not used any more.org.apache.jackrabbit.spi.commons.query.OrderQueryNode.OrderSpec(Name, boolean) useOrderSpec(Path, boolean)
instead.org.apache.jackrabbit.vault.fs.io.ImportOptions(ImportOptions) useImportOptions.copy()
instead.org.apache.jackrabbit.vault.packaging.PackageId(String) As of 3.1.42, the storage location is implementation details.org.apache.jackrabbit.vault.util.DocViewNode(String, String, Attributes, NamePathResolver) org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy() Don't create instances of this class, useAnalyzer.GLOBAL_REUSE_STRATEGY
org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy() Don't create instances of this class, useAnalyzer.PER_FIELD_REUSE_STRATEGY
org.apache.lucene.document.Field(String, String, Field.Store, Field.Index) UseStringField
,TextField
instead.org.apache.sling.api.resource.observation.ResourceChange(ResourceChange.ChangeType, String, boolean, Set<String>, Set<String>, Set<String>) The sets of property names are not supported anymore.org.apache.sling.caconfig.resource.spi.ContextResource(Resource, String) org.apache.sling.commons.osgi.RankedServices() UseRankedServices(Order)
to explicitly give the order.org.apache.sling.discovery.commons.InitDelayingTopologyEventListener(long, TopologyEventListener, Scheduler) org.apache.sling.scripting.jsp.jasper.runtime.TagHandlerPool(int) Use static getTagHandlerPoolorg.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator(ParseContext, XWPFWordExtractor) org.apache.tika.parser.mp3.AudioFrame(InputStream, ContentHandler) Use the constructor which is passed all values directly.org.apache.tika.parser.RecursiveParserWrapper(Parser, ContentHandlerFactory) org.apache.tika.parser.utils.CommonsDigester(int, CommonsDigester.DigestAlgorithm...) org.bson.json.JsonWriter.Context(JsonWriter.Context, BsonContextType, String) org.bson.json.JsonWriterSettings() PreferJsonWriterSettings.builder()
, but note that the default output mode is different for that methodorg.bson.types.ObjectId(Date, int, short, int) UseObjectId(Date, int)
insteadorg.joda.time.format.DateTimeParserBucket(long, Chronology, Locale) Use longer constructororg.json.XMLParserConfiguration(boolean) This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed in a future release.org.mozilla.javascript.Context() this constructor is deprecated because it creates a dependency on a static singleton context factory. UseContextFactory.enter()
orContextFactory.call(ContextAction)
instead. If you subclass this class, consider usingContext(ContextFactory)
constructor instead in the subclasses' constructors.org.mozilla.javascript.EcmaError(Scriptable, String, int, int, String) EcmaError error instances should not be constructed explicitly since they are generated by the engine.org.mozilla.javascript.JavaScriptException(Object) UseWrappedException(Throwable)
to report exceptions in Java code.org.mozilla.javascript.NativeJavaPackage(String, ClassLoader) NativeJavaPackage is an internal class, do not use it directly.
-
Enum Constants Enum Constant Description com.adobe.granite.maintenance.MaintenanceTaskInfo.TaskSchedule.BIWEEKLY com.day.cq.replication.ReplicationActionType.REVERSE since 5.5. useReplicationActionType.INTERNAL_POLL
instead.com.fasterxml.jackson.core.JsonGenerator.Feature.ESCAPE_NON_ASCII Since 2.10 useJsonWriteFeature.ESCAPE_NON_ASCII
insteadcom.fasterxml.jackson.core.JsonGenerator.Feature.QUOTE_FIELD_NAMES Since 2.10 useJsonWriteFeature.QUOTE_FIELD_NAMES
insteadcom.fasterxml.jackson.core.JsonGenerator.Feature.QUOTE_NON_NUMERIC_NUMBERS Since 2.10 useJsonWriteFeature.WRITE_NAN_AS_STRINGS
insteadcom.fasterxml.jackson.core.JsonGenerator.Feature.USE_FAST_DOUBLE_WRITER UseStreamWriteFeature.USE_FAST_DOUBLE_WRITER
insteadcom.fasterxml.jackson.core.JsonGenerator.Feature.WRITE_HEX_UPPER_CASE UseJsonWriteFeature.WRITE_HEX_UPPER_CASE
insteadcom.fasterxml.jackson.core.JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS Since 2.10 useJsonWriteFeature.WRITE_NUMBERS_AS_STRINGS
insteadcom.fasterxml.jackson.core.JsonParser.Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER Since 2.10 useJsonReadFeature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER
insteadcom.fasterxml.jackson.core.JsonParser.Feature.ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_LEADING_PLUS_SIGN_FOR_NUMBERS com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_MISSING_VALUES Since 2.10 useJsonReadFeature.ALLOW_MISSING_VALUES
insteadcom.fasterxml.jackson.core.JsonParser.Feature.ALLOW_NON_NUMERIC_NUMBERS Since 2.10 useJsonReadFeature.ALLOW_NON_NUMERIC_NUMBERS
insteadcom.fasterxml.jackson.core.JsonParser.Feature.ALLOW_NUMERIC_LEADING_ZEROS Since 2.10 useJsonReadFeature.ALLOW_LEADING_ZEROS_FOR_NUMBERS
insteadcom.fasterxml.jackson.core.JsonParser.Feature.ALLOW_TRAILING_COMMA Since 2.10 useJsonReadFeature.ALLOW_TRAILING_COMMA
insteadcom.fasterxml.jackson.core.JsonParser.Feature.ALLOW_TRAILING_DECIMAL_POINT_FOR_NUMBERS com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS Since 2.10 useJsonReadFeature.ALLOW_UNESCAPED_CONTROL_CHARS
insteadcom.fasterxml.jackson.databind.ObjectMapper.DefaultTyping.EVERYTHING Since 2.17 and removed from 3.0 --seeObjectMapper.DefaultTyping.NON_FINAL_AND_ENUMS
for Enum-related usage.com.fasterxml.jackson.databind.SerializationFeature.WRITE_BIGDECIMAL_AS_PLAIN Since 2.5: useJsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN
instead (usingObjectWriter.with(com.fasterxml.jackson.core.JsonGenerator.Feature)
).com.fasterxml.jackson.databind.SerializationFeature.WRITE_EMPTY_JSON_ARRAYS Since 2.8 there are better mechanism for specifying filtering; specifically usingJsonInclude
or configuration overrides.com.fasterxml.jackson.databind.SerializationFeature.WRITE_NULL_MAP_VALUES Since 2.9 there are better mechanism for specifying filtering; specifically usingJsonInclude
or configuration overrides (seeObjectMapper.configOverride(Class)
}).com.mongodb.AuthenticationMechanism.MONGODB_CR This mechanism was replaced byAuthenticationMechanism.SCRAM_SHA_1
in MongoDB 3.0, and is now deprecatedorg.apache.commons.lang3.JavaVersion.JAVA_1_9 As of release 3.5, replaced byJavaVersion.JAVA_9
org.apache.jackrabbit.vault.fs.api.ImportMode.MERGE As this behaves inconsistently for the different serialization formats, rather useImportMode.MERGE_PROPERTIES
.org.apache.jackrabbit.vault.fs.api.ImportMode.UPDATE As this behaves inconsistently for the different serialization formats, rather useImportMode.UPDATE_PROPERTIES
org.apache.jackrabbit.vault.fs.api.SerializationType.CND Don't rely on this serialization type at all and rather place CND files in metadata.org.apache.lucene.search.SortField.Type.BYTE org.apache.lucene.search.SortField.Type.SHORT org.apache.lucene.util.Version.LUCENE_30 (4.0) Use latestorg.apache.lucene.util.Version.LUCENE_31 (4.0) Use latestorg.apache.lucene.util.Version.LUCENE_32 (4.0) Use latestorg.apache.lucene.util.Version.LUCENE_33 (4.0) Use latestorg.apache.lucene.util.Version.LUCENE_34 (4.0) Use latestorg.apache.lucene.util.Version.LUCENE_35 (4.0) Use latestorg.apache.lucene.util.Version.LUCENE_36 (4.0) Use latestorg.apache.lucene.util.Version.LUCENE_40 (4.1) Use latestorg.apache.lucene.util.Version.LUCENE_41 (4.2) Use latestorg.apache.lucene.util.Version.LUCENE_42 (4.3) Use latestorg.apache.lucene.util.Version.LUCENE_43 (4.4) Use latestorg.apache.lucene.util.Version.LUCENE_44 (4.5) Use latestorg.apache.lucene.util.Version.LUCENE_45 (4.6) Use latestorg.apache.lucene.util.Version.LUCENE_46 (4.7) Use latestorg.apache.lucene.util.Version.LUCENE_CURRENT Use an actual version instead.org.bson.json.JsonMode.STRICT The format generated with this mode is no longer considered standard for MongoDB tools. This value is not currently scheduled for removal.
-
Annotation Type Elements Annotation Type Element Description com.fasterxml.jackson.databind.annotation.JsonSerialize.include() As of Jackson 2.0, this annotation has been replaced byJsonInclude
com.fasterxml.jackson.databind.jsonschema.JsonSerializableSchema.schemaItemDefinition() (since 2.1) -- support will be dropped in future, since JSON-as-String is fundamentally bad way for customizing anything. No direct replacements offered.com.fasterxml.jackson.databind.jsonschema.JsonSerializableSchema.schemaObjectPropertiesDefinition() (since 2.1) -- support will be dropped in future, since JSON-as-String is fundamentally bad way for customizing anything. No direct replacements offered.org.apache.sling.models.annotations.injectorspecific.ChildResource.optional() UseChildResource.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.OSGiService.optional() UseOSGiService.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.RequestAttribute.optional() UseRequestAttribute.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.ResourcePath.optional() UseResourcePath.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.ScriptVariable.optional() UseScriptVariable.injectionStrategy()
instead.org.apache.sling.models.annotations.injectorspecific.Self.optional() UseSelf.injectionStrategy()
insteadorg.apache.sling.models.annotations.injectorspecific.SlingObject.optional() UseSlingObject.injectionStrategy()
insteadorg.apache.sling.models.annotations.injectorspecific.ValueMapValue.optional() UseValueMapValue.injectionStrategy()
instead