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

Make futures-extra compatible with Guava 20. #27

Merged
merged 4 commits into from
Mar 29, 2017

Conversation

rydenius
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.551% when pulling 87cbca3 on rydenius:master into 54a064d on spotify:master.

@@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.spotify</groupId>
<version>2.6.3-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>

Choose a reason for hiding this comment

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

Why the version bump? There are no breaking changes as far as I can tell.

Copy link
Contributor

Choose a reason for hiding this comment

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

Futures.transformAsync appeared only in Guava 19, stated compatibility of current version is Guava 18.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I thought I had to do some kind of version bump to signal that Guava requirements had changed. But maybe 3.0 was over the top. Bumped to 2.7 now instead. Ok?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.551% when pulling 367d5d6 on rydenius:master into 54a064d on spotify:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 97.143% when pulling f1624ba on rydenius:master into 54a064d on spotify:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.551% when pulling 0f04d00 on rydenius:master into 54a064d on spotify:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.551% when pulling 815e1d8 on rydenius:master into 54a064d on spotify:master.

pom.xml Outdated
@@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.spotify</groupId>
<version>2.6.3-SNAPSHOT</version>
<version>2.7.0-SNAPSHOT</version>

Choose a reason for hiding this comment

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

No signatures changed, so this should still be 2.6.3... However I'll still merge this if you don't want to fix this :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I still think the need for Guava major bump should be reflected somehow in our version numbering. In addition I deprecated a public method.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.551% when pulling 1c8ff0a on rydenius:master into 54a064d on spotify:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.551% when pulling 1c8ff0a on rydenius:master into 54a064d on spotify:master.

@@ -71,6 +71,9 @@ This is just a simple delegating method that explicitly calls
Futures.transform(future, Function). There is also a corresponding
Copy link
Member

Choose a reason for hiding this comment

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

This line doesn't seem to be correct any longer, IIUC? The call is instead to Futures.transformAsync?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No that is correct. It is Futures.transform(future, Function) but Futures.transformAsync(future, AsyncFunction). They used to have Futures.transform overloaded with both Function and AsyncFunction arguments. In Guava 19 they added transformAsync and deprecated the transform variant that took AsyncFunction in preparation for removing it in Guava 20.

Copy link
Member

Choose a reason for hiding this comment

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

Got it.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.551% when pulling a451ecb on rydenius:master into 54a064d on spotify:master.

@pettermahlen pettermahlen merged commit 518282d into spotify:master Mar 29, 2017
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.

5 participants