File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
spring-core/src/main/java/org/springframework/aot/hint Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public final class ResourceBundleHint implements ConditionalHint {
33
33
private final String baseName ;
34
34
35
35
@ Nullable
36
- private TypeReference reachableType ;
36
+ private final TypeReference reachableType ;
37
37
38
38
39
39
ResourceBundleHint (Builder builder ) {
@@ -83,6 +83,10 @@ public static class Builder {
83
83
@ Nullable
84
84
private TypeReference reachableType ;
85
85
86
+ Builder (String baseName ) {
87
+ this .baseName = baseName ;
88
+ }
89
+
86
90
/**
87
91
* Make this hint conditional on the fact that the specified type
88
92
* can be resolved.
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public ResourceHints registerType(Class<?> type) {
137
137
* @return {@code this}, to facilitate method chaining
138
138
*/
139
139
public ResourceHints registerResourceBundle (String baseName , @ Nullable Consumer <ResourceBundleHint .Builder > resourceHint ) {
140
- ResourceBundleHint .Builder builder = new ResourceBundleHint .Builder (). baseName ( baseName );
140
+ ResourceBundleHint .Builder builder = new ResourceBundleHint .Builder (baseName );
141
141
if (resourceHint != null ) {
142
142
resourceHint .accept (builder );
143
143
}
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ public static class Builder {
71
71
72
72
private final Set <ResourcePatternHint > excludes = new LinkedHashSet <>();
73
73
74
+ Builder () {
75
+ }
76
+
74
77
/**
75
78
* Includes the resources matching the specified pattern.
76
79
* @param reachableType the type that should be reachable for this hint to apply
You can’t perform that action at this time.
0 commit comments