Cloud Manager code quality · Java code rules (SonarQube) · updated

AMSCORE-553: Do not use Experience Manager deprecated APIs (context-specific deprecation)

AMSCORE-553 flags APIs that Adobe deprecates for use inside Experience Manager even though they are not marked @Deprecated in Java, so ordinary compiler warnings never show them. Replace them with the AEM-recommended alternative, starting with the ones Adobe has also scheduled for removal.

Rule keyAMSCORE-553
Adobe's rule nameDo not use Experience Manager deprecated APIs (context-specific deprecation)
TypeCode Smell · Cloud Service Compatibility
SeverityMinor
Since2020.5.0
Checked bySonarQube analysis of your Java code

Why Cloud Manager flags it

Some libraries are perfectly current in plain Java but are on Adobe's list for AEM, usually because Adobe wants to stop shipping them in the product. Examples on Adobe's deprecated features page include Sling Commons JSON, older Apache Commons libraries and Guava. Your IDE shows no strike-through, the code compiles, and only this rule tells you.

Adobe's rule page has no code example. The table shows common cases from Adobe's deprecated features list and the usual replacement.

Typical findings and replacements

Flagged APIUsual replacement
org.apache.sling.commons.jsonJakarta JSON-P or Jackson
com.google.common (Guava)Java standard library (java.util, java.util.stream, Optional)
org.apache.commons.lang (2.x)org.apache.commons.lang3
org.apache.commons.collections (3.x)org.apache.commons.collections4 or java.util
org.jsonJakarta JSON-P or Jackson

Check the current list on Adobe's page before you plan: items move from deprecated to scheduled for removal, at which point java:S1874 also starts reporting them.

How to fix it

  1. Filter the Cloud Manager report for AMSCORE-553 and group by package.
  2. Swap one library at a time across the whole code base, with unit tests around the JSON or collection logic you touch.
  3. Remove the old dependency from the POM so it cannot creep back.
  4. Keep an eye on java:S1874 for the same packages once Adobe sets a removal date.

Does it stop the pipeline?

Code smells feed the Maintainability Rating, which is based on the total estimated fix time as a share of development time, not on any single finding. One finding rarely moves it, but hundreds can push the rating below A, which is an important failure: the pipeline pauses until someone overrides or fixes it. Adobe also tags it Cloud Service Compatibility, so it is counted in that info metric of the report.

If a finding is a genuine false positive, Adobe's code quality page lets you annotate the code with @SuppressWarnings and the rule ID. In a full-stack pipeline, important failures can be overridden by a deployment manager, project manager or business lead; in a code-quality-only pipeline they cannot.

Related pages on this site

Questions

Why does the compiler not warn me?

Because the APIs are not annotated @Deprecated. The deprecation is Adobe's decision for the AEM runtime, so only Adobe's rule knows about it.

Is it safe to ignore a minor AMSCORE-553 finding?

For now it will not stop a pipeline. But these APIs are the pool from which Adobe schedules removals, and once removed the build fails.

Do these show up in the Best Practices Analyzer?

BPA reports deprecated and removed API use under its OU and OCU codes on a running instance. AMSCORE-553 is the build-time view in Cloud Manager.

See the Cloud Service blockers in your code before Cloud Manager shows them. The free Surge Migrate readiness scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists them with file, fix and effort. Nothing is uploaded.

Sources

Rule key, type, severity and version are as listed on Adobe's page, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to AEM as a Cloud Service

Surge Migrate moves a website from any CMS to any CMS, and AEM as a Cloud Service is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Content packages installed on a local AEM as a Cloud Service SDK. See the worked examples.

On AEM 6.5 code: Scan AEM 6.5 code free. The scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists Cloud Service blockers with file, fix and effort. Nothing is uploaded.