Skip to content

Commit 7ed2721

Browse files
committed
added init to PriorityQueueElement
1 parent 5992e65 commit 7ed2721

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ kotlin {
4141
useJUnitPlatform()
4242
}
4343
}
44-
44+
45+
//TODO add quarkus tests to project
46+
// TODO example tests with deploying library into projects as well
4547
sourceSets {
4648
val jvmMain by getting{
4749
dependencies {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#Gradle properties
2-
version=1.0.8
2+
version=1.0.9

src/jvmMain/kotlin/bbs/priorityqueue/appdata/PriorityQueueElement.kt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@ import org.joda.time.LocalDate
1010

1111
@JsonInclude(JsonInclude.Include.NON_NULL)
1212
@DynamoDbBean
13-
class PriorityQueueElement() {
13+
class PriorityQueueElement{
1414

15-
init {
16-
17-
}
18-
19-
constructor(id: String?) : this() {
15+
constructor()
16+
constructor(id: String?) {
2017
this.id = id
2118
}
2219

23-
constructor(id: String, date: LocalDate?) : this() {
20+
constructor(id: String, date: LocalDate?) {
2421
Utils.throwIfNullOrEmptyString(id, "ID cannot be null!")
2522
this.id = id.trim { it <= ' ' }
2623
systemInfo = SystemInfo(this.id)
@@ -60,7 +57,7 @@ class PriorityQueueElement() {
6057

6158
@get:DynamoDbAttribute("data")
6259
@JsonProperty("data")
63-
var data: String? = null
60+
var data: String? = null
6461

6562
fun convertDateToIso(){
6663

@@ -76,4 +73,10 @@ class PriorityQueueElement() {
7673
}
7774
}
7875

76+
init {
77+
id = null
78+
schedule = null
79+
data = null
80+
}
81+
7982
}

0 commit comments

Comments
 (0)