Skip to content
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

JCS-212 - Redundant local variable #36

Merged
merged 1 commit into from
Mar 29, 2021
Merged

JCS-212 - Redundant local variable #36

merged 1 commit into from
Mar 29, 2021

Conversation

arturobernalg
Copy link
Member

Inline unnecessary local variables, which add nothing to the comprehensibility of a method

Copy link
Contributor

@tvand tvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check my comments.

});

return dsFactory;
return this.dsFactories.computeIfAbsent(poolName, key -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting is all broken

@@ -646,8 +646,7 @@ protected void processUpdate(final ICacheElement<K, V> ce)

try
{
final ICacheElement<K, V> readObject = dataFile.readObject(ded);
object = readObject;
object = dataFile.readObject(ded);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please merge master as I just fixed this myself.


return pool;
return pools.computeIfAbsent(name, key -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check indentation.


return pool;
return schedulerPools.computeIfAbsent(name, key -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check indentation.

@arturobernalg
Copy link
Member Author

HI @tvand
I'm really sorry about the formatting. Don't know what could happened
Fixed

Copy link
Contributor

@tvand tvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tvand tvand merged commit e7cb310 into apache:master Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants