Tweak comment wording.

This commit is contained in:
Jon Brisbin
2012-09-05 14:51:11 -05:00
parent 2c710b5978
commit 079f07b3fe

View File

@@ -1298,7 +1298,7 @@ public class RepositoryRestController
return notFoundResponse(request);
}
// Check if this is a @*ToOne relationship and is optional and if not, fail with a 405 Method Not Allowed
// Check if this is a nullable (optional) relationship and if not, fail with a 405 Method Not Allowed
if(!attrMeta.isNullable()) {
return negotiateResponse(request, HttpStatus.METHOD_NOT_ALLOWED, new HttpHeaders(), null);
}
@@ -1446,7 +1446,7 @@ public class RepositoryRestController
return notFoundResponse(request);
}
// Check if this @*ToOne relationship is optional and if not, fail with a 405 Method Not Allowed
// Check if this is a nullable (optional) relationship and if not, fail with a 405 Method Not Allowed
if(!attrMeta.isNullable()) {
return negotiateResponse(request, HttpStatus.METHOD_NOT_ALLOWED, new HttpHeaders(), null);
}