Skip to content
Permalink
Browse files
minor sonarqube fixes
  • Loading branch information
darkma773r committed Jul 24, 2021
1 parent c4f1da8 commit 00703c480cf69599069a1c5a243774cb2afa951f
Showing 2 changed files with 2 additions and 8 deletions.
@@ -466,13 +466,7 @@ public void flush() throws IOException {
private int addToMap(final Vector3D vec, final Map<String, Integer> map) {
final String str = createVectorString(vec);

Integer idx = map.get(str);
if (idx == null) {
idx = map.size();
map.put(str, idx);
}

return idx;
return map.computeIfAbsent(str, k -> map.size());
}

/** Add a face to the buffer. If {@code batchSize} is greater than {@code -1} and the number
@@ -74,7 +74,7 @@ void testSetInitialBufferSize() {
}

@Test
public void setInitialBufferSize_invalidArg() {
void setInitialBufferSize_invalidArg() {
// act/assert
GeometryTestUtils.assertThrowsWithMessage(
() -> handler.setInitialBufferSize(0),

0 comments on commit 00703c4

Please sign in to comment.