summaryrefslogtreecommitdiffstats
path: root/shared/src/main
diff options
context:
space:
mode:
authorArtur <artur@vaadin.com>2017-08-28 16:13:46 +0300
committerHenri Sara <henri.sara@gmail.com>2017-08-28 16:13:46 +0300
commit8109314f6ab0d86120b443251c9abbb335058269 (patch)
tree3702c4072201a24c8b972704d9a42e3c3ce9bf82 /shared/src/main
parente9d87f59dd9389f39d9a0a5a2f62e4095b12467d (diff)
downloadvaadin-framework-8109314f6ab0d86120b443251c9abbb335058269.tar.gz
vaadin-framework-8109314f6ab0d86120b443251c9abbb335058269.zip
Fix capitalization of single character strings (#9880)
Diffstat (limited to 'shared/src/main')
-rw-r--r--shared/src/main/java/com/vaadin/shared/util/SharedUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java b/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java
index eaf8729a5e..974c45ae02 100644
--- a/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java
+++ b/shared/src/main/java/com/vaadin/shared/util/SharedUtil.java
@@ -199,7 +199,7 @@ public class SharedUtil implements Serializable {
}
if (string.length() <= 1) {
- return string.toUpperCase();
+ return string.toUpperCase(Locale.ENGLISH);
}
return string.substring(0, 1).toUpperCase(Locale.ENGLISH)