Remove expensive uses of Calendar.getInstance() 81/25981/3
authorStephen Kitt <skitt@redhat.com>
Tue, 25 Aug 2015 16:07:50 +0000 (18:07 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 24 Sep 2015 11:36:48 +0000 (11:36 +0000)
commit01efefc0fac622e608508e1910cab4575671c71d
tree2887e79e13b968ce50fb7284fe9c12beb93d4568
parent0ff87783a0fb2ab7bd60daf4a399bb8933af244a
Remove expensive uses of Calendar.getInstance()

nanoTime() is used instead of currentTimeMillis() to avoid issues with
leap seconds.

Change-Id: Idbfcd994424c91a384c47fe0ad12bc6a7ea33972
Signed-off-by: Stephen Kitt <skitt@redhat.com>
opendaylight/md-sal/mdsal-it-base/src/main/java/org/opendaylight/controller/mdsal/it/base/AbstractMdsalTestBase.java
opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/controller/md/sal/dom/xsql/XSQLAdapter.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.