Skip to content

Commit

Permalink
refactor: Prevent that a class is exposed outside its defined visibil…
Browse files Browse the repository at this point in the history
…ity scope
  • Loading branch information
sgcr committed Oct 31, 2024
1 parent fe2a158 commit deb731d
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/main/java/core/db/user/BaseUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.nio.file.Paths;
import java.util.List;

class BaseUser {
public class BaseUser {
protected String teamName;
protected String dbName;
protected String clubLogo;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/option/TrainingPreferencesPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* Training options panel
*/
final class TrainingPreferencesPanel extends ImagePanel implements ChangeListener, ActionListener {
public final class TrainingPreferencesPanel extends ImagePanel implements ChangeListener, ActionListener {

// private TrainingAdjustmentPanel m_tapAgeFactor;
// private TrainingAdjustmentPanel m_jtapAssisstantFactor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ProcessAsynchronousTask<T> {
* @param <T>
*/
@FunctionalInterface
interface ProcessTask<T> {
public interface ProcessTask<T> {
void execute(T val);
}

Expand Down
14 changes: 7 additions & 7 deletions src/main/java/module/teamAnalyzer/ui/lineup/FormationPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ public class FormationPanel extends JPanel {


/** Left Attack RatingBox */
protected RatingBox leftAtt = new RatingBox();
RatingBox leftAtt = new RatingBox();

/** Left Defence RatingBox */
protected RatingBox leftDef = new RatingBox();
RatingBox leftDef = new RatingBox();

/** Central Attack RatingBox */
protected RatingBox midAtt = new RatingBox();
RatingBox midAtt = new RatingBox();

/** Central Defence RatingBox */
protected RatingBox midDef = new RatingBox();
RatingBox midDef = new RatingBox();

/** Midfield RatingBox */
protected RatingBox midfield = new RatingBox();
RatingBox midfield = new RatingBox();

/** Right Attack RatingBox */
protected RatingBox rightAtt = new RatingBox();
RatingBox rightAtt = new RatingBox();

/** Right Defence RatingBox */
protected RatingBox rightDef = new RatingBox();
RatingBox rightDef = new RatingBox();

/** User Team Lineup Data */
protected TeamLineupData myTeam = new TeamLineupData();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module/transfer/ui/sorter/Directive.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package module.transfer.ui.sorter;

class Directive {
public class Directive {
private int column;
private int direction;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module/tsforecast/Curve.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Curve {
private Point m_currentPoint = null;
private Color m_Color = null;

class Point implements Comparable<Point> {
public class Point implements Comparable<Point> {

double m_dSpirit;
int m_iAttitude;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module/tsforecast/TrainerCurve.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.sql.ResultSet;
import java.time.temporal.ChronoUnit;

class TrainerCurve extends Curve {
public class TrainerCurve extends Curve {

TrainerCurve(DBManager dbManager) {
super(dbManager);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module/youth/YouthTableSorter.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class YouthTableSorter extends AbstractTableModel {
protected HOTableModel tableModel;
protected JTable table;

enum Order {
public enum Order {
descending(-1),
none(0),
ascending(1);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tool/injury/InjuryDetailPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @author draghetto
*/
class InjuryDetailPanel extends JPanel {
public class InjuryDetailPanel extends JPanel {

private static final long serialVersionUID = -4123995368822577858L;

Expand Down

0 comments on commit deb731d

Please sign in to comment.