Skip to content

Resolve ErrorProne warnings#541

Closed
dmdashenkov wants to merge 2 commits intomasterfrom
resolve-error-prone-warnings
Closed

Resolve ErrorProne warnings#541
dmdashenkov wants to merge 2 commits intomasterfrom
resolve-error-prone-warnings

Conversation

@dmdashenkov
Copy link
Contributor

Since a recent PR, we've been observing a number of code style warnings from ErrorProne. This PR resolves those warnings.

@dmdashenkov dmdashenkov self-assigned this Jun 8, 2020
@codecov
Copy link

codecov bot commented Jun 8, 2020

Codecov Report

Merging #541 into master will decrease coverage by 0.01%.
The diff coverage is 85.71%.

@@             Coverage Diff              @@
##             master     #541      +/-   ##
============================================
- Coverage     73.79%   73.78%   -0.02%     
+ Complexity     2953     2949       -4     
============================================
  Files           506      505       -1     
  Lines         11954    11940      -14     
  Branches        669      668       -1     
============================================
- Hits           8822     8810      -12     
+ Misses         2904     2903       -1     
+ Partials        228      227       -1     

@dmdashenkov dmdashenkov requested review from alexander-yevsyukov and armiol and removed request for armiol June 8, 2020 18:54
@dmdashenkov
Copy link
Contributor Author

@alexander-yevsyukov, PTAL. @armiol, PTAL. @serhii-lekariev, FYI.

@dmdashenkov dmdashenkov requested a review from armiol June 8, 2020 18:55
Copy link
Collaborator

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@dmdashenkov please see my comment. Let's discuss tomorrow in person.

*/
@Override
protected boolean enabled() {
public boolean enabled() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was a design purpose to prohibit invoking this method from outside the package. This is why they were not enums.

@serhii-lekariev
Copy link
Contributor

serhii-lekariev commented Jun 9, 2020

@dmdashenkov

I propose bb9f276 and 82fd14d, which seem to resolve the warnings. As for EnvironmentType design - let's discuss.

@serhii-lekariev
Copy link
Contributor

serhii-lekariev commented Jun 9, 2020

@armiol, @alexander-yevsyukov, FYI.

As discussed with @dmdashenkov, I'll tweak the design of EnvironmentType in #542. I'll make sure to deal with the Error Prone warnings too.

@dmdashenkov
Copy link
Contributor Author

@serhii-lekariev, I'll close the PR but leave the branch alive for now.

@dmdashenkov dmdashenkov closed this Jun 9, 2020
@alexander-yevsyukov alexander-yevsyukov deleted the resolve-error-prone-warnings branch October 15, 2020 11:35
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.

3 participants