diff options
Diffstat (limited to 'asdctool/src/main/java/org')
-rw-r--r-- | asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java b/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java index 17c3aea42c..a18ea69c4e 100644 --- a/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java +++ b/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java @@ -21,14 +21,16 @@ package org.openecomp.sdc.asdctool.migration.core; import java.math.BigInteger; +import lombok.Getter; +@Getter public class DBVersion implements Comparable<DBVersion>{ private static final String VERSION_PARTS_SEPARATOR = "\\."; private static final int MAJOR_PART_IDX = 0; private static final int MINOR_PART_IDX = 1; - private BigInteger major; - private BigInteger minor; + private final BigInteger major; + private final BigInteger minor; /** * The current db version. should be tested against real db to verify it is compatible to the db version @@ -45,14 +47,6 @@ public class DBVersion implements Comparable<DBVersion>{ this.minor = BigInteger.valueOf(minor); } - public BigInteger getMajor() { - return major; - } - - public BigInteger getMinor() { - return minor; - } - public static DBVersion from(BigInteger major, BigInteger minor) { return new DBVersion(major, minor); } |