-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 manuális kód átvizsgálás statikus analízis #8
The head ref may contain hidden characters: "2-manu\u00E1lis-k\u00F3d-\u00E1tvizsg\u00E1l\u00E1s-statikus-anal\u00EDzis"
2 manuális kód átvizsgálás statikus analízis #8
Conversation
…//github.com/BME-MIT-IET/iet-hf-2024-goon-squad into 2-manuális-kód-átvizsgálás-statikus-analízis
… helper functions
…n-squad into 2-manuális-kód-átvizsgálás-statikus-analízis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes make sense, tests ran successfully, PR approved.
@@ -73,77 +74,68 @@ public boolean SetPump(int newIn, int newOut) | |||
} | |||
|
|||
//Ezt a függvényt hívja meg egy passzív elem a pumpalehelyezés elvégzéséhez | |||
public boolean Insert(Passive oldPassive) | |||
{ | |||
public boolean Insert(Passive oldPassive) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea to split it up, easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main was a god class, separating the rendering process was necessary.
@@ -3,6 +3,7 @@ | |||
public class Pipe extends Passive implements Notifiable{ | |||
private boolean hasPlayer = false; | |||
private PipeState state = PipeState.NORMAL; | |||
private Random random = new Random(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Singular initialization is efficient.
Implemented needed changes to solve problems found by using static analysis (SonarLint, ErrorLens).