From ed3d5f0a5971c8f554b1cb6cbb8cab87cb95163a Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 9 Sep 2015 11:47:19 +0100 Subject: [PATCH] Add javadoc to protected methods added in 5dc28b9 --- ...ocumentationContextPlaceholderResolver.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/spring-restdocs-core/src/main/java/org/springframework/restdocs/snippet/RestDocumentationContextPlaceholderResolver.java b/spring-restdocs-core/src/main/java/org/springframework/restdocs/snippet/RestDocumentationContextPlaceholderResolver.java index 8a2f9314..a517598d 100644 --- a/spring-restdocs-core/src/main/java/org/springframework/restdocs/snippet/RestDocumentationContextPlaceholderResolver.java +++ b/spring-restdocs-core/src/main/java/org/springframework/restdocs/snippet/RestDocumentationContextPlaceholderResolver.java @@ -74,14 +74,32 @@ public class RestDocumentationContextPlaceholderResolver implements PlaceholderR return null; } + /** + * Converts the given {@code string} from camelCase to kebab-case. + * + * @param string the string + * @return the converted string + */ protected final String camelCaseToKebabCase(String string) { return camelCaseToSeparator(string, "-"); } + /** + * Converts the given {@code string} from camelCase to snake_case. + * + * @param string the string + * @return the converted string + */ protected final String camelCaseToSnakeCase(String string) { return camelCaseToSeparator(string, "_"); } + /** + * Returns the {@link RestDocumentationContext} that should be used during placeholder + * resolution. + * + * @return the context + */ protected final RestDocumentationContext getContext() { return this.context; }