File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
spring-core/src/main/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -935,7 +935,7 @@ VariableResolver asVariableResolver() {
935
935
if (this == NONE ) {
936
936
return null ;
937
937
}
938
- return new DefaultVariableResolver ();
938
+ return new DefaultVariableResolver (this );
939
939
}
940
940
941
941
/**
@@ -1452,17 +1452,23 @@ interface VariableResolver extends Serializable {
1452
1452
1453
1453
1454
1454
@ SuppressWarnings ("serial" )
1455
- private class DefaultVariableResolver implements VariableResolver {
1455
+ private static class DefaultVariableResolver implements VariableResolver {
1456
+
1457
+ private final ResolvableType source ;
1458
+
1459
+ DefaultVariableResolver (ResolvableType resolvableType ) {
1460
+ this .source = resolvableType ;
1461
+ }
1456
1462
1457
1463
@ Override
1458
1464
@ Nullable
1459
1465
public ResolvableType resolveVariable (TypeVariable <?> variable ) {
1460
- return ResolvableType . this .resolveVariable (variable );
1466
+ return this . source .resolveVariable (variable );
1461
1467
}
1462
1468
1463
1469
@ Override
1464
1470
public Object getSource () {
1465
- return ResolvableType . this ;
1471
+ return this . source ;
1466
1472
}
1467
1473
}
1468
1474
You can’t perform that action at this time.
0 commit comments