G
YouTube TikTok Games
Skip to content

Fixed various IntelliJ warnings in BaseActivator - #2911

Open
CptBartender wants to merge 2 commits into
apache:mainfrom
CptBartender:modernize-base-activator
Open

CptBartender wants to merge 2 commits into
apache:mainfrom
CptBartender:modernize-base-activator

Conversation

@CptBartender

Copy link
Copy Markdown
Contributor
  • Added type parameters to generics
  • Changed the class so that it explicitly implements ManagedService instead of sneakily registering itself as such Extracted the string splitting pattern to a static field so that the regex is compiled only once
  • Changed getInterfaceNames so that it returns distinct classes in case any implemented interfaces extend the same superinterface
  • Changed trackers map to use Class objects as keys instead of String names
  • Intermediately bumped required Java version to 17 so that pattern matching for instanceof can be used - eventually it'll be bumped in Lift minimum JDK version to 21 and remove SecurityManager #2214, I presume

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Test Results

  662 files   -  67    662 suites   - 67   53m 30s ⏱️ - 26m 37s
1 076 tests ±  0    942 ✅ ±  0  134 💤 ± 0  0 ❌ ±0 
3 018 runs   - 210  2 645 ✅  - 181  373 💤  - 29  0 ❌ ±0 

Results for commit fb32517. ± Comparison against base commit 383adcb.

♻️ This comment has been updated with latest results.

@CptBartender
CptBartender marked this pull request as draft October 3, 2026 08:55
@CptBartender
CptBartender marked this pull request as ready for review October 3, 2026 13:06
@jbonofre

jbonofre commented Oct 3, 2026

Copy link
Copy Markdown
Member

@CptBartender thanks, I'm doing a new pass.

@jbonofre
jbonofre self-requested a review October 3, 2026 13:07
@CptBartender
CptBartender force-pushed the modernize-base-activator branch from ba4b0fa to 8f6d222 Compare October 3, 2026 13:44
Comment thread pom.xml Resolved

@jbonofre jbonofre 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.

Thanks for the updates!

I left a few more comments inline. The main one is still the Java baseline.

Comment thread pom.xml Resolved
Comment thread pom.xml Resolved
Added type parameters to generics
Extracted the string splitting pattern to a static field so that the regex is compiled only once
Changed getInterfaceNames so that it returns distinct classes in case any implemented interfaces extend the same superinterface
Extracted `getTrackedService` logic to an internal method used by all 3 overloads
@CptBartender
CptBartender force-pushed the modernize-base-activator branch from 583a1dc to fb32517 Compare October 4, 2026 19:04
@CptBartender
CptBartender requested a review from jbonofre October 4, 2026 19:05
….java

Co-authored-by: JB Onofré <jbonofre@apache.org>
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