diff options
-rw-r--r-- | server/src/main/java/com/vaadin/server/LocaleService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/server/LocaleService.java b/server/src/main/java/com/vaadin/server/LocaleService.java index 33e54b207f..457f014dc5 100644 --- a/server/src/main/java/com/vaadin/server/LocaleService.java +++ b/server/src/main/java/com/vaadin/server/LocaleService.java @@ -203,10 +203,10 @@ public class LocaleService implements Serializable { * * We use timeformat to determine 12/24-hour clock */ - final boolean twelve_hour_clock = timeformat.indexOf("a") > -1; + final boolean twelve_hour_clock = timeformat.contains("a"); // TODO there are other possibilities as well, like 'h' in french // (ignore them, too complicated) - final String hour_min_delimiter = timeformat.indexOf(".") > -1 ? "." + final String hour_min_delimiter = timeformat.contains(".") ? "." : ":"; // outWriter.print("\"tf\":\"" + timeformat + "\","); localeData.twelveHourClock = twelve_hour_clock; |