diff options
-rw-r--r-- | lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfTimestampFormat.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfTimestampFormat.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfTimestampFormat.java index 5cc0baef31..a8bf8a8195 100644 --- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfTimestampFormat.java +++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfTimestampFormat.java @@ -345,7 +345,7 @@ public class TmfTimestampFormat extends SimpleDateFormat { * @param value the timestamp value to format (in ns) * @return the formatted timestamp */ - public String format(long value) { + public synchronized String format(long value) { // Split the timestamp value into its sub-components long sec = value / 1000000000; // seconds @@ -414,7 +414,7 @@ public class TmfTimestampFormat extends SimpleDateFormat { * @return the parsed value * @throws ParseException if the string has an invalid format */ - public long parseValue(final String string, final long ref) throws ParseException { + public synchronized long parseValue(final String string, final long ref) throws ParseException { // Trivial case if (string == null || string.length() == 0) { |