Skip to content

Commit

Permalink
Replace joda time with java time
Browse files Browse the repository at this point in the history
Replace joda time with Java 11 java.time package classes.

Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
  • Loading branch information
ihrasko committed Sep 23, 2022
1 parent 655068e commit 09f7122
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

package com.mrv.yangtools.test.utils;

import java.time.LocalDate;
import java.util.List;
import org.joda.time.LocalDate;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.common.Revision;
Expand All @@ -38,7 +38,7 @@ public class MockNodeBuilder {
private List<QName> names;

public MockNodeBuilder(String module) {
this.module = QNameModule.create(Paths.get("test", module).toUri(), Revision.of(new LocalDate().toString()));
this.module = QNameModule.create(Paths.get("test", module).toUri(), Revision.of(LocalDate.now().toString()));
this.params = new ArrayList<>();
this.names = new ArrayList<>();
}
Expand Down

0 comments on commit 09f7122

Please sign in to comment.