From 04f983c62e8fff380a293d0cd9b391ca553fc6ed Mon Sep 17 00:00:00 2001 From: stephengold Date: Wed, 13 Nov 2024 15:51:56 -0800 Subject: [PATCH] test: rename formal arguments and trivial refactoring --- src/test/java/testjoltjni/app/helloworld/HelloWorld.java | 6 +++--- .../testjoltjni/app/performancetest/RagdollScene.java | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/test/java/testjoltjni/app/helloworld/HelloWorld.java b/src/test/java/testjoltjni/app/helloworld/HelloWorld.java index 51609def..14bba0bd 100644 --- a/src/test/java/testjoltjni/app/helloworld/HelloWorld.java +++ b/src/test/java/testjoltjni/app/helloworld/HelloWorld.java @@ -111,17 +111,17 @@ int onContactValidate(long body1Va, long body2Va, double offsetX, double offsetY return ValidateResult.AcceptAllContactsForThisBodyPair.ordinal(); } - public void onContactAdded(long body1Va, long body2Va, long manifoldVa, long settingsVa) + public void onContactAdded(long inBody1, long inBody2, long inManifold, long ioSettings) { cout .print( "A contact was added" + endl); } - public void onContactPersisted(long body1Va, long body2Va, long manifoldVa, long settingsVa) + public void onContactPersisted(long inBody1, long inBody2, long inManifold, long ioSettings) { cout .print( "A contact was persisted" + endl); } - public void onContactRemoved(long pairVa) + public void onContactRemoved(long inSubShapePair) { cout .print( "A contact was removed" + endl); } diff --git a/src/test/java/testjoltjni/app/performancetest/RagdollScene.java b/src/test/java/testjoltjni/app/performancetest/RagdollScene.java index 481a63a6..fc4facc7 100644 --- a/src/test/java/testjoltjni/app/performancetest/RagdollScene.java +++ b/src/test/java/testjoltjni/app/performancetest/RagdollScene.java @@ -38,10 +38,9 @@ of this software and associated documentation files (the "Software"), to deal class RagdollScene implements PerformanceTestScene { - RagdollScene(int inNumPilesPerAxis, int inPileSize, float inVerticalSeparation) { - this.mNumPilesPerAxis = inNumPilesPerAxis; - this.mPileSize = inPileSize; - this.mVerticalSeparation = inVerticalSeparation; + RagdollScene(int inNumPilesPerAxis, int inPileSize, float inVerticalSeparation) + { + mNumPilesPerAxis=inNumPilesPerAxis;mPileSize=inPileSize;mVerticalSeparation=inVerticalSeparation; } public String GetName() @@ -104,7 +103,7 @@ public void StartTest(PhysicsSystem inPhysicsSystem, EMotionQuality inMotionQu // Create ragdoll piles Mt19937 random=new Mt19937(); - UniformRealDistribution angle = new UniformRealDistribution(0.0f, Jolt.JPH_PI); + UniformRealDistribution angle=new UniformRealDistribution(0.0f, JPH_PI); int group_id = 1; for (int row = 0; row < mNumPilesPerAxis; ++row) for (int col = 0; col < mNumPilesPerAxis; ++col)