Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions spotbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@
<Match>
<Bug pattern="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" />
</Match>
<Match>
<Bug pattern="SUA_SUSPICIOUS_UNINITIALIZED_ARRAY" />
</Match>
<Match>
<Bug pattern="SPP_USE_MATH_CONSTANT" />
</Match>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ public static class Location {
}
}

public Location[] createLocation(int numberValues) {
return new Location[numberValues];
}

public Location buildLocation(double x, double y) {
return new Location(x, y);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ public void testBuildLocation() {
assertEquals(4.0, point.y);
}

@Test
public void testCreateLocation() {
ClosestPair cp = new ClosestPair(5);
ClosestPair.Location[] locations = cp.createLocation(5);
assertNotNull(locations);
assertEquals(5, locations.length);
}

@Test
public void testXPartition() {
ClosestPair cp = new ClosestPair(5);
Expand Down
Loading