Skip to content

Commit

Permalink
Make abstract constructors protected, see #123
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 7, 2024
1 parent 0f2fece commit bf40a1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/buoyancy/model/ApplicationsMass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* A general class for shared functionality between the boat and bottle.
*
* @author Agustín Vallejo
* @author Agustín Vallejo (PhET Interactive Simulations)
*/

import NumberProperty from '../../../../axon/js/NumberProperty.js';
Expand All @@ -27,7 +27,7 @@ export default abstract class ApplicationsMass extends Mass {

public readonly intersectionGroup: THREE.Group;

public constructor( engine: PhysicsEngine, displacementVolumeProperty: NumberProperty, options: ApplicationsMassOptions ) {
protected constructor( engine: PhysicsEngine, displacementVolumeProperty: NumberProperty, options: ApplicationsMassOptions ) {

assert && assert( !options.canRotate );

Expand Down
2 changes: 1 addition & 1 deletion js/buoyancy/view/ReadoutListAccordionBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default abstract class ReadoutListAccordionBox<ReadoutType> extends Accor
protected readonly readoutBox: VBox;
protected readonly contentWidthMaxProperty: TReadOnlyProperty<number>;

public constructor(
protected constructor(
titleStringProperty: TReadOnlyProperty<string>,
providedOptions?: ReadoutListAccordionBoxOptions<ReadoutType>
) {
Expand Down

0 comments on commit bf40a1c

Please sign in to comment.