From b048c272e64d77a1f4d56186d39a32d6e11f586e Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Thu, 10 Oct 2019 14:17:03 -0500 Subject: [PATCH] #1045 - Reduce visiblity of UriTemplate constructors. Related issues: #1044 --- .../java/org/springframework/hateoas/UriTemplate.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/springframework/hateoas/UriTemplate.java b/src/main/java/org/springframework/hateoas/UriTemplate.java index 3b9986d0..ceb5d78f 100644 --- a/src/main/java/org/springframework/hateoas/UriTemplate.java +++ b/src/main/java/org/springframework/hateoas/UriTemplate.java @@ -57,10 +57,8 @@ public class UriTemplate implements Iterable, Serializable { * Creates a new {@link UriTemplate} using the given template string. * * @param template must not be {@literal null} or empty. - * @deprecated Migrate to {@link UriTemplate#of(String)}. */ - @Deprecated - public UriTemplate(String template) { + private UriTemplate(String template) { Assert.hasText(template, "Template must not be null or empty!"); @@ -102,10 +100,8 @@ public class UriTemplate implements Iterable, Serializable { * * @param baseUri must not be {@literal null} or empty. * @param variables must not be {@literal null}. - * @deprecated Migrate to {@link UriTemplate#of(String, TemplateVariables)}. */ - @Deprecated - public UriTemplate(String baseUri, TemplateVariables variables) { + UriTemplate(String baseUri, TemplateVariables variables) { Assert.hasText(baseUri, "Base URI must not be null or empty!"); Assert.notNull(variables, "Template variables must not be null!");