Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding no-args constructors to StatusJSONImpl and dependent types.

This is necessary for serialization systems like Kryo to be able to
populate a deserialized instance.
  • Loading branch information...
commit 14f8a59d90d1f6a53973d4d9cf49da44520b7d93 1 parent 8564a47
Adrian Petrescu authored December 07, 2011
5  twitter4j-core/src/main/java/twitter4j/GeoLocation.java
@@ -37,6 +37,11 @@ public GeoLocation(double latitude, double longitude) {
37 37
         this.latitude = latitude;
38 38
         this.longitude = longitude;
39 39
     }
  40
+    
  41
+    /* For serialization purposes only. */
  42
+    /* package */ GeoLocation() {
  43
+    	
  44
+    }
40 45
 
41 46
     /**
42 47
      * returns the latitude of the geo location
5  twitter4j-core/src/main/java/twitter4j/internal/json/HashtagEntityJSONImpl.java
@@ -39,6 +39,11 @@
39 39
         super();
40 40
         init(json);
41 41
     }
  42
+    
  43
+    /* For serialization purposes only. */
  44
+    /* package */ HashtagEntityJSONImpl() {
  45
+    	
  46
+    }
42 47
 
43 48
     private void init(JSONObject json) throws TwitterException {
44 49
         try {
5  twitter4j-core/src/main/java/twitter4j/internal/json/MediaEntityJSONImpl.java
@@ -88,6 +88,11 @@ public MediaEntityJSONImpl(JSONObject json) throws TwitterException {
88 88
         }
89 89
 
90 90
     }
  91
+    
  92
+    /* For serialization purposes only. */
  93
+    /* package */ MediaEntityJSONImpl() {
  94
+    	
  95
+    }
91 96
 
92 97
     /**
93 98
      * {@inheritDoc}
5  twitter4j-core/src/main/java/twitter4j/internal/json/PlaceJSONImpl.java
@@ -70,6 +70,11 @@
70 70
         super();
71 71
         init(json);
72 72
     }
  73
+    
  74
+    /* For serialization purposes only. */
  75
+    PlaceJSONImpl() {
  76
+    	
  77
+    }
73 78
 
74 79
     private void init(JSONObject json) throws TwitterException {
75 80
         try {
5  twitter4j-core/src/main/java/twitter4j/internal/json/StatusJSONImpl.java
@@ -80,6 +80,11 @@
80 80
         super();
81 81
         init(json);
82 82
     }
  83
+    
  84
+    /* Only for serialization purposes. */
  85
+    /*package*/ StatusJSONImpl() {
  86
+    	
  87
+    }
83 88
 
84 89
     private void init(JSONObject json) throws TwitterException {
85 90
         id = getLong("id", json);
5  twitter4j-core/src/main/java/twitter4j/internal/json/URLEntityJSONImpl.java
@@ -45,6 +45,11 @@
45 45
         super();
46 46
         init(json);
47 47
     }
  48
+    
  49
+    /* For serialization purposes only. */
  50
+    /* package */ URLEntityJSONImpl() {
  51
+    	
  52
+    }
48 53
 
49 54
     private void init(JSONObject json) throws TwitterException {
50 55
         try {
5  twitter4j-core/src/main/java/twitter4j/internal/json/UserJSONImpl.java
@@ -98,6 +98,11 @@
98 98
         super();
99 99
         init(json);
100 100
     }
  101
+    
  102
+    /* Only for serialization purposes. */
  103
+    /*package*/UserJSONImpl() {
  104
+    	
  105
+    }
101 106
 
102 107
     private void init(JSONObject json) throws TwitterException {
103 108
         try {
5  twitter4j-core/src/main/java/twitter4j/internal/json/UserMentionEntityJSONImpl.java
@@ -41,6 +41,11 @@
41 41
         super();
42 42
         init(json);
43 43
     }
  44
+    
  45
+    /* For serialization purposes only. */
  46
+    /* package */ UserMentionEntityJSONImpl() {
  47
+    
  48
+    }
44 49
 
45 50
     private void init(JSONObject json) throws TwitterException {
46 51
         try {

0 notes on commit 14f8a59

Please sign in to comment.
Something went wrong with that request. Please try again.