diff --git a/module/extension/type/processing/src/main/java/org/openbase/jul/extension/type/processing/TimestampProcessor.kt b/module/extension/type/processing/src/main/java/org/openbase/jul/extension/type/processing/TimestampProcessor.kt index f8024824..0c5c9790 100644 --- a/module/extension/type/processing/src/main/java/org/openbase/jul/extension/type/processing/TimestampProcessor.kt +++ b/module/extension/type/processing/src/main/java/org/openbase/jul/extension/type/processing/TimestampProcessor.kt @@ -258,13 +258,11 @@ object TimestampProcessor { */ @JvmStatic @Throws(CouldNotPerformException::class) - fun copyTimestamp(sourceMessageOrBuilder: M, targetMessageOrBuilder: M): M { - return updateTimestamp( - getTimestamp(sourceMessageOrBuilder, TimeUnit.MICROSECONDS), - targetMessageOrBuilder, - TimeUnit.MICROSECONDS - ) - } + fun copyTimestamp(sourceMessageOrBuilder: M, targetMessageOrBuilder: M): M = updateTimestamp( + getTimestamp(sourceMessageOrBuilder, TimeUnit.MICROSECONDS), + targetMessageOrBuilder, + TimeUnit.MICROSECONDS + ) /** * Method updates the timestamp field of the given message with the current time.