From 079f07b3fe0c09f37edc8627c422c8e51b68cdaa Mon Sep 17 00:00:00 2001 From: Jon Brisbin Date: Wed, 5 Sep 2012 14:51:11 -0500 Subject: [PATCH] Tweak comment wording. --- .../data/rest/webmvc/RepositoryRestController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java index 51c47c249..ea975de86 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java @@ -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); }