-
Notifications
You must be signed in to change notification settings - Fork 33
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
Five refactorings #45
Open
robinroos
wants to merge
26
commits into
bitsofinfo:master
Choose a base branch
from
robinroos:codeformat
base: master
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.
Open
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d70a029
Dead stores should be removed
robinroos 285216d
Optimize Imports
robinroos ee5fe85
Unused "private" fields should be removed
robinroos 823025c
Static fields should not be updated in constructors (in this case the…
robinroos d9e7644
"throws" declarations should not be superfluous
robinroos 8ffd12e
Standard outputs should not be used directly to log anything - in thi…
robinroos 863f850
Standard outputs should not be used directly to log anything - in thi…
robinroos c6f761d
Merge branch 'master' of https://github.com/bitsofinfo/hazelcast-dock…
robinroos 3ba86ed
Unused method parameters should be removed
robinroos d7ffd5c
Local variables should be appropriately scoped
robinroos ada0f15
Remove @SuppressWarnings("squid:S106")
robinroos f416d17
Reformat code and Optimize Imports
robinroos 7ef9d16
Reformat code and Optimize Imports
robinroos 5ec093b
Variable scope
robinroos f9a5615
Revert to last good build
robinroos 7658ea6
Revert "Reformat code and Optimize Imports"
robinroos 3b52a61
Revert "Reformat code and Optimize Imports"
robinroos 8322458
Revert "Remove @SuppressWarnings("squid:S106")"
robinroos c020dbe
Revert "Local variables should be appropriately scoped"
robinroos a0453b9
Remove TODO marker
robinroos bf5ecab
Reformat code and Optimize Imports
robinroos 225027d
Remove some whitespace
robinroos eede6f8
Private method overloadings which merely alter argument sequence shou…
robinroos ec5e0e1
Fields set only in constructors should be final
robinroos 5853324
Fields set only in constructors should be final
robinroos 7a799a6
Reformat code and Optimize Imports
robinroos 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,10 +68,10 @@ public Iterable<DiscoveryNode> discoverNodes() { | |
return discoveryNodes; | ||
} | ||
|
||
Set<InetAddress> serviceNameResolutions = | ||
new HashSet<>(); | ||
// TODO robin - tighten scope of these variables | ||
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. remove this 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. Already done in a pending PR which tightens variable scopes. |
||
Set<InetAddress> serviceNameResolutions; | ||
String[] serviceHostnameAndPort; | ||
Integer port = 5701; | ||
Integer port; | ||
|
||
//Loop for every service defined in the CSV | ||
for (String service : servicesCsv.split(",")) { | ||
|
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.
remove this
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.
@SuppressWarnings is already used in this project.
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.
yes, but not referencing third party tooling like this which is not used in the project
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.
Understood. will remove as part of the next PR if that's ok.