Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How backward compatible is Guava/Google Collections?

Tags:

java

guava

I am working on large application with multiple projects all still use Google Collections 1.0. I want to upgrade to Guava 12. The test coverage over the projects is not great. Has anyone had similar experience in upgrading this, and is there any incompatibilities? What are the major issues?

like image 673
voidvector Avatar asked Jun 06 '12 16:06

voidvector


People also ask

Why should I use Google guava?

Guava is an open-source “Collection Library” library for Java, developed by Google. It provides utilities for working with Java collections. As you dive deep into Guava you'll notice how it reduces coding errors, facilitates standard coding practices and boost productivity by making code concise and easy to read.

What is Google guava JRE?

Guava: Google Core Libraries For Java » 31.1-jre Guava is a suite of core and expanded libraries that include utility classes, Google's collections, I/O classes, and much more. License. Apache 2.0.


1 Answers

Guava contributor here.

Guava 12 is almost entirely backward-compatible with Google Collections, but a very few methods have gone through the mandated 18-month deprecation period and been deleted; see https://code.google.com/p/guava-libraries/issues/detail?id=836 .

That said, nobody should still be on Google Collections, and we very strongly encourage you to migrate.

like image 76
Louis Wasserman Avatar answered Sep 20 '22 08:09

Louis Wasserman