-
Notifications
You must be signed in to change notification settings - Fork 16
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
whatevr #1710
Conversation
@@ -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"); |
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.
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.
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.
:usuń-to-na-boga: stracimy pracę! 😱
7b940c8
to
5512d34
Compare
frontend/base/src/main/java/com/virtuslab/gitmachete/frontend/defs/Colors.java
Show resolved
Hide resolved
5512d34
to
6aafc05
Compare
frontend/base/src/main/java/com/virtuslab/gitmachete/frontend/defs/Colors.java
Show resolved
Hide resolved
b3d5afb
to
5358108
Compare
25f221c
to
d8463cd
Compare
frontend/base/src/main/java/com/virtuslab/gitmachete/frontend/defs/Colors.java
Show resolved
Hide resolved
d8463cd
to
d1f7300
Compare
frontend/base/src/main/java/com/virtuslab/gitmachete/frontend/defs/Colors.java
Show resolved
Hide resolved
public int unsdMeth() { | ||
int a = 1+1; | ||
if (a == 2) { | ||
// verify | ||
return 2; | ||
} else { | ||
// remove me | ||
return 2; | ||
} |
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.
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.
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"); |
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.
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() { |
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.
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.
No description provided.