Skip to content

Commit

Permalink
CapsuleMesh: avoid a C-style array declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jun 22, 2024
1 parent 6b78a0f commit 3c05e5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public CapsuleMesh(int numRefineSteps, float radius, float height) {
}

// Sort the indices of vertices on the cylinder's +Y rim:
Integer northIndices[] = mapN2S.keySet().toArray(new Integer[0]);
Integer[] northIndices = mapN2S.keySet().toArray(new Integer[0]);
Arrays.sort(northIndices, new Comparator<Integer>() {
@Override
public int compare(Integer vi1, Integer vi2) {
Expand Down

0 comments on commit 3c05e5c

Please sign in to comment.