Polish and harmonize implementations of SpEL components in spring-context

This commit is contained in:
Sam Brannen
2024-09-03 17:16:20 +02:00
parent ea8f8f77c5
commit 529f311bd4
6 changed files with 33 additions and 34 deletions

View File

@@ -36,8 +36,9 @@ public class CompilableMapAccessor implements CompilablePropertyAccessor {
private final boolean allowWrite;
/**
* Create a new map accessor for reading as well as writing.
* Create a new {@code CompilableMapAccessor} for reading as well as writing.
* @since 6.2
* @see #CompilableMapAccessor(boolean)
*/
@@ -46,7 +47,7 @@ public class CompilableMapAccessor implements CompilablePropertyAccessor {
}
/**
* Create a new map accessor for reading and possibly also writing.
* Create a new {@code CompilableMapAccessor} for reading and possibly also writing.
* @param allowWrite whether to allow write operations on a target instance
* @since 6.2
* @see #canWrite
@@ -55,6 +56,7 @@ public class CompilableMapAccessor implements CompilablePropertyAccessor {
this.allowWrite = allowWrite;
}
@Override
public Class<?>[] getSpecificTargetClasses() {
return new Class<?>[] {Map.class};