Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Logging the /tag-manage command #296
Logging the /tag-manage command #296
Changes from 1 commit
eb273b9
b0ce95d
e06af67
5545a72
3c8c59c
202e117
a4447cf
ccbaecb
b9f98fa
a78c039
40ce619
4bfb896
d7e3ccf
60e328b
123aa43
d5438e6
c4e752b
e94a720
3c9658e
81b43b3
e9e4a25
35411af
b462051
d0f3340
3e3a7b6
70c680c
64aaab4
91a968d
6f6a342
ae123c5
b23e7f5
54c9daf
071fc9b
b494b75
5bc61ff
358057c
4377d89
6eb5898
e8a7f0b
7c6823d
a221436
24def34
7c49c73
a9a4339
81482cd
1a8b799
429d9b7
d011b34
3b9b8b9
749db7b
7d25c29
97c4f32
1cf7627
ccac112
f00590a
e848ac0
4d1f09a
4d55f1f
f8f6608
86b93e5
2521bcb
1a67ae9
f036077
7b101c6
4b20e3c
da0b177
ddc1b88
2661399
f6ad120
1f493f3
a3692ba
7a812b7
4a19004
279d3aa
7639f71
2111dc8
cf98c4a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
You already checked whenever it's null?
You do this for all attachments, and all it does is making your code unreadable, for fun?
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.
I believe SonarLint picks on that if I don't do it.
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.
Does IntelliJ pick on it?
If yes, I understand
If no, fuck sonarlint it just needs a brain.
I'd personally just ignore it since I know it's not true, you literally check or it's null above.
and even if I wasn't sure whenever it was null, Objects#requireNonNull throws an empty NPE in this case, I'd just let the method it runs throw the NPE with more info
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.
What I could do, is to make these parameters
@NotNull
, and to use a junk string like this""
for cases where the parameter is not used. that would also get rid of the null checks. whats your opinion, @Tais993, @Zabuzard?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.
I'm not sure, having an empty string sound like odd behaviour.
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.
thats indeed a bad idea. the null-detection tool is there to help u. if u bypass it on purpose, ur just fighting against urself, thats the worst thing u could do.
i doubt sonar picks up on this, its intellijs null-detection feature. so u can safely push it without the objects.requirenonnull. if the warning annoys u, lower its level to "suggestion".
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.
Both IntelliJ and Sonar doesn't like that, actually.
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.
Please show the sonar error message, cause I really doubt.
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.
duplicate with #296 (comment)