-
Notifications
You must be signed in to change notification settings - Fork 93
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
fix DragResizerUtil for south #606
Conversation
Pull Request ReportHey there! I've prepared a report for the pull request. Let's dive in! Changes
SuggestionsI have a couple of suggestions to improve the code:
BugsI couldn't find any potential bugs in the code. Great job! ImprovementsI found a place in the code that could be refactored for better readability. Here's the snippet from public boolean isSouth() {
switch (this) {
case SW_RESIZE:
case S_RESIZE:
case SE_RESIZE:
return true;
default:
return false;
}
} To improve readability, we can simplify the switch statement by using a public boolean isSouth() {
Set<DragResizer> southCases = new HashSet<>(Arrays.asList(SW_RESIZE, S_RESIZE, SE_RESIZE));
return southCases.contains(this);
} This way, it's easier to see which cases return RatingI would rate the code as follows:
Overall, the code is quite readable and performs well. It also seems to be secure. Great job! That's all for the pull request report. Let me know if you need any further assistance. Cheers! |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #606 +/- ##
============================================
+ Coverage 49.62% 49.65% +0.02%
- Complexity 6236 6238 +2
============================================
Files 379 379
Lines 37593 37579 -14
Branches 6159 6157 -2
============================================
+ Hits 18654 18658 +4
+ Misses 17710 17693 -17
+ Partials 1229 1228 -1
☔ View full report in Codecov by Sentry. |
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.
Looks good, Thanks for catching this and directly providing the fix!
I'll apply the formatting patches and merge.
make south resize working
b028798
to
dcf893f
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Make south resize working. See issue #605.