diff options
author | Sauli Tähkäpää <sauli@vaadin.com> | 2014-03-21 10:18:57 +0200 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2014-03-21 10:19:47 +0200 |
commit | d90416ce1bf53b18e14b951e27f36d7323b3f3d3 (patch) | |
tree | 68dbf239394a179e69394b27794d77f8bb9c5752 /shared/src/com | |
parent | 91b40555d6232a7562c50063416f58e0b544437d (diff) | |
parent | 49973354b22e8aba9cc71f83571020b0414c54e0 (diff) | |
download | vaadin-framework-d90416ce1bf53b18e14b951e27f36d7323b3f3d3.tar.gz vaadin-framework-d90416ce1bf53b18e14b951e27f36d7323b3f3d3.zip |
Merge commit '49973354b22e8aba9cc71f83571020b0414c54e0'
Conflicts:
shared/ivy.xml
Change-Id: I2aa7cc35953fdc7441d1a5b15a7bf0a34a97db7f
Diffstat (limited to 'shared/src/com')
-rw-r--r-- | shared/src/com/vaadin/shared/util/SharedUtil.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/util/SharedUtil.java b/shared/src/com/vaadin/shared/util/SharedUtil.java index 80efe68d83..449685705f 100644 --- a/shared/src/com/vaadin/shared/util/SharedUtil.java +++ b/shared/src/com/vaadin/shared/util/SharedUtil.java @@ -44,4 +44,13 @@ public class SharedUtil implements Serializable { return o1.equals(o2); } + /** + * Trims trailing slashes (if any) from a string. + * @param value The string value to be trimmed. Cannot be null. + * @return String value without trailing slashes. + */ + public static String trimTrailingSlashes(String value) { + return value.replaceAll("/*$", ""); + } + } |