commit | 66f7543c6b8b65b6b914a648fd184b645a0e42f1 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Wed May 06 14:07:03 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed May 06 21:20:17 2015 +0000 |
tree | 1205f142c21dd2879836a96929ffa40cabbbf41e | |
parent | a2df7b2ae733ba4733d000b4c5ebbe227a42b25d [diff] [blame] |
GUI -- Made OOTB formatters and comparators final classes. Change-Id: I0ea59bf92d97b6d104b7d3770fb5f2e93308bbdc
diff --git a/core/api/src/main/java/org/onosproject/ui/table/cell/TimeFormatter.java b/core/api/src/main/java/org/onosproject/ui/table/cell/TimeFormatter.java index e0aec9d..cdfdf3d 100644 --- a/core/api/src/main/java/org/onosproject/ui/table/cell/TimeFormatter.java +++ b/core/api/src/main/java/org/onosproject/ui/table/cell/TimeFormatter.java
@@ -25,10 +25,13 @@ /** * Formats time values using {@link DateTimeFormatter}. */ -public class TimeFormatter extends AbstractCellFormatter { +public final class TimeFormatter extends AbstractCellFormatter { private static final DateTimeFormatter DTF = DateTimeFormat.longTime(); + // non-instantiable + private TimeFormatter() { } + @Override protected String nonNullFormat(Object value) { return DTF.print((DateTime) value);