Skip to content

Commit f3000ee

Browse files
committed
Code style
1 parent fdd883a commit f3000ee

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ private <Q> Supplier<Q> getBeanSupplier(Dependency<Q> dep, Key<Q> key) {
181181
// Add Plexus bindings
182182
for (var bean : locator.get().locate(toGuiceKey(key))) {
183183
if (isPlexusBean(bean)) {
184-
list.add(new BindingToBeanEntry<>(key)
185-
.toBeanEntry(bean)
186-
.prioritize(bean.getRank()));
184+
list.add(new BindingToBeanEntry<>(key).toBeanEntry(bean).prioritize(bean.getRank()));
187185
}
188186
}
189187
if (!list.isEmpty()) {

impl/maven-core/src/test/java/org/apache/maven/di/DiTest.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,20 +277,21 @@ class DiTest4 {
277277

278278
@BeforeEach
279279
void setup() throws Exception {
280-
container = new DefaultPlexusContainer(new DefaultContainerConfiguration(),
280+
container = new DefaultPlexusContainer(
281+
new DefaultContainerConfiguration(),
281282
new AbstractModule() {
282283
@Override
283284
protected void configure() {
284285
bind(ModelParser.class).to(DiTest4.TestModelParserSisu.class);
285286
}
286287
},
287288
new SisuDiBridgeModule(false) {
288-
@Override
289-
protected void configure() {
290-
super.configure();
291-
injector.bindImplicit(TestModelParserDi.class);
292-
}
293-
});
289+
@Override
290+
protected void configure() {
291+
super.configure();
292+
injector.bindImplicit(TestModelParserDi.class);
293+
}
294+
});
294295
}
295296

296297
@Test
@@ -348,7 +349,7 @@ public Model parse(Source source, Map<String, ?> options) throws ModelParserExce
348349
}
349350
}
350351

351-
//@org.apache.maven.api.di.Named("di")
352+
// @org.apache.maven.api.di.Named("di")
352353
static class TestModelParserDi implements ModelParser {
353354
@Override
354355
public Optional<Source> locate(Path dir) {

0 commit comments

Comments
 (0)