Skip to content

Commit

Permalink
package-protect 18 one-arg constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 8, 2024
1 parent 21f4f3c commit 3d79e70
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class CharacterBaseSettings
* @param settingsVa the virtual address of the native object to assign (not
* zero)
*/
protected CharacterBaseSettings(long settingsVa) {
CharacterBaseSettings(long settingsVa) {
super(settingsVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract public class CompoundShape extends Shape {
* @param shapeVa the virtual address of the native object to assign (not
* zero)
*/
protected CompoundShape(long shapeVa) {
CompoundShape(long shapeVa) {
super(shapeVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ abstract public class CompoundShapeSettings extends ShapeSettings {
* @param settingsVa the virtual address of the native object to assign (not
* zero)
*/
protected CompoundShapeSettings(long settingsVa) {
CompoundShapeSettings(long settingsVa) {
super(settingsVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract public class Constraint extends NonCopyable
* @param constraintVa the virtual address of the native object to assign
* (not zero)
*/
protected Constraint(long constraintVa) {
Constraint(long constraintVa) {
super(constraintVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ abstract public class ConstraintSettings
* @param settingsVa the virtual address of the native object to assign (not
* zero)
*/
protected ConstraintSettings(long settingsVa) {
ConstraintSettings(long settingsVa) {
super(settingsVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract public class ConvexShape extends Shape {
* @param shapeVa the virtual address of the native object to assign (not
* zero)
*/
protected ConvexShape(long shapeVa) {
ConvexShape(long shapeVa) {
super(shapeVa);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract public class ConvexShapeSettings
* @param virtualAddress the virtual address of the native object to assign
* (not zero)
*/
protected ConvexShapeSettings(long virtualAddress) {
ConvexShapeSettings(long virtualAddress) {
super(virtualAddress);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class DecoratedShape extends Shape {
* @param shapeVa the virtual address of the native object to assign (not
* zero)
*/
protected DecoratedShape(long shapeVa) {
DecoratedShape(long shapeVa) {
super(shapeVa);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public IndexedTriangleNoMaterial() {
*
* @param unused to distinguish from the no-arg constructor
*/
protected IndexedTriangleNoMaterial(boolean unused) {
IndexedTriangleNoMaterial(boolean unused) {
}

/**
Expand All @@ -64,7 +64,7 @@ public IndexedTriangleNoMaterial(int vi0, int vi1, int vi2) {
* @param triangleVa the virtual address of the native object to assign (not
* zero)
*/
protected IndexedTriangleNoMaterial(long triangleVa) {
IndexedTriangleNoMaterial(long triangleVa) {
super(triangleVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected JoltPhysicsObject() {
* @param virtualAddress the virtual address of the native object to assign
* (not zero)
*/
protected JoltPhysicsObject(long virtualAddress) {
JoltPhysicsObject(long virtualAddress) {
assert virtualAddress != 0L;
this.virtualAddress = virtualAddress;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract public class NonCopyable extends JoltPhysicsObject {
* @param virtualAddress the virtual address of the native object to assign
* (not zero)
*/
protected NonCopyable(long virtualAddress) {
NonCopyable(long virtualAddress) {
super(virtualAddress);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class PhysicsMaterial extends SerializableObject
* @param materialVa the virtual address of the native object to assign (not
* zero)
*/
protected PhysicsMaterial(long materialVa) {
PhysicsMaterial(long materialVa) {
super(materialVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract public class SerializableObject extends NonCopyable {
* @param virtualAddress the virtual address of the native object to assign
* (not zero)
*/
protected SerializableObject(long virtualAddress) {
SerializableObject(long virtualAddress) {
super(virtualAddress);
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/github/stephengold/joltjni/Shape.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ abstract public class Shape extends NonCopyable
* @param shapeVa the virtual address of the native object to assign (not
* zero)
*/
protected Shape(long shapeVa) {
Shape(long shapeVa) {
super(shapeVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract public class ShapeSettings
* @param settingsVa the virtual address of the native object to assign (not
* zero)
*/
protected ShapeSettings(long settingsVa) {
ShapeSettings(long settingsVa) {
super(settingsVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract public class TwoBodyConstraint extends Constraint {
* @param constraintVa the virtual address of the native object to assign
* (not zero)
*/
protected TwoBodyConstraint(long constraintVa) {
TwoBodyConstraint(long constraintVa) {
super(constraintVa);
}
// *************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract public class TwoBodyConstraintSettings extends ConstraintSettings {
* @param settingsVa the virtual address of the native object to assign (not
* zero)
*/
protected TwoBodyConstraintSettings(long settingsVa) {
TwoBodyConstraintSettings(long settingsVa) {
super(settingsVa);
}
// *************************************************************************
Expand Down

0 comments on commit 3d79e70

Please sign in to comment.