-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
refactor: code cleanup #2519
Draft
brenoepics
wants to merge
68
commits into
Grasscutters:development
Choose a base branch
from
brenoepics:development
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
refactor: code cleanup #2519
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
6bb349d
fix: make those fields final
brenoepics da61d30
refactor: make getGoodsLimit one liner
brenoepics ef58ab3
refactor: replace `size() == 0` with isEmpty()
brenoepics c3eafba
refactor: remove unnecessary toString call
brenoepics 029ef82
refactor: remove unnecessary semicolons
brenoepics 9fa0f2b
refactor: unwrap redundant code block
brenoepics 7d3abb0
refactor: this can also be final
brenoepics ca6ddfd
refactor: replace protected with private for final class
brenoepics 0161b4d
refactor: replace protected with private for final class
brenoepics 427a1cf
fix: variable is assigned to itself
brenoepics 9c946e9
chore: remove unused import
brenoepics 8c35c89
refactor: replace Collections.sort with list.sort
brenoepics 870085f
refactor: replace lambda with method reference
brenoepics 3119e0f
refactor: replace lambda with method reference
brenoepics c7119aa
refactor: simplify map operations
brenoepics fcd4093
refactor: replace statement with expression lambda
brenoepics b5d0afd
refactor: we don't need explicit types here
brenoepics bb82e21
refactor: replace for loop with enhanced loop
brenoepics 6d669bd
refactor: Integer.ParseInt is more appropriate here
brenoepics 7db8b6f
refactor: Integer.ParseInt is more appropriate here
brenoepics c9b42a6
refactor: replace switch with enhanced switch
brenoepics 77e2462
refactor: fix javadoc issues
brenoepics 6e7418a
refactor: replace concatenation log with parameterized
brenoepics d5ad077
fix: integer division in floating point
brenoepics 6e3b3b2
refactor: implicit cast from double to float may be lossy
brenoepics 4f1ad7b
perf: Call to 'asList()' with only one argument
brenoepics e4123f4
perf: class initializer may be static
brenoepics b773529
perf: `count > 0` can be anyMatch
brenoepics 33d5c52
perf: `findAny().isPresent()` is cleaner here
brenoepics 1424405
perf: fix redundant addAll
brenoepics 1e2ccc9
perf: we can chain append here
brenoepics aeadf6b
perf: equals "" can be isEmpty here
brenoepics 7ee644c
perf: add Serial annotation here
brenoepics 8f4120f
refactor(lombok): add Getter where possible
brenoepics dd9f59f
refactor(lombok): add Setter where possible
brenoepics 4b03304
perf: this is just Math.min
brenoepics f01da54
perf: size cannot be negative
brenoepics 8f8a6a7
perf: simplify optional chain
brenoepics 85ca877
perf: remove redundant collection operation
brenoepics 3d00abc
perf: we can just equalsIgnoreCase
brenoepics 45bf5ed
perf: stream api can be simplified here
brenoepics 809009f
refactor: null check is not necessary, we have instanceof
brenoepics db28038
chore: fix codestyle indentation
brenoepics 3b68645
refactor: number comparison
brenoepics d4ce7aa
refactor: fix nullable params
brenoepics 8c53f2b
Format code [skip actions]
github-actions[bot] bfc2c7c
refactor: fix lombok
brenoepics 2bb2da4
Format code [skip actions]
github-actions[bot] dbb4f85
ci: bump actions
brenoepics c313939
Merge branch 'development' of https://github.com/brenoepics/Grasscutt…
brenoepics 1234d18
ci: Create dependabot.yml
brenoepics 62d53f3
chore(deps): bump com.google.protobuf:protoc from 3.18.1 to 4.27.1
dependabot[bot] 52b7ca6
chore(deps): bump com.fasterxml.jackson:jackson-bom
dependabot[bot] bbec09d
chore(deps): bump org.jline:jline-terminal-jna from 3.21.0 to 3.26.1
dependabot[bot] ff2aeac
chore(deps): bump org.junit.jupiter:junit-jupiter-engine
dependabot[bot] 63fbe66
security: add secure mode and padding scheme
brenoepics 75d8ed0
Merge branch 'development' of https://github.com/brenoepics/Grasscutt…
brenoepics 0736956
Format code [skip actions]
github-actions[bot] fa283d8
Merge pull request #1 from brenoepics/dependabot/gradle/com.google.pr…
brenoepics 22c7f3c
Merge pull request #2 from brenoepics/dependabot/gradle/com.fasterxml…
brenoepics a05d6cd
Merge pull request #3 from brenoepics/dependabot/gradle/org.jline-jli…
brenoepics cd48328
Merge pull request #4 from brenoepics/dependabot/gradle/org.junit.jup…
brenoepics 011549f
chore(deps): bump org.java-websocket:Java-WebSocket from 1.5.2 to 1.5.6
dependabot[bot] 0819435
chore(deps): bump ch.qos.logback:logback-core from 1.4.7 to 1.5.6
dependabot[bot] a0922ff
Merge pull request #9 from brenoepics/dependabot/gradle/ch.qos.logbac…
brenoepics c77aa52
Merge pull request #7 from brenoepics/dependabot/gradle/org.java-webs…
brenoepics ab5824b
chore(deps): bump org.slf4j:slf4j-api from 2.0.7 to 2.0.13
dependabot[bot] 0e7e165
Merge pull request #8 from brenoepics/dependabot/gradle/org.slf4j-slf…
brenoepics File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Did you verify that this is compatible with the client or just apply suggestions from sonarcloud?
Because this has a high chance of breaking the ps. Same for the other crypto algorithm changes.