mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 05:49:04 +00:00
polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4463 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ public final class Property {
|
||||
MethodParameter read = resolveReadMethodParameter();
|
||||
MethodParameter write = resolveWriteMethodParameter();
|
||||
if (read == null && write == null) {
|
||||
throw new IllegalStateException("Property is neither readable or writeable");
|
||||
throw new IllegalStateException("Property is neither readable nor writeable");
|
||||
}
|
||||
if (read != null && write != null && !read.getParameterType().equals(write.getParameterType())) {
|
||||
throw new IllegalStateException("Read and write parameter types are not the same");
|
||||
|
||||
Reference in New Issue
Block a user