diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-12-01 12:55:17 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-12-01 13:26:07 +0100 |
commit | 4c8f206c4647876c3d437961b5d3ea484e639956 (patch) | |
tree | 65efad421c8663c089cddaabf3c3375e5ad5e1bf /component | |
parent | 6a1f7941dbb1b8cfaecc46ec0ab6c29bde3a23a5 (diff) |
Close db on deconstruct
Diffstat (limited to 'component')
-rw-r--r-- | component/src/main/java/com/yahoo/component/AbstractComponent.java | 2 |
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; /** |