Skip to content

docs: remove stale JDK 11 deprecation comments#1684

Merged
He-Pin merged 1 commit into
apache:mainfrom
He-Pin:build/cleanup-stale-jdk-comments
Jun 15, 2026
Merged

docs: remove stale JDK 11 deprecation comments#1684
He-Pin merged 1 commit into
apache:mainfrom
He-Pin:build/cleanup-stale-jdk-comments

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 15, 2026

Copy link
Copy Markdown
Member

Motivation

Java 17 is the project baseline. Inline // deprecated in JDK 11+ notes and // JDK 11 ... markers annotate facts that are universally known for any Java 17+ reader and add noise. Aligned with the comment style introduced by apache/pekko#3075 ("project baseline is Java 17").

Modification

  • Drop the trailing // deprecated in JDK 11+ comment from both field.isAccessible() call sites in influxdb/src/main/scala/.../PekkoConnectorsResultMapperHelper.scala. The calls themselves are retained — only the redundant deprecation note is removed.
  • Update stale // JDK 11 ... notes in project/Common.scala (the commented-out -Xlint:removal scalac option) and build.sbt (the influxdb -Wconf:cat=deprecation:s silencing) to // project baseline is Java 17: ....

Result

No behavior change. Comments now reflect the actual Java baseline.

Tests

  • Not run - docs only (comment-only diff; no Scala/sbt behavior change).
  • git diff --check — clean.

References

Motivation:
Java 17 is the project baseline. Comments annotating deprecations
introduced "in JDK 11+" or scalac options once unavailable on JDK 11
are now stating the obvious and add noise.

Modification:
- Drop the trailing `// deprecated in JDK 11+` comment from both
  `field.isAccessible()` call sites in
  `PekkoConnectorsResultMapperHelper.scala` (influxdb). The call itself
  is retained — only the now-redundant deprecation note is removed.
- Update stale `// JDK 11 ...` notes in `project/Common.scala` and
  `build.sbt` to `// project baseline is Java 17: ...` (aligned with
  apache/pekko#3075 comment style).

Result:
No behavior change. Comments now reflect the actual Java baseline.

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@He-Pin He-Pin merged commit 703874c into apache:main Jun 15, 2026
53 checks passed
@He-Pin He-Pin deleted the build/cleanup-stale-jdk-comments branch June 15, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants