Skip to content

Commit 69e2279

Browse files
committed
spotless changes
1 parent 553fef4 commit 69e2279

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/maproulette/client/model/Task.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public TaskBuilder addErrorTags(final String errorTags)
9898
this.errorTags = errorTags;
9999
return this;
100100
}
101-
101+
102102
public TaskBuilder resetGeometry()
103103
{
104104
this.geoJson = this.mapper.createArrayNode();
@@ -134,12 +134,13 @@ public Task build()
134134
{
135135
this.parent(-1);
136136
}
137-
if(this.errorTags == null)
137+
if (this.errorTags == null)
138138
{
139139
this.errorTags = "";
140140
}
141141
return new Task(this.id, this.parent, this.name, this.instruction, this.location,
142-
this.status, this.priority, this.geometries, this.tags, null, null, null, this.errorTags);
142+
this.status, this.priority, this.geometries, this.tags, null, null, null,
143+
this.errorTags);
143144
}
144145

145146
protected ArrayNode generateTaskFeatures(final Set<PointInformation> source,

src/test/java/org/maproulette/client/model/TaskTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ public void taskWithErrorTags()
9696
final List<String> testTags = Arrays.asList("fixtype=testing", "usecase=1");
9797
final var task = Task.builder(1234, "Task1")
9898
.addGeojson(String.format(TestConstants.FEATURE_STRING, 1.2, 4.5, "TestG"))
99-
.errorTags("dummyErrorTags")
100-
.tags(testTags).build();
99+
.errorTags("dummyErrorTags").tags(testTags).build();
101100
Assertions.assertEquals("dummyErrorTags", task.getErrorTags());
102101
}
103102

@@ -108,6 +107,6 @@ public void taskWithoutErrorTags()
108107
final var task = Task.builder(1234, "Task1")
109108
.addGeojson(String.format(TestConstants.FEATURE_STRING, 1.2, 4.5, "TestG"))
110109
.tags(testTags).build();
111-
Assertions.assertEquals( "", task.getErrorTags());
110+
Assertions.assertEquals("", task.getErrorTags());
112111
}
113112
}

0 commit comments

Comments
 (0)