Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,7 @@ class BeamModulePlugin implements Plugin<Project> {
"StringCaseLocaleUsage",
// DoFn methods are executed reflectively at pipeline runtime
"UnusedMethod",
"PatternMatchingInstanceof"
]
disabledChecks.each {
options.errorprone.errorproneArgs.add("-Xep:${it}:OFF")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1001,12 +1001,6 @@ private void closeAutoscaler() {
LOG.error("Error closing autoscaler", e);
}
}

@Override
@SuppressWarnings({"Finalize", "removal"})
protected void finalize() {
doClose();
}

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.

@Abacn could you take a look at this piece?

@Amar3tto could you add context on this piece?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The finalize() method is deprecated and marked for removal in newer Java versions. Since UnboundedJmsReader already implements close() to release JMS resources, the finalizer is redundant. Resource cleanup should be handled explicitly through the reader lifecycle rather than relying on GC, which does not guarantee finalizer execution.

}

/**
Expand Down
Loading