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 key | AMSCORE-553 |
|---|---|
| Adobe's rule name | Do not use Experience Manager deprecated APIs (context-specific deprecation) |
| Type | Code Smell · Cloud Service Compatibility |
| Severity | Minor |
| Since | 2020.5.0 |
| Checked by | SonarQube 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 API | Usual replacement |
|---|---|
| org.apache.sling.commons.json | Jakarta 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.json | Jakarta 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
- Filter the Cloud Manager report for AMSCORE-553 and group by package.
- Swap one library at a time across the whole code base, with unit tests around the JSON or collection logic you touch.
- Remove the old dependency from the POM so it cannot creep back.
- 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
- Adobe: Custom code quality rules (checked 10 Nov 2026)
- Adobe: Code quality testing in Cloud Manager (checked 10 Nov 2026)
- Adobe: Deprecated and removed features (checked 10 Nov 2026)
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.