Skip to content

Fix 582: support error_prone's @CanIgnoreReturnValue with guava < 23.6-jre #592

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

Closed
wants to merge 9 commits into from

Conversation

KengoTODA
Copy link
Member

To fix #582, we need to fix two problems:

  • error_prone's @CheckReturnValue annotation is not supported (this is feature improvement)
  • CheckReturnAnnotationDatabase does not handle annotation on package-info.class (this is bugfix)

previous implementation does not use annotation on method,
and refer annotation on package directly. to use CanIgnoreReturnValue
annotation on method, we should check annotation on method first.
KengoTODA added a commit that referenced this pull request Mar 22, 2018
@KengoTODA KengoTODA added this to the SpotBugs 3.1.3 milestone Apr 2, 2018
@KengoTODA
Copy link
Member Author

@spotbugs/everyone could you review?

Copy link
Contributor

@henrik242 henrik242 left a comment

Choose a reason for hiding this comment

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

lgtm

@KengoTODA KengoTODA closed this Apr 3, 2018
@KengoTODA KengoTODA reopened this Apr 3, 2018
@KengoTODA
Copy link
Member Author

This branch cannot be rebased due to conflicts

wmm, I cannot solve this message... my local Git says that we have no conflicts between two branches.
I will create another PR with rebased & squashed branch.

@KengoTODA KengoTODA closed this Apr 3, 2018
KengoTODA added a commit that referenced this pull request Apr 3, 2018
commit bb43071
Merge: 9747507 f1e14af
Author: Kengo TODA <skypencil@gmail.com>
Date:   Mon Apr 2 17:50:50 2018 +0800

    Merge remote-tracking branch 'spotbugs/release-3.1' into fix-582

commit 9747507
Author: Kengo TODA <skypencil@gmail.com>
Date:   Thu Mar 22 10:22:54 2018 +0800

    refs #592: follow suggestion from SonarQube

commit 13656e8
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 18:29:02 2018 +0800

    refs #592: follow suggestion from SonarQube

commit 37c5c29
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 18:02:52 2018 +0800

    refs #582: update CHANGELOG

commit 0bbc040
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 18:00:11 2018 +0800

    refs #582: remove debug log

commit e0e1895
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 17:55:41 2018 +0800

    fix #582: support CheckReturnValue annotation from errorprone

commit 39f4c50
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 17:34:26 2018 +0800

    refs #582: support annotation on package-info.class

commit cdc0a8f
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 17:31:05 2018 +0800

    refs #582: refer annotation on method, then refer it on package

    previous implementation does not use annotation on method,
    and refer annotation on package directly. to use CanIgnoreReturnValue
    annotation on method, we should check annotation on method first.

commit 04e5df7
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 11:57:19 2018 +0800

    refs #582: reproduce reported problem
henrik242 pushed a commit that referenced this pull request Apr 3, 2018
commit bb43071
Merge: 9747507 f1e14af
Author: Kengo TODA <skypencil@gmail.com>
Date:   Mon Apr 2 17:50:50 2018 +0800

    Merge remote-tracking branch 'spotbugs/release-3.1' into fix-582

commit 9747507
Author: Kengo TODA <skypencil@gmail.com>
Date:   Thu Mar 22 10:22:54 2018 +0800

    refs #592: follow suggestion from SonarQube

commit 13656e8
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 18:29:02 2018 +0800

    refs #592: follow suggestion from SonarQube

commit 37c5c29
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 18:02:52 2018 +0800

    refs #582: update CHANGELOG

commit 0bbc040
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 18:00:11 2018 +0800

    refs #582: remove debug log

commit e0e1895
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 17:55:41 2018 +0800

    fix #582: support CheckReturnValue annotation from errorprone

commit 39f4c50
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 17:34:26 2018 +0800

    refs #582: support annotation on package-info.class

commit cdc0a8f
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 17:31:05 2018 +0800

    refs #582: refer annotation on method, then refer it on package

    previous implementation does not use annotation on method,
    and refer annotation on package directly. to use CanIgnoreReturnValue
    annotation on method, we should check annotation on method first.

commit 04e5df7
Author: Kengo TODA <skypencil@gmail.com>
Date:   Wed Mar 21 11:57:19 2018 +0800

    refs #582: reproduce reported problem
@KengoTODA KengoTODA deleted the fix-582 branch May 22, 2018 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants