polishing

This commit is contained in:
Sam Brannen 2011-06-05 19:12:58 +00:00
parent 189cc262ad
commit 5976beca80
1 changed files with 1 additions and 1 deletions

View File

@ -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");