Skip to content
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

whatevr #1710

Closed
wants to merge 2 commits into from
Closed

whatevr #1710

wants to merge 2 commits into from

Conversation

mkondratek
Copy link
Collaborator

No description provided.

@@ -7,7 +7,7 @@
public final class Colors {
private Colors() {}

private static final Color RED_COLOR = Color.decode("#FF0000");
private static final Color RED_COLOR = Color.decode("#00FF00");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The color code for RED_COLOR is incorrect. The hexadecimal color code for red is #FF0000, not #00FF00. The current code will produce a green color instead of red. Please correct the hexadecimal color code to match the intended color.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:usuń-to-na-boga: stracimy pracę! 😱

@mkondratek mkondratek changed the base branch from develop to chore/add-code-review-gpt August 18, 2023 10:40
@mkondratek mkondratek force-pushed the demo_branch branch 2 times, most recently from 25f221c to d8463cd Compare August 18, 2023 10:46
Comment on lines +12 to +20
public int unsdMeth() {
int a = 1+1;
if (a == 2) {
// verify
return 2;
} else {
// remove me
return 2;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method unsdMeth() contains redundant code. The variable a is always equal to 2, so the condition if (a == 2) will always be true. This makes the else branch unreachable and unnecessary. To improve the maintainability of your code, you should remove the redundant code.

Comment on lines +23 to 26
private static final Color RED_COLOR = Color.decode("#00FF00");
private static final Color ORANGE_COLOR = Color.decode("#FDA909");
private static final Color DARK_ORANGE_COLOR = Color.decode("#D68C00");
private static final Color YELLOW_COLOR = Color.decode("#C4A000");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The color codes used in the static final variables are not matching their names. For example, RED_COLOR is assigned a green color code "#00FF00". This can lead to confusion and potential bugs in the future when these variables are used. Please ensure that the color codes match their respective variable names.

private static final Color RED_COLOR = Color.decode("#FF0000");

// todo: javadoc
public int unsdMeth() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method unsdMeth() seems to be unused. Unused methods can lead to confusion and unnecessary complexity in your codebase. If this method is not needed, consider removing it to improve the readability and maintainability of your code.

@PawelLipski PawelLipski closed this Oct 9, 2023
@PawelLipski PawelLipski deleted the demo_branch branch April 30, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants