diff --git a/biz.aQute.bndlib/src/aQute/bnd/osgi/metainf/MetaInfServiceParser.java b/biz.aQute.bndlib/src/aQute/bnd/osgi/metainf/MetaInfServiceParser.java index 9c5c5eb7c55..40194f711a9 100644 --- a/biz.aQute.bndlib/src/aQute/bnd/osgi/metainf/MetaInfServiceParser.java +++ b/biz.aQute.bndlib/src/aQute/bnd/osgi/metainf/MetaInfServiceParser.java @@ -39,11 +39,6 @@ public boolean analyzeJar(Analyzer analyzer) throws Exception { return false; case METAINF_SERVICES_STRATEGY_AUTO : { analyzer.addClasspathDefault(ServiceProvider.class); - break; - } - case METAINF_SERVICES_STRATEGY_ANNOTATION : { - analyzer.addClasspathDefault(ServiceProvider.class); - // break; } } @@ -85,6 +80,6 @@ private void doAnnotationsforMetaInf(Analyzer analyzer, Implementation impl, Str } private String strategy(Analyzer analyzer) { - return analyzer.getProperty(METAINF_SERVICES, METAINF_SERVICES_STRATEGY_AUTO); + return analyzer.getProperty(METAINF_SERVICES, METAINF_SERVICES_STRATEGY_ANNOTATION); } }