Skip to content

Commit c385a1d

Browse files
committed
Polishing
1 parent 88ab911 commit c385a1d

File tree

2 files changed

+6
-5
lines changed
  • spring-webmvc/src/main/java/org/springframework/web/servlet/tags
  • spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client

2 files changed

+6
-5
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/tags/UrlTag.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public class UrlTag extends HtmlEscapingAwareTag implements ParamAware {
166166

167167

168168
/**
169-
* Sets the value of the URL.
169+
* Set the value of the URL.
170170
*/
171171
public void setValue(String value) {
172172
if (value.contains(URL_TYPE_ABSOLUTE)) {
@@ -184,7 +184,8 @@ else if (value.startsWith("/")) {
184184
}
185185

186186
/**
187-
* Set the context path for the URL. Defaults to the current context
187+
* Set the context path for the URL.
188+
* Defaults to the current context.
188189
*/
189190
public void setContext(String context) {
190191
if (context.startsWith("/")) {
@@ -375,7 +376,7 @@ protected String replaceUriTemplateParams(String uri, List<Param> params, Set<St
375376
String value = param.getValue();
376377
try {
377378
uri = StringUtils.replace(uri, template,
378-
(value != null ? UriUtils.encodePathSegment(param.getValue(), encoding) : ""));
379+
(value != null ? UriUtils.encodePathSegment(value, encoding) : ""));
379380
}
380381
catch (UnsupportedCharsetException ex) {
381382
throw new JspException(ex);

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/SockJsUrlInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
/**
3030
* Container for the base URL of a SockJS endpoint with additional helper methods
31-
* to derive related SockJS URLs as the {@link #getInfoUrl() info} URL and
32-
* {@link #getTransportUrl(TransportType) transport} URLs.
31+
* to derive related SockJS URLs: specifically, the {@link #getInfoUrl() info}
32+
* and {@link #getTransportUrl(TransportType) transport} URLs.
3333
*
3434
* @author Rossen Stoyanchev
3535
* @since 4.1

0 commit comments

Comments
 (0)