summaryrefslogtreecommitdiffstats
path: root/component
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-12-01 12:55:17 +0100
committerJon Bratseth <bratseth@gmail.com>2020-12-01 13:26:07 +0100
commit4c8f206c4647876c3d437961b5d3ea484e639956 (patch)
tree65efad421c8663c089cddaabf3c3375e5ad5e1bf /component
parent6a1f7941dbb1b8cfaecc46ec0ab6c29bde3a23a5 (diff)
Close db on deconstruct
Diffstat (limited to 'component')
-rw-r--r--component/src/main/java/com/yahoo/component/AbstractComponent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/component/src/main/java/com/yahoo/component/AbstractComponent.java b/component/src/main/java/com/yahoo/component/AbstractComponent.java
index 163a2b0b7ef..fcaa1e62d56 100644
--- a/component/src/main/java/com/yahoo/component/AbstractComponent.java
+++ b/component/src/main/java/com/yahoo/component/AbstractComponent.java
@@ -20,7 +20,7 @@ public class AbstractComponent implements Component {
// We must store the class name, as this.getClass() will yield an exception when a bundled component's
// bundle has been uninstalled.
- private String className = getClass().getName();
+ private final String className = getClass().getName();
protected final boolean isDeconstructable;
/**