Skip to content

Commit 90cc092

Browse files
authored
Merge pull request #862 from avaje/feature/tidy-dbuilder
Tidy only - final methods on internal DBuilder
2 parents 037e011 + 751ac9e commit 90cc092

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

inject/src/main/java/io/avaje/inject/spi/DBuilder.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class DBuilder implements Builder {
4444
}
4545

4646
@Override
47-
public void currentModule(Class<? extends AvajeModule> currentModule) {
47+
public final void currentModule(Class<? extends AvajeModule> currentModule) {
4848
beanMap.currentModule(currentModule);
4949
}
5050

@@ -88,7 +88,7 @@ private boolean isAnnotationType(Type type) {
8888
return false;
8989
}
9090

91-
protected final void next(String name, Type... types) {
91+
private void next(String name, Type... types) {
9292
injectTarget = firstOf(types);
9393
beanMap.nextBean(name, types);
9494
}
@@ -354,36 +354,35 @@ public final <T> T get(Type type, String name) {
354354
}
355355

356356
@Override
357-
public boolean containsProfiles(List<String> type) {
358-
357+
public final boolean containsProfiles(List<String> type) {
359358
return !Collections.disjoint(profiles, type);
360359
}
361360

362361
@Override
363-
public boolean containsAllProfiles(List<String> type) {
362+
public final boolean containsAllProfiles(List<String> type) {
364363
for (final var string : type) {
365364
if (!profiles.contains(string)) return false;
366365
}
367366
return true;
368367
}
369368

370369
@Override
371-
public boolean contains(String type) {
370+
public final boolean contains(String type) {
372371
return beanMap.contains(type);
373372
}
374373

375374
@Override
376-
public boolean contains(Type type) {
375+
public final boolean contains(Type type) {
377376
return beanMap.contains(type);
378377
}
379378

380379
@Override
381-
public boolean containsQualifier(String name) {
380+
public final boolean containsQualifier(String name) {
382381
return beanMap.containsQualifier(name);
383382
}
384383

385384
@Override
386-
public ConfigPropertyPlugin property() {
385+
public final ConfigPropertyPlugin property() {
387386
return propertyPlugin;
388387
}
389388

0 commit comments

Comments
 (0)