Skip to content

[BISERVER-15769] - remove unused finalizer - #6348

Merged
befc merged 1 commit into
masterfrom
abryant/BISERVER-15769
Sep 3, 2026
Merged

befc merged 1 commit into
masterfrom
abryant/BISERVER-15769

Conversation

@abryant-hv

Copy link
Copy Markdown
Contributor

Was a no-op and caused the objects to stay in memory waiting for finalization

Was a no-op and caused the objects to stay in memory waiting for finalization
Copilot AI lite review requested due to automatic review settings September 3, 2026 17:06
@abryant-hv
abryant-hv requested a review from a team as a code owner September 3, 2026 17:06

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed OSS Licenses high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Malicious Packages high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change removes a no-op finalizer without affecting runtime behavior and reduces GC/finalization overhead risk.

Pull request overview

Removes an unused finalize() override from the JCR session proxy invocation handler in CredentialsStrategySessionFactory, eliminating finalizable-object behavior that can delay garbage collection and keep instances in memory longer than necessary.

Changes:

  • Deleted a no-op finalize() method from the inner LogoutSuppressingInvocationHandler class to avoid unnecessary finalization overhead/retention.
File summaries
File Description
repository/src/main/java/org/pentaho/platform/repository2/unified/jcr/sejcr/CredentialsStrategySessionFactory.java Removes an unused finalizer from the session invocation handler to prevent finalization-induced retention.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@buildguy

buildguy commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

@buildguy

buildguy commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

✅ Build finished in 6m 49s

Build command:

mvn clean verify -B -e -Daudit -Djs.no.sandbox -pl repository

👌 All tests passed!

Tests run: 626, Failures: 0, Skipped: 0    Test Results


ℹ️ This is an automatic message

@hitachivantarasonarqube

Copy link
Copy Markdown

@befc
befc merged commit 691c07e into master Sep 3, 2026
9 checks passed
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.

5 participants