From 2c8a6bb6f50af48069883c83e9b9569cd6bcc446 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 10 Nov 2017 20:20:23 +0100 Subject: [PATCH] Explicitly document UriTemplate as thread-safe Issue: SPR-16173 (cherry picked from commit de78202) --- .../java/org/springframework/web/util/UriTemplate.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/util/UriTemplate.java b/spring-web/src/main/java/org/springframework/web/util/UriTemplate.java index becfcefd1e..e1afd16949 100644 --- a/spring-web/src/main/java/org/springframework/web/util/UriTemplate.java +++ b/spring-web/src/main/java/org/springframework/web/util/UriTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,16 +30,18 @@ import org.springframework.util.Assert; /** * Represents a URI template. A URI template is a URI-like String that contains variables - * enclosed by braces ({@code {}}), which can be expanded to produce an actual URI. + * enclosed by braces ({@code {}}) which can be expanded to produce an actual URI. * *

See {@link #expand(Map)}, {@link #expand(Object[])}, and {@link #match(String)} * for example usages. * + *

This class is designed to be thread-safe and reusable, allowing for any number + * of expand or match calls. + * * @author Arjen Poutsma * @author Juergen Hoeller * @author Rossen Stoyanchev * @since 3.0 - * @see URI Templates */ @SuppressWarnings("serial") public class UriTemplate implements Serializable {