diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2022-02-08 17:13:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 17:13:41 +0100 |
commit | 12bc5e4513d97cd6bb752b3838fc610f634769a8 (patch) | |
tree | 91ba87fd1bfa2d10f4781963265d307008feb3aa /jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerSnapshot.java | |
parent | 5607b924b450e6574f68fdbd164563e8c25b9dbd (diff) | |
parent | bad739ae3be754bb495b5a3b5830a0c972f8fa39 (diff) |
Merge pull request #21108 from vespa-engine/bjorncs/jdisc-corev7.540.35
Deprecate method leaking Guice
Diffstat (limited to 'jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerSnapshot.java')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerSnapshot.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerSnapshot.java b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerSnapshot.java index f3641f2475b..808c8e89b1b 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerSnapshot.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerSnapshot.java @@ -37,7 +37,10 @@ class ContainerSnapshot extends AbstractResource implements Container { this.containerReference = container.refer(context); } + /** @deprecated Use {@link #getInstance(Class)} instead. */ @Override + @Deprecated(forRemoval = true, since = "7") // TODO Vespa 8 remove + @SuppressWarnings("removal") public <T> T getInstance(Key<T> key) { return container.guiceInjector().getInstance(key); } |