Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I be using instead of com.google.appengine.repackaged*?

Just updated to 1.6.1 and I am getting warnings that I should not be using

com.google.appengine.repackaged

What should I be using instead?

Affected classes specifically are:

com.google.appengine.repackaged.org.json.JSONException; com.google.appengine.repackaged.org.json.JSONObject; com.google.appengine.repackaged.com.google.common.util.Base64; com.google.appengine.repackaged.com.google.common.util.Base64DecoderException;

like image 902
Lumpy Avatar asked Jan 25 '12 21:01

Lumpy


3 Answers

For org.json.* you can use the Java JSON library found at http://json.org/ (though there are other, better JSON libraries for Java)

For classes in com.google.common.* you can find most of them (though not Base64, etc., apparently) in Google's Guava libraries.

like image 85
Jason Hall Avatar answered Oct 22 '22 14:10

Jason Hall


org.json.JSONException;
org.json.JSONObject;
com.google.common.util.Base64;
com.google.common.util.Base64DecoderException;
like image 39
Mike Samuel Avatar answered Oct 22 '22 14:10

Mike Samuel


You should include third party jars yourself in your application, instead of relying on com.google.appengine.repackaged

In your case, your should add the following dependencies:

  • Apache commons
  • JSON Java
like image 27
proppy Avatar answered Oct 22 '22 12:10

proppy