summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-12-03 18:14:06 -0800
committerJon Bratseth <bratseth@oath.com>2018-12-03 18:14:06 -0800
commit230233bbc4c92ffddfe9cf1d7b40af7e8f98b1e1 (patch)
treea49a94d149c0c8d9130b9ba58e238c3d1db16cf1 /application
parent97f154211d3784bbe3467f18e6475c2c548693eb (diff)
Less use of Container
Diffstat (limited to 'application')
-rw-r--r--application/src/main/java/com/yahoo/application/container/JDisc.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/src/main/java/com/yahoo/application/container/JDisc.java b/application/src/main/java/com/yahoo/application/container/JDisc.java
index 5554ae6a159..45c7b66ac5e 100644
--- a/application/src/main/java/com/yahoo/application/container/JDisc.java
+++ b/application/src/main/java/com/yahoo/application/container/JDisc.java
@@ -37,6 +37,8 @@ public final class JDisc implements AutoCloseable {
private final ClassLoaderOsgiFramework osgiFramework = new ClassLoaderOsgiFramework();
private final TestDriver testDriver;
+
+ @SuppressWarnings("unused")
private final StandaloneContainerApplication application;
private final Container container = Container.get(); // TODO: This is indeed temporary ... *3 years later* Indeed.
@@ -136,8 +138,7 @@ public final class JDisc implements AutoCloseable {
.getComponent(ProcessingHandler.class.getName());
if (processingHandler == null) {
- throw new UnsupportedOperationException("This JDisc does not have 'processing' " +
- "configured.");
+ throw new UnsupportedOperationException("This JDisc does not have 'processing' configured.");
}
return new Processing(processingHandler);
@@ -156,8 +157,7 @@ public final class JDisc implements AutoCloseable {
.getComponent(DocumentProcessingHandler.class.getName());
if (docprocHandler == null) {
- throw new UnsupportedOperationException("This JDisc does not have 'document-processing' " +
- "configured.");
+ throw new UnsupportedOperationException("This JDisc does not have 'document-processing' configured.");
}
return new DocumentProcessing(docprocHandler);
}