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

java:S1874: Do not use Experience Manager deprecated APIs (deprecated API removal)

In Cloud Manager, java:S1874 flags uses of AEM APIs that Adobe has deprecated with a removal date, and its severity rises from Info to Minor to Major as that date approaches. Replace each use with the API Adobe names before the removal date; after it, builds that still use the API fail.

Rule keyjava:S1874
Adobe's rule nameDo not use Experience Manager deprecated APIs (deprecated API removal)
TypeVulnerability or Bug · Cloud Service Compatibility
SeverityInfo, Minor or Major
Since2026.1.0
Checked bySonarQube analysis of your Java code

Why Cloud Manager flags it

S1874 is SonarQube's general 'deprecated code should not be used' rule. Adobe added it to the Cloud Manager rule set in release 2026.1.0, scoped to Experience Manager APIs that are marked for removal, and made it the main early warning before removals. It differs from AMSCORE-553, which covers APIs deprecated only in the AEM context with no removal date.

The rule page gives no code examples because the replacement depends on the API. Adobe's 'Deprecated and removed features' page lists each API, its removal date and its replacement; our deprecated APIs pages break those down one by one.

How to work through the list

Severity shownWhat it meansWhat to do
InfoRemoval date is far offPlan the change in the normal backlog
MinorRemoval date is getting closerSchedule it this quarter
MajorRemoval is nearFix now: it counts against the Security or Reliability rating
Build failsThe API is goneThe pipeline cannot pass until it is replaced

How to fix it

  1. Export the code quality report from Cloud Manager and filter for java:S1874.
  2. Group findings by API package (Guava, commons-lang 2, Sling Commons JSON, org.json and so on); one library swap usually clears many rows.
  3. Use the replacement Adobe names on its deprecated features page, and remove the old library from the bundle's imports.
  4. Re-run code quality and confirm the count is falling before the next removal date.

Does it stop the pipeline?

Adobe raises the severity from Info to Minor to Major as the API's removal date gets closer. At Major it counts against the Security or Reliability rating; after the removal date the build itself fails because the API is gone. 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

What is the difference between java:S1874 and AMSCORE-553?

java:S1874 covers AEM APIs with a removal date and gets more severe over time. AMSCORE-553 covers APIs deprecated only in the AEM context, without that schedule, and stays a minor code smell.

Why does the severity of the same finding change between runs?

Adobe ties it to the removal date. A finding that was Info last quarter can be Major now without any code change.

Can the free scan list these before Cloud Manager does?

Yes. The Surge Migrate readiness scan runs in your browser on a repository zip and flags removed and scheduled-for-removal APIs with file, line and fix.

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.