You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2022/05/23 15:56:07 UTC
[activemq-artemis-native] 03/03: add note about removing finalize usage
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch new-logging
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-native.git
commit a4adf10607cda2698ff1fb406ba243e5f9479d9c
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Mon May 23 16:15:50 2022 +0100
add note about removing finalize usage
---
.../java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java b/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java
index 1dcac3f..c53f0fa 100644
--- a/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java
+++ b/src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioContext.java
@@ -260,7 +260,7 @@ public class LibaioContext<Callback extends SubmitInfo> implements Closeable {
}
@Override
- protected void finalize() throws Throwable {
+ protected void finalize() throws Throwable { //TODO: remove?
super.finalize();
close();
}