MDSAL-206: improve DOMEvent instant resolution 29/67729/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 30 Jan 2018 15:58:54 +0000 (16:58 +0100)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 5 Feb 2018 06:07:03 +0000 (06:07 +0000)
Rather than using a Date, use an java.time.Instant, which is more
appropriate.

Change-Id: I45513f12f83065d9fc7016e357c53332d0070d6e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMEvent.java

index 285000a87ac614caba72a802babcd57e283e34c6..6c820e38bcbb2184e223d8ffe6a75f40c4d4b5d7 100644 (file)
@@ -5,20 +5,18 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.mdsal.dom.api;
 
-import java.util.Date;
+import java.time.Instant;
 
 /**
  * Generic event interface.
  */
 public interface DOMEvent {
-
     /**
      * Get the time of the event occurrence.
      *
      * @return the event time
      */
-    Date getEventTime();
+    Instant getEventInstant();
 }