You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RoundedCube class has private field centered which gets false value during initialization as there's no explicit initialization of that field. The whole functionality that is controlled by that flag field looks to me like copy pasted from Cube class with the only difference that in Cube class it is explicitly initialized with true value. This copy-paste mistake makes it impossible to control centered field in RoundedCube as the only method the changes its value (noCenter()) changes it to false so there's no possibility to change it to true.
The text was updated successfully, but these errors were encountered:
RoundedCube
class has private fieldcentered
which getsfalse
value during initialization as there's no explicit initialization of that field. The whole functionality that is controlled by that flag field looks to me like copy pasted fromCube
class with the only difference that inCube
class it is explicitly initialized withtrue
value. This copy-paste mistake makes it impossible to controlcentered
field inRoundedCube
as the only method the changes its value (noCenter()
) changes it tofalse
so there's no possibility to change it to true.The text was updated successfully, but these errors were encountered: