Skip to content

Commit

Permalink
package-protect 5 setVirtualAddress() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 8, 2024
1 parent f4adfe4 commit 21f4f3c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class BodyActivationListener extends JoltPhysicsObject {
* @param owner true → make the JVM object the owner, false → it
* isn't the owner
*/
protected void setVirtualAddress(long virtualAddress, boolean owner) {
void setVirtualAddress(long virtualAddress, boolean owner) {
Runnable freeingAction = owner ? () -> free(virtualAddress) : null;
setVirtualAddress(virtualAddress, freeingAction);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ContactListener extends JoltPhysicsObject {
* @param owner true → make the JVM object the owner, false → it
* isn't the owner
*/
protected void setVirtualAddress(long virtualAddress, boolean owner) {
void setVirtualAddress(long virtualAddress, boolean owner) {
Runnable freeingAction = owner ? () -> free(virtualAddress) : null;
setVirtualAddress(virtualAddress, freeingAction);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ abstract public class DebugRenderer extends NonCopyable {
* isn't the owner
*/
@Override
protected void setVirtualAddress(long rendererVa, boolean owner) {
void setVirtualAddress(long rendererVa, boolean owner) {
Runnable freeingAction = owner ? () -> free(rendererVa) : null;
setVirtualAddress(rendererVa, freeingAction);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void setIdx(int cornerIndex, int meshVertexIndex) {
* @param owner true → make the JVM object the owner, false → it
* isn't the owner
*/
protected void setVirtualAddress(long virtualAddress, boolean owner) {
void setVirtualAddress(long virtualAddress, boolean owner) {
Runnable freeingAction = owner ? () -> free(virtualAddress) : null;
setVirtualAddress(virtualAddress, freeingAction);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected NonCopyable(long virtualAddress) {
* @param owner true → make the JVM object the owner, false → it
* isn't the owner
*/
protected void setVirtualAddress(long virtualAddress, boolean owner) {
void setVirtualAddress(long virtualAddress, boolean owner) {
Runnable freeingAction = owner ? () -> free(virtualAddress) : null;
setVirtualAddress(virtualAddress, freeingAction);
}
Expand Down

0 comments on commit 21f4f3c

Please sign in to comment.