Skip to content

Commit

Permalink
Utils: testClose() doesn't require a mutable physics object
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jul 13, 2024
1 parent 6d3e0e2 commit 06728c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/testjoltjni/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ of this software and associated documentation files (the "Software"), to deal
*/
package testjoltjni;

import com.github.stephengold.joltjni.ConstJoltPhysicsObject;
import com.github.stephengold.joltjni.Jolt;
import com.github.stephengold.joltjni.JoltPhysicsObject;
import com.github.stephengold.joltjni.QuatArg;
import com.github.stephengold.joltjni.RVec3Arg;
import com.github.stephengold.joltjni.Vec3Arg;
Expand Down Expand Up @@ -168,7 +168,7 @@ public static int numThreads() {
*
* @param object the object to test (not null)
*/
public static void testClose(JoltPhysicsObject object) {
public static void testClose(ConstJoltPhysicsObject object) {
object.close();
Assert.assertFalse(object.hasAssignedNativeObject());
Assert.assertFalse(object.ownsNativeObject());
Expand Down

0 comments on commit 06728c7

Please sign in to comment.