From 63a109206a7caf4373f00761431625634ef35fde Mon Sep 17 00:00:00 2001 From: Callum Stott Date: Wed, 9 Oct 2024 16:21:02 +0100 Subject: [PATCH 1/2] Fix IntegerData ambigious constructor for Kotlin --- src/main/java/org/javarosa/core/model/data/IntegerData.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/javarosa/core/model/data/IntegerData.java b/src/main/java/org/javarosa/core/model/data/IntegerData.java index f37dd35f7..4b0cb8194 100644 --- a/src/main/java/org/javarosa/core/model/data/IntegerData.java +++ b/src/main/java/org/javarosa/core/model/data/IntegerData.java @@ -45,9 +45,6 @@ public IntegerData() { public IntegerData(int n) { this.n = n; } - public IntegerData(@NotNull Integer n) { - setValue(n); - } @Override public IAnswerData clone () { From b7b7b17b5306a54062ef265bcb123cf11c8bd1f2 Mon Sep 17 00:00:00 2001 From: Callum Stott Date: Wed, 9 Oct 2024 16:28:36 +0100 Subject: [PATCH 2/2] Fix other primitive data contructors --- src/main/java/org/javarosa/core/model/data/DecimalData.java | 3 --- src/main/java/org/javarosa/core/model/data/LongData.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/main/java/org/javarosa/core/model/data/DecimalData.java b/src/main/java/org/javarosa/core/model/data/DecimalData.java index 412ae07e7..f12f5edfa 100644 --- a/src/main/java/org/javarosa/core/model/data/DecimalData.java +++ b/src/main/java/org/javarosa/core/model/data/DecimalData.java @@ -45,9 +45,6 @@ public DecimalData() { public DecimalData(double d) { this.d = d; } - public DecimalData(@NotNull Double d) { - setValue(d); - } @Override public IAnswerData clone () { diff --git a/src/main/java/org/javarosa/core/model/data/LongData.java b/src/main/java/org/javarosa/core/model/data/LongData.java index e33289121..cd5e1e472 100644 --- a/src/main/java/org/javarosa/core/model/data/LongData.java +++ b/src/main/java/org/javarosa/core/model/data/LongData.java @@ -44,9 +44,6 @@ public LongData() { public LongData(long n) { this.n = n; } - public LongData(@NotNull Long n) { - setValue(n); - } @Override public IAnswerData clone () {