• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

GoogleCloudPlatform / google-cloud-java / 2826
83%
master: 72%

Build:
Build:
LAST BUILD BRANCH: resource-manager
DEFAULT BRANCH: master
Ran 16 Dec 2016 03:22AM UTC
Jobs 1
Files 399
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2826

Pull #1481

travis-ci

web-flow
make AutoValue work in PubSub

This commit digs us out of the AutoValue dependency hell.

Previously
- We require Guava 20 for its Stats class.
- Guava source has a `@CanIgnoreReturnValue` annotation,
  this annotation is in errorprone package.
- Errorprone package required Java8 to run. So, I just took dependency
  on it without running to make the build pass in both 7 and 8.
- Errorprone shades class javax.lang.model.type.IntersectionType.
  This class is Java8-only, but because it wasn't run, it didn't cause a problem.
- AutoValue conditionally loads IntersectionType.
  It catches Exception and behaves properly if the class is not found;
  this is why it works on Java 7.
  However, because of the previous step, we have the class in our path.
  Because the class is 8-only, JVM7 loading it results in
  UnsupportedVersionError. This is an Error and not an Exception,
  and so AutoValue (probably wisely) ignore it and crashes.

The fix is simple.
Since https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1480
already removed Stats, we can just go back to Guava 20.

@garrettjonesgoogle is full of wisdom!
Pull Request #1481: make AutoValue work in PubSub

17599 of 21035 relevant lines covered (83.67%)

139.23 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2826.2 16 Dec 2016 03:22AM UTC 0
83.67
Travis Job 2826.2
Source Files on build 2826
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2826
  • Pull Request #1481
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc