-
-
Notifications
You must be signed in to change notification settings - Fork 489
2.0.41 #1607
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.0.41 #1607
Changes from all commits
018065b
5d05fbb
9229b58
e126c56
d11dd6c
3ea8884
a162241
7a56273
4fa3ec8
a0777f7
60622d8
a35fbff
b7fecfc
8fc04b0
ed19ba3
0689341
b88eba6
ef50839
69ae030
ce01f64
3c040b5
a373d97
cb33886
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,25 +36,25 @@ public class ConfigProfile | |
| @Getter | ||
| private final long id; | ||
| @Getter | ||
| @Setter(AccessLevel.PACKAGE) | ||
| private String name; | ||
| @Setter | ||
| public String name; | ||
| @Getter | ||
| @Setter(AccessLevel.PACKAGE) | ||
| private String password; | ||
| @Setter | ||
| public String password; | ||
| @Getter | ||
| @Setter(AccessLevel.PACKAGE) | ||
| private String bankPin; | ||
| @Setter | ||
| public String bankPin; | ||
| @Getter | ||
| @Setter | ||
| private long memberExpireDaysTimeStemp; | ||
| @Getter | ||
| @Setter | ||
| private long memberExpireDays; | ||
| @Getter | ||
| @Setter(AccessLevel.PACKAGE) | ||
| private boolean isMember; | ||
| @Setter | ||
| public boolean isMember; | ||
|
Comment on lines
+54
to
+55
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent field visibility and redundant @Setter annotation. Same issue as above: making Consider reverting to private: @Getter
@Setter
- public boolean isMember;
+ private boolean isMember;
🤖 Prompt for AI Agents |
||
| @Getter | ||
| @Setter(AccessLevel.PACKAGE) | ||
| @Setter | ||
| private String discordWebhookUrl; | ||
| @Getter | ||
| @Setter | ||
|
|
||
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.
Inconsistent field visibility and redundant @Setter annotations.
Making these fields public while also adding @Setter is redundant—public fields can be modified directly without setters. More critically, exposing sensitive fields like
passwordandbankPinas public breaks encapsulation and creates security concerns.This is inconsistent with other fields in the class (e.g.,
discordWebhookUrlon line 58 remains private with @Setter, following proper encapsulation). If external modification is needed, use private fields with public setters (via @Setter), not public fields with @Setter.Consider reverting these fields to private:
🤖 Prompt for AI Agents