Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

TFJ-446

migrate to Apache License 2.0
  • Loading branch information...
commit b534c834f13dab5069f6fdba3fdcc9a746609bff 1 parent 4f56acc
Yusuke Yamamoto authored February 21, 2011

Showing 301 changed files with 6,871 additions and 9,152 deletions. Show diff stats Hide diff stats

  1. 205  LICENSE.txt
  2. 40  twitter4j-core/src/main/java/twitter4j/AbstractStreamImplementation.java
  3. 48  twitter4j-core/src/main/java/twitter4j/AccountSettings.java
  4. 40  twitter4j-core/src/main/java/twitter4j/AccountSettingsJSONImpl.java
  5. 40  twitter4j-core/src/main/java/twitter4j/AccountTotals.java
  6. 41  twitter4j-core/src/main/java/twitter4j/AccountTotalsJSONImpl.java
  7. 389  twitter4j-core/src/main/java/twitter4j/Annotation.java
  8. 246  twitter4j-core/src/main/java/twitter4j/Annotations.java
  9. 40  twitter4j-core/src/main/java/twitter4j/AsyncTwitter.java
  10. 38  twitter4j-core/src/main/java/twitter4j/AsyncTwitterFactory.java
  11. 40  twitter4j-core/src/main/java/twitter4j/Category.java
  12. 41  twitter4j-core/src/main/java/twitter4j/CategoryJSONImpl.java
  13. 38  twitter4j-core/src/main/java/twitter4j/ConnectionLifeCycleListener.java
  14. 43  twitter4j-core/src/main/java/twitter4j/CursorSupport.java
  15. 42  twitter4j-core/src/main/java/twitter4j/DirectMessage.java
  16. 57  twitter4j-core/src/main/java/twitter4j/DirectMessageJSONImpl.java
  17. 54  twitter4j-core/src/main/java/twitter4j/ExceptionDiagnosis.java
  18. 40  twitter4j-core/src/main/java/twitter4j/FilterQuery.java
  19. 42  twitter4j-core/src/main/java/twitter4j/Friendship.java
  20. 43  twitter4j-core/src/main/java/twitter4j/FriendshipJSONImpl.java
  21. 38  twitter4j-core/src/main/java/twitter4j/GeoLocation.java
  22. 60  twitter4j-core/src/main/java/twitter4j/GeoQuery.java
  23. 40  twitter4j-core/src/main/java/twitter4j/HashtagEntity.java
  24. 41  twitter4j-core/src/main/java/twitter4j/HashtagEntityJSONImpl.java
  25. 38  twitter4j-core/src/main/java/twitter4j/IDs.java
  26. 40  twitter4j-core/src/main/java/twitter4j/IDsJSONImpl.java
  27. 46  twitter4j-core/src/main/java/twitter4j/Location.java
  28. 46  twitter4j-core/src/main/java/twitter4j/LocationJSONImpl.java
  29. 38  twitter4j-core/src/main/java/twitter4j/PagableResponseList.java
  30. 38  twitter4j-core/src/main/java/twitter4j/PagableResponseListImpl.java
  31. 56  twitter4j-core/src/main/java/twitter4j/Paging.java
  32. 119  twitter4j-core/src/main/java/twitter4j/PlaceJSONImpl.java
  33. 111  twitter4j-core/src/main/java/twitter4j/ProfileImage.java
  34. 38  twitter4j-core/src/main/java/twitter4j/ProfileImageImpl.java
  35. 40  twitter4j-core/src/main/java/twitter4j/Query.java
  36. 41  twitter4j-core/src/main/java/twitter4j/QueryResult.java
  37. 54  twitter4j-core/src/main/java/twitter4j/QueryResultJSONImpl.java
  38. 38  twitter4j-core/src/main/java/twitter4j/RateLimitStatus.java
  39. 43  twitter4j-core/src/main/java/twitter4j/RateLimitStatusEvent.java
  40. 53  twitter4j-core/src/main/java/twitter4j/RateLimitStatusJSONImpl.java
  41. 44  twitter4j-core/src/main/java/twitter4j/RateLimitStatusListener.java
  42. 41  twitter4j-core/src/main/java/twitter4j/RelatedResults.java
  43. 56  twitter4j-core/src/main/java/twitter4j/RelatedResultsJSONImpl.java
  44. 43  twitter4j-core/src/main/java/twitter4j/Relationship.java
  45. 50  twitter4j-core/src/main/java/twitter4j/RelationshipJSONImpl.java
  46. 40  twitter4j-core/src/main/java/twitter4j/ResponseList.java
  47. 38  twitter4j-core/src/main/java/twitter4j/ResponseListImpl.java
  48. 42  twitter4j-core/src/main/java/twitter4j/SavedSearch.java
  49. 59  twitter4j-core/src/main/java/twitter4j/SavedSearchJSONImpl.java
  50. 41  twitter4j-core/src/main/java/twitter4j/SimilarPlaces.java
  51. 42  twitter4j-core/src/main/java/twitter4j/SimilarPlacesImpl.java
  52. 40  twitter4j-core/src/main/java/twitter4j/SiteStreamsAdapter.java
  53. 40  twitter4j-core/src/main/java/twitter4j/SiteStreamsImpl.java
  54. 40  twitter4j-core/src/main/java/twitter4j/SiteStreamsListener.java
  55. 40  twitter4j-core/src/main/java/twitter4j/Status.java
  56. 82  twitter4j-core/src/main/java/twitter4j/StatusAdapter.java
  57. 40  twitter4j-core/src/main/java/twitter4j/StatusDeletionNotice.java
  58. 40  twitter4j-core/src/main/java/twitter4j/StatusDeletionNoticeImpl.java
  59. 40  twitter4j-core/src/main/java/twitter4j/StatusJSONImpl.java
  60. 42  twitter4j-core/src/main/java/twitter4j/StatusListener.java
  61. 41  twitter4j-core/src/main/java/twitter4j/StatusStream.java
  62. 41  twitter4j-core/src/main/java/twitter4j/StatusStreamImpl.java
  63. 104  twitter4j-core/src/main/java/twitter4j/StatusUpdate.java
  64. 38  twitter4j-core/src/main/java/twitter4j/StreamListener.java
  65. 38  twitter4j-core/src/main/java/twitter4j/Trend.java
  66. 42  twitter4j-core/src/main/java/twitter4j/TrendJSONImpl.java
  67. 41  twitter4j-core/src/main/java/twitter4j/Trends.java
  68. 40  twitter4j-core/src/main/java/twitter4j/TrendsJSONImpl.java
  69. 45  twitter4j-core/src/main/java/twitter4j/Tweet.java
  70. 56  twitter4j-core/src/main/java/twitter4j/TweetJSONImpl.java
  71. 40  twitter4j-core/src/main/java/twitter4j/Twitter.java
  72. 243  twitter4j-core/src/main/java/twitter4j/TwitterAdapter.java
  73. 56  twitter4j-core/src/main/java/twitter4j/TwitterBase.java
  74. 40  twitter4j-core/src/main/java/twitter4j/TwitterException.java
  75. 38  twitter4j-core/src/main/java/twitter4j/TwitterFactory.java
  76. 84  twitter4j-core/src/main/java/twitter4j/TwitterListener.java
  77. 42  twitter4j-core/src/main/java/twitter4j/TwitterMethod.java
  78. 40  twitter4j-core/src/main/java/twitter4j/TwitterOAuthSupportBaseImpl.java
  79. 40  twitter4j-core/src/main/java/twitter4j/TwitterResponse.java
  80. 42  twitter4j-core/src/main/java/twitter4j/TwitterResponseImpl.java
  81. 40  twitter4j-core/src/main/java/twitter4j/TwitterStream.java
  82. 38  twitter4j-core/src/main/java/twitter4j/TwitterStreamFactory.java
  83. 38  twitter4j-core/src/main/java/twitter4j/URLEntity.java
  84. 46  twitter4j-core/src/main/java/twitter4j/URLEntityJSONImpl.java
  85. 40  twitter4j-core/src/main/java/twitter4j/User.java
  86. 40  twitter4j-core/src/main/java/twitter4j/UserJSONImpl.java
  87. 38  twitter4j-core/src/main/java/twitter4j/UserList.java
  88. 56  twitter4j-core/src/main/java/twitter4j/UserListJSONImpl.java
  89. 38  twitter4j-core/src/main/java/twitter4j/UserMentionEntity.java
  90. 41  twitter4j-core/src/main/java/twitter4j/UserMentionEntityJSONImpl.java
  91. 41  twitter4j-core/src/main/java/twitter4j/UserStream.java
  92. 40  twitter4j-core/src/main/java/twitter4j/UserStreamAdapter.java
  93. 41  twitter4j-core/src/main/java/twitter4j/UserStreamImpl.java
  94. 40  twitter4j-core/src/main/java/twitter4j/UserStreamListener.java
  95. 38  twitter4j-core/src/main/java/twitter4j/Version.java
  96. 165  twitter4j-core/src/main/java/twitter4j/api/AccountMethods.java
  97. 96  twitter4j-core/src/main/java/twitter4j/api/AccountMethodsAsync.java
  98. 209  twitter4j-core/src/main/java/twitter4j/api/BlockMethods.java
  99. 173  twitter4j-core/src/main/java/twitter4j/api/BlockMethodsAsync.java
  100. 189  twitter4j-core/src/main/java/twitter4j/api/DirectMessageMethods.java
  101. 137  twitter4j-core/src/main/java/twitter4j/api/DirectMessageMethodsAsync.java
  102. 164  twitter4j-core/src/main/java/twitter4j/api/FavoriteMethods.java
  103. 130  twitter4j-core/src/main/java/twitter4j/api/FavoriteMethodsAsync.java
  104. 38  twitter4j-core/src/main/java/twitter4j/api/FriendsFollowersMethods.java
  105. 38  twitter4j-core/src/main/java/twitter4j/api/FriendsFollowersMethodsAsync.java
  106. 259  twitter4j-core/src/main/java/twitter4j/api/FriendshipMethods.java
  107. 206  twitter4j-core/src/main/java/twitter4j/api/FriendshipMethodsAsync.java
  108. 38  twitter4j-core/src/main/java/twitter4j/api/GeoMethods.java
  109. 38  twitter4j-core/src/main/java/twitter4j/api/GeoMethodsAsync.java
  110. 52  twitter4j-core/src/main/java/twitter4j/api/HelpMethods.java
  111. 52  twitter4j-core/src/main/java/twitter4j/api/HelpMethodsAsync.java
  112. 40  twitter4j-core/src/main/java/twitter4j/api/LegalResources.java
  113. 42  twitter4j-core/src/main/java/twitter4j/api/LegalResourcesAsync.java
  114. 147  twitter4j-core/src/main/java/twitter4j/api/ListMembersMethods.java
  115. 61  twitter4j-core/src/main/java/twitter4j/api/ListMembersMethodsAsync.java
  116. 51  twitter4j-core/src/main/java/twitter4j/api/ListMethods.java
  117. 49  twitter4j-core/src/main/java/twitter4j/api/ListMethodsAsync.java
  118. 118  twitter4j-core/src/main/java/twitter4j/api/ListSubscribersMethods.java
  119. 56  twitter4j-core/src/main/java/twitter4j/api/ListSubscribersMethodsAsync.java
  120. 73  twitter4j-core/src/main/java/twitter4j/api/LocalTrendsMethods.java
  121. 63  twitter4j-core/src/main/java/twitter4j/api/LocalTrendsMethodsAsync.java
  122. 39  twitter4j-core/src/main/java/twitter4j/api/NewTwitterMethods.java
  123. 39  twitter4j-core/src/main/java/twitter4j/api/NewTwitterMethodsAsync.java
  124. 122  twitter4j-core/src/main/java/twitter4j/api/NotificationMethods.java
  125. 94  twitter4j-core/src/main/java/twitter4j/api/NotificationMethodsAsync.java
  126. 109  twitter4j-core/src/main/java/twitter4j/api/SavedSearchesMethods.java
  127. 39  twitter4j-core/src/main/java/twitter4j/api/SavedSearchesMethodsAsync.java
  128. 59  twitter4j-core/src/main/java/twitter4j/api/SearchMethods.java
  129. 58  twitter4j-core/src/main/java/twitter4j/api/SearchMethodsAsync.java
  130. 38  twitter4j-core/src/main/java/twitter4j/api/SpamReportingMethods.java
  131. 43  twitter4j-core/src/main/java/twitter4j/api/SpamReportingMethodsAsync.java
  132. 38  twitter4j-core/src/main/java/twitter4j/api/StatusMethods.java
  133. 38  twitter4j-core/src/main/java/twitter4j/api/StatusMethodsAsync.java
  134. 42  twitter4j-core/src/main/java/twitter4j/api/TimelineMethods.java
  135. 273  twitter4j-core/src/main/java/twitter4j/api/TimelineMethodsAsync.java
  136. 137  twitter4j-core/src/main/java/twitter4j/api/TrendsMethods.java
  137. 63  twitter4j-core/src/main/java/twitter4j/api/TrendsMethodsAsync.java
  138. 40  twitter4j-core/src/main/java/twitter4j/api/UserMethods.java
  139. 40  twitter4j-core/src/main/java/twitter4j/api/UserMethodsAsync.java
  140. 40  twitter4j-core/src/main/java/twitter4j/conf/Configuration.java
  141. 40  twitter4j-core/src/main/java/twitter4j/conf/ConfigurationBase.java
  142. 40  twitter4j-core/src/main/java/twitter4j/conf/ConfigurationBuilder.java
  143. 42  twitter4j-core/src/main/java/twitter4j/conf/ConfigurationContext.java
  144. 40  twitter4j-core/src/main/java/twitter4j/conf/ConfigurationFactory.java
  145. 40  twitter4j-core/src/main/java/twitter4j/conf/PropertyConfiguration.java
  146. 46  twitter4j-core/src/main/java/twitter4j/conf/PropertyConfigurationFactory.java
  147. 56  twitter4j-core/src/main/java/twitter4j/http/AccessToken.java
  148. 39  twitter4j-core/src/main/java/twitter4j/http/Authorization.java
  149. 40  twitter4j-core/src/main/java/twitter4j/http/AuthorizationConfiguration.java
  150. 38  twitter4j-core/src/main/java/twitter4j/http/AuthorizationFactory.java
  151. 40  twitter4j-core/src/main/java/twitter4j/http/BasicAuthorization.java
  152. 38  twitter4j-core/src/main/java/twitter4j/http/NullAuthorization.java
  153. 40  twitter4j-core/src/main/java/twitter4j/http/OAuthAuthorization.java
  154. 53  twitter4j-core/src/main/java/twitter4j/http/OAuthToken.java
  155. 38  twitter4j-core/src/main/java/twitter4j/http/RequestToken.java
  156. 38  twitter4j-core/src/main/java/twitter4j/internal/async/Dispatcher.java
  157. 38  twitter4j-core/src/main/java/twitter4j/internal/async/DispatcherConfiguration.java
  158. 38  twitter4j-core/src/main/java/twitter4j/internal/async/DispatcherFactory.java
  159. 38  twitter4j-core/src/main/java/twitter4j/internal/async/DispatcherImpl.java
  160. 42  twitter4j-core/src/main/java/twitter4j/internal/http/BASE64Encoder.java
  161. 38  twitter4j-core/src/main/java/twitter4j/internal/http/HTMLEntity.java
  162. 39  twitter4j-core/src/main/java/twitter4j/internal/http/HttpClient.java
  163. 40  twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientConfiguration.java
  164. 38  twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientFactory.java
  165. 38  twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientImpl.java
  166. 40  twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientWrapper.java
  167. 41  twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientWrapperConfiguration.java
  168. 70  twitter4j-core/src/main/java/twitter4j/internal/http/HttpParameter.java
  169. 40  twitter4j-core/src/main/java/twitter4j/internal/http/HttpRequest.java
  170. 40  twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponse.java
  171. 38  twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseCode.java
  172. 40  twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseEvent.java
  173. 38  twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java
  174. 39  twitter4j-core/src/main/java/twitter4j/internal/http/RequestMethod.java
  175. 45  twitter4j-core/src/main/java/twitter4j/internal/http/XAuthAuthorization.java
  176. 54  twitter4j-core/src/main/java/twitter4j/internal/json/DataObjectFactoryUtil.java
  177. 40  twitter4j-core/src/main/java/twitter4j/internal/logging/CommonsLoggingLogger.java
  178. 38  twitter4j-core/src/main/java/twitter4j/internal/logging/CommonsLoggingLoggerFactory.java
  179. 40  twitter4j-core/src/main/java/twitter4j/internal/logging/Log4JLogger.java
  180. 38  twitter4j-core/src/main/java/twitter4j/internal/logging/Log4JLoggerFactory.java
  181. 62  twitter4j-core/src/main/java/twitter4j/internal/logging/Logger.java
  182. 39  twitter4j-core/src/main/java/twitter4j/internal/logging/LoggerFactory.java
  183. 38  twitter4j-core/src/main/java/twitter4j/internal/logging/NullLogger.java
  184. 40  twitter4j-core/src/main/java/twitter4j/internal/logging/NullLoggerFactory.java
  185. 41  twitter4j-core/src/main/java/twitter4j/internal/logging/SLF4JLogger.java
  186. 38  twitter4j-core/src/main/java/twitter4j/internal/logging/SLF4JLoggerFactory.java
  187. 38  twitter4j-core/src/main/java/twitter4j/internal/logging/StdOutLoggerFactory.java
  188. 46  twitter4j-core/src/main/java/twitter4j/internal/util/ParseUtil.java
  189. 38  twitter4j-core/src/main/java/twitter4j/internal/util/StringUtil.java
  190. 65  twitter4j-core/src/main/java/twitter4j/json/DataObjectFactory.java
  191. 38  twitter4j-core/src/main/java/twitter4j/json/JSONObjectType.java
  192. 42  twitter4j-core/src/main/java/twitter4j/util/CharacterUtil.java
  193. 38  twitter4j-core/src/main/java/twitter4j/util/TimeSpanConverter.java
  194. 205  twitter4j-core/src/main/resources/META-INF/LICENSE.txt
  195. 40  twitter4j-core/src/test/java/twitter4j/AsyncTwitterTest.java
  196. 38  twitter4j-core/src/test/java/twitter4j/AuthorizationTest.java
  197. 40  twitter4j-core/src/test/java/twitter4j/DAOTest.java
  198. 47  twitter4j-core/src/test/java/twitter4j/PagingTest.java
  199. 38  twitter4j-core/src/test/java/twitter4j/SSLTestUnit.java
  200. 102  twitter4j-core/src/test/java/twitter4j/SearchAPITest.java
  201. 40  twitter4j-core/src/test/java/twitter4j/SiteStreamsTest.java
  202. 39  twitter4j-core/src/test/java/twitter4j/SizeofStatusChecker.java
  203. 45  twitter4j-core/src/test/java/twitter4j/SpringCompatibilityTest.java
  204. 41  twitter4j-core/src/test/java/twitter4j/StreamAPITest.java
  205. 38  twitter4j-core/src/test/java/twitter4j/Twitter4JTestSuite.java
  206. 42  twitter4j-core/src/test/java/twitter4j/TwitterExceptionTest.java
  207. 40  twitter4j-core/src/test/java/twitter4j/TwitterTest.java
  208. 41  twitter4j-core/src/test/java/twitter4j/TwitterTestBase.java
  209. 40  twitter4j-core/src/test/java/twitter4j/UserStreamTest.java
  210. 40  twitter4j-core/src/test/java/twitter4j/conf/ConfigurationTest.java
  211. 38  twitter4j-core/src/test/java/twitter4j/http/BASE64EncoderTest.java
  212. 50  twitter4j-core/src/test/java/twitter4j/http/HTMLEntityTest.java
  213. 38  twitter4j-core/src/test/java/twitter4j/http/HttpClientTest.java
  214. 40  twitter4j-core/src/test/java/twitter4j/http/OAuthTest.java
  215. 86  twitter4j-core/src/test/java/twitter4j/http/PostParameterTest.java
  216. 38  twitter4j-core/src/test/java/twitter4j/internal/async/DispatcherTest.java
  217. 43  twitter4j-core/src/test/java/twitter4j/internal/util/ParseUtilTest.java
  218. 38  twitter4j-core/src/test/java/twitter4j/internal/util/StringUtilTest.java
  219. 38  twitter4j-core/src/test/java/twitter4j/util/CharacterUtilTest.java
  220. 40  twitter4j-core/src/test/java/twitter4j/util/TimeSpanConverterTest.java
  221. 40  twitter4j-examples/src/main/java/twitter4j/examples/account/GetAccountSettings.java
  222. 38  twitter4j-examples/src/main/java/twitter4j/examples/account/GetAccountTotals.java
  223. 38  twitter4j-examples/src/main/java/twitter4j/examples/account/GetRateLimitStatus.java
  224. 38  twitter4j-examples/src/main/java/twitter4j/examples/account/UpdateProfile.java
  225. 38  twitter4j-examples/src/main/java/twitter4j/examples/account/UpdateProfileBackgroundImage.java
  226. 38  twitter4j-examples/src/main/java/twitter4j/examples/account/UpdateProfileColors.java
  227. 38  twitter4j-examples/src/main/java/twitter4j/examples/account/UpdateProfileImage.java
  228. 38  twitter4j-examples/src/main/java/twitter4j/examples/account/VerifyCredentials.java
  229. 38  twitter4j-examples/src/main/java/twitter4j/examples/async/AsyncUpdate.java
  230. 38  twitter4j-examples/src/main/java/twitter4j/examples/block/CreateBlock.java
  231. 38  twitter4j-examples/src/main/java/twitter4j/examples/block/DestroyBlock.java
  232. 38  twitter4j-examples/src/main/java/twitter4j/examples/block/ExistsBlock.java
  233. 38  twitter4j-examples/src/main/java/twitter4j/examples/block/GetBlockingUsers.java
  234. 41  twitter4j-examples/src/main/java/twitter4j/examples/block/GetBlockingUsersIDs.java
  235. 38  twitter4j-examples/src/main/java/twitter4j/examples/directmessage/DestroyDirectMessage.java
  236. 44  twitter4j-examples/src/main/java/twitter4j/examples/directmessage/GetDirectMessages.java
  237. 38  twitter4j-examples/src/main/java/twitter4j/examples/directmessage/GetSentDirectMessages.java
  238. 38  twitter4j-examples/src/main/java/twitter4j/examples/directmessage/SendDirectMessage.java
  239. 43  twitter4j-examples/src/main/java/twitter4j/examples/directmessage/ShowDirectMessage.java
  240. 38  twitter4j-examples/src/main/java/twitter4j/examples/favorite/CreateFavorite.java
  241. 38  twitter4j-examples/src/main/java/twitter4j/examples/favorite/DestroyFavorite.java
  242. 38  twitter4j-examples/src/main/java/twitter4j/examples/favorite/GetFavorites.java
  243. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendsandfollowers/GetFollowersIDs.java
  244. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendsandfollowers/GetFriendsIDs.java
  245. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendship/CreateFriendship.java
  246. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendship/DestroyFriendship.java
  247. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendship/ExistsFriendship.java
  248. 40  twitter4j-examples/src/main/java/twitter4j/examples/friendship/GetIncomingFriendships.java
  249. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendship/GetOutgoingFriendships.java
  250. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendship/LookupFriendships.java
  251. 38  twitter4j-examples/src/main/java/twitter4j/examples/friendship/ShowFriendship.java
  252. 40  twitter4j-examples/src/main/java/twitter4j/examples/friendship/UpdateFriendship.java
  253. 38  twitter4j-examples/src/main/java/twitter4j/examples/geo/CreatePlace.java
  254. 38  twitter4j-examples/src/main/java/twitter4j/examples/geo/GetGeoDetails.java
  255. 41  twitter4j-examples/src/main/java/twitter4j/examples/geo/GetSimilarPlaces.java
  256. 38  twitter4j-examples/src/main/java/twitter4j/examples/geo/ReverseGeoCode.java
  257. 38  twitter4j-examples/src/main/java/twitter4j/examples/geo/SearchPlaces.java
  258. 40  twitter4j-examples/src/main/java/twitter4j/examples/help/Test.java
  259. 55  twitter4j-examples/src/main/java/twitter4j/examples/json/LoadRawJSON.java
  260. 41  twitter4j-examples/src/main/java/twitter4j/examples/json/SaveRawJSON.java
  261. 40  twitter4j-examples/src/main/java/twitter4j/examples/legal/GetPrivacyPolicy.java
  262. 40  twitter4j-examples/src/main/java/twitter4j/examples/legal/GetTermsOfService.java
  263. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/CreateUserList.java
  264. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/DestroyUserList.java
  265. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/GetAllUserLists.java
  266. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/GetUserListMemberships.java
  267. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/GetUserListStatuses.java
  268. 44  twitter4j-examples/src/main/java/twitter4j/examples/list/GetUserListSubscriptions.java
  269. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/GetUserLists.java
  270. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/ShowUserList.java
  271. 38  twitter4j-examples/src/main/java/twitter4j/examples/list/UpdateUserList.java
  272. 38  twitter4j-examples/src/main/java/twitter4j/examples/listmembers/AddUserListMember.java
  273. 38  twitter4j-examples/src/main/java/twitter4j/examples/listmembers/AddUserListMembers.java
  274. 38  twitter4j-examples/src/main/java/twitter4j/examples/listmembers/CheckUserListMembership.java
  275. 40  twitter4j-examples/src/main/java/twitter4j/examples/listmembers/DeleteUserListMember.java
  276. 38  twitter4j-examples/src/main/java/twitter4j/examples/listmembers/GetUserListMembers.java
  277. 38  twitter4j-examples/src/main/java/twitter4j/examples/listsubscribers/CheckUserListSubscription.java
  278. 38  twitter4j-examples/src/main/java/twitter4j/examples/listsubscribers/GetUserListSubscribers.java
  279. 38  twitter4j-examples/src/main/java/twitter4j/examples/listsubscribers/SubscribeUserList.java
  280. 38  twitter4j-examples/src/main/java/twitter4j/examples/listsubscribers/UnsubscribeUserList.java
  281. 38  twitter4j-examples/src/main/java/twitter4j/examples/media/ImgLyImageUpload.java
  282. 38  twitter4j-examples/src/main/java/twitter4j/examples/media/PlixiImageUpload.java
  283. 38  twitter4j-examples/src/main/java/twitter4j/examples/media/TwippleImageUpload.java
  284. 38  twitter4j-examples/src/main/java/twitter4j/examples/media/TwitgooImageUpload.java
  285. 38  twitter4j-examples/src/main/java/twitter4j/examples/media/TwitpicImageUpload.java
  286. 38  twitter4j-examples/src/main/java/twitter4j/examples/media/YFrogImageUpload.java
  287. 38  twitter4j-examples/src/main/java/twitter4j/examples/notification/DisableNotification.java
  288. 38  twitter4j-examples/src/main/java/twitter4j/examples/notification/EnableNotification.java
  289. 82  twitter4j-examples/src/main/java/twitter4j/examples/oauth/GetAccessToken.java
  290. 38  twitter4j-examples/src/main/java/twitter4j/examples/savedsearches/CreateSavedSearch.java
  291. 38  twitter4j-examples/src/main/java/twitter4j/examples/savedsearches/DestroySavedSearch.java
  292. 38  twitter4j-examples/src/main/java/twitter4j/examples/savedsearches/GetSavedSearches.java
  293. 38  twitter4j-examples/src/main/java/twitter4j/examples/savedsearches/ShowSavedSearch.java
  294. 44  twitter4j-examples/src/main/java/twitter4j/examples/search/SearchTweets.java
  295. 42  twitter4j-examples/src/main/java/twitter4j/examples/spamreporting/ReportSpam.java
  296. 38  twitter4j-examples/src/main/java/twitter4j/examples/stream/PrintFilterStream.java
  297. 38  twitter4j-examples/src/main/java/twitter4j/examples/stream/PrintFirehoseStream.java
  298. 38  twitter4j-examples/src/main/java/twitter4j/examples/stream/PrintLinksStream.java
  299. 38  twitter4j-examples/src/main/java/twitter4j/examples/stream/PrintRetweetStream.java
  300. 38  twitter4j-examples/src/main/java/twitter4j/examples/stream/PrintSampleStream.java
205  LICENSE.txt
... ...
@@ -1,26 +1,179 @@
1  
-Twitter4J includes software from JSON.org to parse JSON response from the Twitter API. You can see the license term at http://www.JSON.org/license.html
2  
-
3  
-Copyright (c) 2007-2011, Yusuke Yamamoto
4  
-All rights reserved.
5  
-
6  
-Redistribution and use in source and binary forms, with or without
7  
-modification, are permitted provided that the following conditions are met:
8  
-    * Redistributions of source code must retain the above copyright
9  
-      notice, this list of conditions and the following disclaimer.
10  
-    * Redistributions in binary form must reproduce the above copyright
11  
-      notice, this list of conditions and the following disclaimer in the
12  
-      documentation and/or other materials provided with the distribution.
13  
-    * Neither the name of the Yusuke Yamamoto nor the
14  
-      names of its contributors may be used to endorse or promote products
15  
-      derived from this software without specific prior written permission.
16  
-
17  
-THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
18  
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  
-DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
21  
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26  
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1
+
  2
+                                 Apache License
  3
+                           Version 2.0, January 2004
  4
+                        http://www.apache.org/licenses/
  5
+
  6
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  7
+
  8
+   1. Definitions.
  9
+
  10
+      "License" shall mean the terms and conditions for use, reproduction,
  11
+      and distribution as defined by Sections 1 through 9 of this document.
  12
+
  13
+      "Licensor" shall mean the copyright owner or entity authorized by
  14
+      the copyright owner that is granting the License.
  15
+
  16
+      "Legal Entity" shall mean the union of the acting entity and all
  17
+      other entities that control, are controlled by, or are under common
  18
+      control with that entity. For the purposes of this definition,
  19
+      "control" means (i) the power, direct or indirect, to cause the
  20
+      direction or management of such entity, whether by contract or
  21
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
  22
+      outstanding shares, or (iii) beneficial ownership of such entity.
  23
+
  24
+      "You" (or "Your") shall mean an individual or Legal Entity
  25
+      exercising permissions granted by this License.
  26
+
  27
+      "Source" form shall mean the preferred form for making modifications,
  28
+      including but not limited to software source code, documentation
  29
+      source, and configuration files.
  30
+
  31
+      "Object" form shall mean any form resulting from mechanical
  32
+      transformation or translation of a Source form, including but
  33
+      not limited to compiled object code, generated documentation,
  34
+      and conversions to other media types.
  35
+
  36
+      "Work" shall mean the work of authorship, whether in Source or
  37
+      Object form, made available under the License, as indicated by a
  38
+      copyright notice that is included in or attached to the work
  39
+      (an example is provided in the Appendix below).
  40
+
  41
+      "Derivative Works" shall mean any work, whether in Source or Object
  42
+      form, that is based on (or derived from) the Work and for which the
  43
+      editorial revisions, annotations, elaborations, or other modifications
  44
+      represent, as a whole, an original work of authorship. For the purposes
  45
+      of this License, Derivative Works shall not include works that remain
  46
+      separable from, or merely link (or bind by name) to the interfaces of,
  47
+      the Work and Derivative Works thereof.
  48
+
  49
+      "Contribution" shall mean any work of authorship, including
  50
+      the original version of the Work and any modifications or additions
  51
+      to that Work or Derivative Works thereof, that is intentionally
  52
+      submitted to Licensor for inclusion in the Work by the copyright owner
  53
+      or by an individual or Legal Entity authorized to submit on behalf of
  54
+      the copyright owner. For the purposes of this definition, "submitted"
  55
+      means any form of electronic, verbal, or written communication sent
  56
+      to the Licensor or its representatives, including but not limited to
  57
+      communication on electronic mailing lists, source code control systems,
  58
+      and issue tracking systems that are managed by, or on behalf of, the
  59
+      Licensor for the purpose of discussing and improving the Work, but
  60
+      excluding communication that is conspicuously marked or otherwise
  61
+      designated in writing by the copyright owner as "Not a Contribution."
  62
+
  63
+      "Contributor" shall mean Licensor and any individual or Legal Entity
  64
+      on behalf of whom a Contribution has been received by Licensor and
  65
+      subsequently incorporated within the Work.
  66
+
  67
+   2. Grant of Copyright License. Subject to the terms and conditions of
  68
+      this License, each Contributor hereby grants to You a perpetual,
  69
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  70
+      copyright license to reproduce, prepare Derivative Works of,
  71
+      publicly display, publicly perform, sublicense, and distribute the
  72
+      Work and such Derivative Works in Source or Object form.
  73
+
  74
+   3. Grant of Patent License. Subject to the terms and conditions of
  75
+      this License, each Contributor hereby grants to You a perpetual,
  76
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  77
+      (except as stated in this section) patent license to make, have made,
  78
+      use, offer to sell, sell, import, and otherwise transfer the Work,
  79
+      where such license applies only to those patent claims licensable
  80
+      by such Contributor that are necessarily infringed by their
  81
+      Contribution(s) alone or by combination of their Contribution(s)
  82
+      with the Work to which such Contribution(s) was submitted. If You
  83
+      institute patent litigation against any entity (including a
  84
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
  85
+      or a Contribution incorporated within the Work constitutes direct
  86
+      or contributory patent infringement, then any patent licenses
  87
+      granted to You under this License for that Work shall terminate
  88
+      as of the date such litigation is filed.
  89
+
  90
+   4. Redistribution. You may reproduce and distribute copies of the
  91
+      Work or Derivative Works thereof in any medium, with or without
  92
+      modifications, and in Source or Object form, provided that You
  93
+      meet the following conditions:
  94
+
  95
+      (a) You must give any other recipients of the Work or
  96
+          Derivative Works a copy of this License; and
  97
+
  98
+      (b) You must cause any modified files to carry prominent notices
  99
+          stating that You changed the files; and
  100
+
  101
+      (c) You must retain, in the Source form of any Derivative Works
  102
+          that You distribute, all copyright, patent, trademark, and
  103
+          attribution notices from the Source form of the Work,
  104
+          excluding those notices that do not pertain to any part of
  105
+          the Derivative Works; and
  106
+
  107
+      (d) If the Work includes a "NOTICE" text file as part of its
  108
+          distribution, then any Derivative Works that You distribute must
  109
+          include a readable copy of the attribution notices contained
  110
+          within such NOTICE file, excluding those notices that do not
  111
+          pertain to any part of the Derivative Works, in at least one
  112
+          of the following places: within a NOTICE text file distributed
  113
+          as part of the Derivative Works; within the Source form or
  114
+          documentation, if provided along with the Derivative Works; or,
  115
+          within a display generated by the Derivative Works, if and
  116
+          wherever such third-party notices normally appear. The contents
  117
+          of the NOTICE file are for informational purposes only and
  118
+          do not modify the License. You may add Your own attribution
  119
+          notices within Derivative Works that You distribute, alongside
  120
+          or as an addendum to the NOTICE text from the Work, provided
  121
+          that such additional attribution notices cannot be construed
  122
+          as modifying the License.
  123
+
  124
+      You may add Your own copyright statement to Your modifications and
  125
+      may provide additional or different license terms and conditions
  126
+      for use, reproduction, or distribution of Your modifications, or
  127
+      for any such Derivative Works as a whole, provided Your use,
  128
+      reproduction, and distribution of the Work otherwise complies with
  129
+      the conditions stated in this License.
  130
+
  131
+   5. Submission of Contributions. Unless You explicitly state otherwise,
  132
+      any Contribution intentionally submitted for inclusion in the Work
  133
+      by You to the Licensor shall be under the terms and conditions of
  134
+      this License, without any additional terms or conditions.
  135
+      Notwithstanding the above, nothing herein shall supersede or modify
  136
+      the terms of any separate license agreement you may have executed
  137
+      with Licensor regarding such Contributions.
  138
+
  139
+   6. Trademarks. This License does not grant permission to use the trade
  140
+      names, trademarks, service marks, or product names of the Licensor,
  141
+      except as required for reasonable and customary use in describing the
  142
+      origin of the Work and reproducing the content of the NOTICE file.
  143
+
  144
+   7. Disclaimer of Warranty. Unless required by applicable law or
  145
+      agreed to in writing, Licensor provides the Work (and each
  146
+      Contributor provides its Contributions) on an "AS IS" BASIS,
  147
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  148
+      implied, including, without limitation, any warranties or conditions
  149
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
  150
+      PARTICULAR PURPOSE. You are solely responsible for determining the
  151
+      appropriateness of using or redistributing the Work and assume any
  152
+      risks associated with Your exercise of permissions under this License.
  153
+
  154
+   8. Limitation of Liability. In no event and under no legal theory,
  155
+      whether in tort (including negligence), contract, or otherwise,
  156
+      unless required by applicable law (such as deliberate and grossly
  157
+      negligent acts) or agreed to in writing, shall any Contributor be
  158
+      liable to You for damages, including any direct, indirect, special,
  159
+      incidental, or consequential damages of any character arising as a
  160
+      result of this License or out of the use or inability to use the
  161
+      Work (including but not limited to damages for loss of goodwill,
  162
+      work stoppage, computer failure or malfunction, or any and all
  163
+      other commercial damages or losses), even if such Contributor
  164
+      has been advised of the possibility of such damages.
  165
+
  166
+   9. Accepting Warranty or Additional Liability. While redistributing
  167
+      the Work or Derivative Works thereof, You may choose to offer,
  168
+      and charge a fee for, acceptance of support, warranty, indemnity,
  169
+      or other liability obligations and/or rights consistent with this
  170
+      License. However, in accepting such obligations, You may act only
  171
+      on Your own behalf and on Your sole responsibility, not on behalf
  172
+      of any other Contributor, and only if You agree to indemnify,
  173
+      defend, and hold each Contributor harmless for any liability
  174
+      incurred by, or claims asserted against, such Contributor by reason
  175
+      of your accepting any such warranty or additional liability.
  176
+
  177
+Twitter4J SUBCOMPONENTS:
  178
+
  179
+Twitter4J includes software from JSON.org to parse JSON response from the Twitter API. You can see the license term at http://www.JSON.org/license.html
40  twitter4j-core/src/main/java/twitter4j/AbstractStreamImplementation.java
... ...
@@ -1,29 +1,19 @@
1 1
 /*
2  
-Copyright (c) 2007-2011, Yusuke Yamamoto
3  
-All rights reserved.
4  
-
5  
-Redistribution and use in source and binary forms, with or without
6  
-modification, are permitted provided that the following conditions are met:
7  
-    * Redistributions of source code must retain the above copyright
8  
-      notice, this list of conditions and the following disclaimer.
9  
-    * Redistributions in binary form must reproduce the above copyright
10  
-      notice, this list of conditions and the following disclaimer in the
11  
-      documentation and/or other materials provided with the distribution.
12  
-    * Neither the name of the Yusuke Yamamoto nor the
13  
-      names of its contributors may be used to endorse or promote products
14  
-      derived from this software without specific prior written permission.
15  
-
16  
-THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
17  
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  
-DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
20  
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  
-*/
  2
+ * Copyright 2007 Yusuke Yamamoto
  3
+ *
  4
+ * Licensed under the Apache License, Version 2.0 (the "License");
  5
+ * you may not use this file except in compliance with the License.
  6
+ * You may obtain a copy of the License at
  7
+ *
  8
+ *      http://www.apache.org/licenses/LICENSE-2.0
  9
+ *
  10
+ * Unless required by applicable law or agreed to in writing, software
  11
+ * distributed under the License is distributed on an "AS IS" BASIS,
  12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+ * See the License for the specific language governing permissions and
  14
+ * limitations under the License.
  15
+ */
  16
+
27 17
 package twitter4j;
28 18
 
29 19
 import twitter4j.conf.Configuration;
48  twitter4j-core/src/main/java/twitter4j/AccountSettings.java
... ...
@@ -1,59 +1,57 @@
1 1
 /*
2  
-Copyright (c) 2007-2011, Yusuke Yamamoto
3  
-All rights reserved.
4  
-
5  
-Redistribution and use in source and binary forms, with or without
6  
-modification, are permitted provided that the following conditions are met:
7  
-    * Redistributions of source code must retain the above copyright
8  
-      notice, this list of conditions and the following disclaimer.
9  
-    * Redistributions in binary form must reproduce the above copyright
10  
-      notice, this list of conditions and the following disclaimer in the
11  
-      documentation and/or other materials provided with the distribution.
12  
-    * Neither the name of the Yusuke Yamamoto nor the
13  
-      names of its contributors may be used to endorse or promote products
14  
-      derived from this software without specific prior written permission.
  2
+ * Copyright 2007 Yusuke Yamamoto
  3
+ *
  4
+ * Licensed under the Apache License, Version 2.0 (the "License");
  5
+ * you may not use this file except in compliance with the License.
  6
+ * You may obtain a copy of the License at
  7
+ *
  8
+ *      http://www.apache.org/licenses/LICENSE-2.0
  9
+ *
  10
+ * Unless required by applicable law or agreed to in writing, software
  11
+ * distributed under the License is distributed on an "AS IS" BASIS,
  12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+ * See the License for the specific language governing permissions and
  14
+ * limitations under the License.
  15
+ */
15 16
 
16  
-THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
17  
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  
-DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
20  
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  
-*/
27 17
 package twitter4j;
28 18
 
29 19
 /**
30 20
  * @author Yusuke Yamamoto - yusuke at mac.com
31 21
  * @since Twitter4J 2.1.9
32 22
  */
33  
-public interface AccountSettings  extends TwitterResponse, java.io.Serializable {
  23
+public interface AccountSettings extends TwitterResponse, java.io.Serializable {
34 24
     /**
35 25
      * Returns true if the user enabled sleep time.
  26
+     *
36 27
      * @return true if the user enabled sleep time
37 28
      */
38 29
     boolean isSleepTimeEnabled();
39 30
 
40 31
     /**
41 32
      * Returns sleep start time.
  33
+     *
42 34
      * @return sleep start time
43 35
      */
44 36
     String getSleepStartTime();
  37
+
45 38
     /**
46 39
      * Returns sleep end time.
  40
+     *
47 41
      * @return sleep end time
48 42
      */
49 43
     String getSleepEndTime();
  44
+
50 45
     /**
51 46
      * Return the user's trend locations
  47
+     *
52 48
      * @return the user's trend locations
53 49
      */
54 50
     Location[] getTrendLocations();
  51
+
55 52
     /**
56 53
      * Return true if the user is enabling geo location
  54
+     *
57 55
      * @return true if the user is enabling geo location
58 56
      */
59 57
     boolean isGeoEnabled();
40  twitter4j-core/src/main/java/twitter4j/AccountSettingsJSONImpl.java
... ...
@@ -1,29 +1,19 @@
1 1
 /*
2  
-Copyright (c) 2007-2011, Yusuke Yamamoto
3  
-All rights reserved.
4  
-
5  
-Redistribution and use in source and binary forms, with or without
6  
-modification, are permitted provided that the following conditions are met:
7  
-    * Redistributions of source code must retain the above copyright
8  
-      notice, this list of conditions and the following disclaimer.
9  
-    * Redistributions in binary form must reproduce the above copyright
10  
-      notice, this list of conditions and the following disclaimer in the
11  
-      documentation and/or other materials provided with the distribution.
12  
-    * Neither the name of the Yusuke Yamamoto nor the
13  
-      names of its contributors may be used to endorse or promote products
14  
-      derived from this software without specific prior written permission.
  2
+ * Copyright 2007 Yusuke Yamamoto
  3
+ *
  4
+ * Licensed under the Apache License, Version 2.0 (the "License");
  5
+ * you may not use this file except in compliance with the License.
  6
+ * You may obtain a copy of the License at
  7
+ *
  8
+ *      http://www.apache.org/licenses/LICENSE-2.0
  9
+ *
  10
+ * Unless required by applicable law or agreed to in writing, software
  11
+ * distributed under the License is distributed on an "AS IS" BASIS,
  12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+ * See the License for the specific language governing permissions and
  14
+ * limitations under the License.
  15
+ */
15 16
 
16  
-THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
17  
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  
-DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
20  
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  
-*/
27 17
 package twitter4j;
28 18
 
29 19
 import twitter4j.internal.http.HttpResponse;
@@ -58,7 +48,7 @@ private AccountSettingsJSONImpl(HttpResponse res, JSONObject json) throws Twitte
58 48
             } else {
59 49
                 JSONArray locations = json.getJSONArray("trend_location");
60 50
                 TREND_LOCATION = new Location[locations.length()];
61  
-                for(int i=0;i<locations.length();i++){
  51
+                for (int i = 0; i < locations.length(); i++) {
62 52
                     TREND_LOCATION[i] = new LocationJSONImpl(locations.getJSONObject(i));
63 53
                 }
64 54
             }
40  twitter4j-core/src/main/java/twitter4j/AccountTotals.java
... ...
@@ -1,33 +1,21 @@
1 1
 /*
2  
-Copyright (c) 2007-2011, Yusuke Yamamoto
3  
-All rights reserved.
4  
-
5  
-Redistribution and use in source and binary forms, with or without
6  
-modification, are permitted provided that the following conditions are met:
7  
-    * Redistributions of source code must retain the above copyright
8  
-      notice, this list of conditions and the following disclaimer.
9  
-    * Redistributions in binary form must reproduce the above copyright
10  
-      notice, this list of conditions and the following disclaimer in the
11  
-      documentation and/or other materials provided with the distribution.
12  
-    * Neither the name of the Yusuke Yamamoto nor the
13  
-      names of its contributors may be used to endorse or promote products
14  
-      derived from this software without specific prior written permission.
  2
+ * Copyright 2007 Yusuke Yamamoto
  3
+ *
  4
+ * Licensed under the Apache License, Version 2.0 (the "License");
  5
+ * you may not use this file except in compliance with the License.
  6
+ * You may obtain a copy of the License at
  7
+ *
  8
+ *      http://www.apache.org/licenses/LICENSE-2.0
  9
+ *
  10
+ * Unless required by applicable law or agreed to in writing, software
  11
+ * distributed under the License is distributed on an "AS IS" BASIS,
  12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+ * See the License for the specific language governing permissions and
  14
+ * limitations under the License.
  15
+ */
15 16
 
16  
-THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
17  
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  
-DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
20  
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  
-*/
27 17
 package twitter4j;
28 18
 
29  
-import twitter4j.internal.logging.Logger;
30  
-
31 19
 /**
32 20
  * @author Yusuke Yamamoto - yusuke at mac.com
33 21
  * @since Twitter4J 2.1.9
41  twitter4j-core/src/main/java/twitter4j/AccountTotalsJSONImpl.java
... ...
@@ -1,29 +1,19 @@
1 1
 /*
2  
-Copyright (c) 2007-2011, Yusuke Yamamoto
3  
-All rights reserved.
4  
-
5  
-Redistribution and use in source and binary forms, with or without
6  
-modification, are permitted provided that the following conditions are met:
7  
-    * Redistributions of source code must retain the above copyright
8  
-      notice, this list of conditions and the following disclaimer.
9  
-    * Redistributions in binary form must reproduce the above copyright
10  
-      notice, this list of conditions and the following disclaimer in the
11  
-      documentation and/or other materials provided with the distribution.
12  
-    * Neither the name of the Yusuke Yamamoto nor the
13  
-      names of its contributors may be used to endorse or promote products
14  
-      derived from this software without specific prior written permission.
15  
-
16  
-THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
17  
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  
-DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
20  
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  
-*/
  2
+ * Copyright 2007 Yusuke Yamamoto
  3
+ *
  4
+ * Licensed under the Apache License, Version 2.0 (the "License");
  5
+ * you may not use this file except in compliance with the License.
  6
+ * You may obtain a copy of the License at
  7
+ *
  8
+ *      http://www.apache.org/licenses/LICENSE-2.0
  9
+ *
  10
+ * Unless required by applicable law or agreed to in writing, software
  11
+ * distributed under the License is distributed on an "AS IS" BASIS,
  12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+ * See the License for the specific language governing permissions and
  14
+ * limitations under the License.
  15
+ */
  16
+
27 17
 package twitter4j;
28 18
 
29 19
 import twitter4j.internal.http.HttpResponse;
@@ -43,6 +33,7 @@
43 33
     private final int followers;
44 34
     private final int favorites;
45 35
     private final int friends;
  36
+
46 37
     private AccountTotalsJSONImpl(HttpResponse res, JSONObject json) {
47 38
         super(res);
48 39
         updates = getInt("updates", json);
389  twitter4j-core/src/main/java/twitter4j/Annotation.java
... ...
@@ -1,265 +1,266 @@
1 1
 /*
2  
-Copyright (c) 2007-2011, Yusuke Yamamoto
3  
-All rights reserved.
4  
-
5  
-Redistribution and use in source and binary forms, with or without
6  
-modification, are permitted provided that the following conditions are met:
7  
-    * Redistributions of source code must retain the above copyright
8  
-      notice, this list of conditions and the following disclaimer.
9  
-    * Redistributions in binary form must reproduce the above copyright
10  
-      notice, this list of conditions and the following disclaimer in the
11  
-      documentation and/or other materials provided with the distribution.
12  
-    * Neither the name of the Yusuke Yamamoto nor the
13  
-      names of its contributors may be used to endorse or promote products
14  
-      derived from this software without specific prior written permission.
  2
+ * Copyright 2007 Yusuke Yamamoto
  3
+ *
  4
+ * Licensed under the Apache License, Version 2.0 (the "License");
  5
+ * you may not use this file except in compliance with the License.
  6
+ * You may obtain a copy of the License at
  7
+ *
  8
+ *      http://www.apache.org/licenses/LICENSE-2.0
  9
+ *
  10
+ * Unless required by applicable law or agreed to in writing, software
  11
+ * distributed under the License is distributed on an "AS IS" BASIS,
  12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+ * See the License for the specific language governing permissions and
  14
+ * limitations under the License.
  15
+ */
15 16
 
16  
-THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
17  
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  
-DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
20  
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  
-*/
27 17
 package twitter4j;
28 18
 
  19
+import twitter4j.internal.org.json.JSONException;
  20
+import twitter4j.internal.org.json.JSONObject;
  21
+
29 22
 import java.util.Iterator;
30 23
 import java.util.LinkedHashMap;
31 24
 import java.util.Map;
32 25
 import java.util.SortedSet;
33 26
 import java.util.TreeSet;
34 27
 
35  
-import twitter4j.internal.org.json.JSONException;
36  
-import twitter4j.internal.org.json.JSONObject;
37  
-
38 28
 /**
39 29
  * A data class representing an Annotation of a Status or a Tweet
40 30
  *
41 31
  * @author Roy Reshef - royreshef at gmail.com
42  
- * @since Twitter4J 2.1.4
43 32
  * @see <a href="http://dev.twitter.com/pages/annotations_overview">Annotations Overview | dev.twitter.com</a>
  33
+ * @since Twitter4J 2.1.4
44 34
  */
45 35
 public class Annotation implements Comparable<Annotation>, java.io.Serializable {
46  
-	private static final long serialVersionUID = -6515375141284988754L;
47  
-	private String type = null;
48  
-	private Map<String, String> attributes = null;
49  
-	
50  
-	/**
51  
-	 * Construct an Annotation with a type but no attributes
52  
-	 * @param type - the type
53  
-	 */
54  
-	public Annotation(String type) {
55  
-		setType(type);
56  
-		setAttributes(null);
57  
-	}
58  
-	
59  
-	/**
60  
-	 * Construct an Annotation with a type and attributes
61  
-	 * @param type
62  
-	 * @param attributes
63  
-	 */
64  
-	public Annotation(String type, Map<String, String> attributes) {
65  
-		setType(type);
66  
-		setAttributes(attributes);
67  
-	}
68  
-	
69  
-	/**
  36
+    private static final long serialVersionUID = -6515375141284988754L;
  37
+    private String type = null;
  38
+    private Map<String, String> attributes = null;
  39
+
  40
+    /**
  41
+     * Construct an Annotation with a type but no attributes
  42
+     *
  43
+     * @param type - the type
  44
+     */
  45
+    public Annotation(String type) {
  46
+        setType(type);
  47
+        setAttributes(null);
  48
+    }
  49
+
  50
+    /**
  51
+     * Construct an Annotation with a type and attributes
  52
+     *
  53
+     * @param type
  54
+     * @param attributes
  55
+     */
  56
+    public Annotation(String type, Map<String, String> attributes) {
  57
+        setType(type);
  58
+        setAttributes(attributes);
  59
+    }
  60
+
  61
+    /**
70 62
      * Construct an Annotation instance from a JSON Object, returned from Twitter API
71 63
      * Package visibility only!
72  
-	 * @param jsonObject - the JSON Object
73  
-	 */
74  
-	Annotation(JSONObject jsonObject) {
75  
-		String typ = null;
76  
-		Map<String, String> attrs = null;
77  
-		Iterator it = jsonObject.keys();
78  
-		if (it.hasNext()) {
79  
-			typ = (String)it.next();
80  
-			// we expect only one key - the type; if there are more it's a malformed JSON object
81  
-			if (it.hasNext()) {
82  
-				type = null;
83  
-			} else {
84  
-				try {
85  
-					JSONObject jo = jsonObject.getJSONObject(typ);
86  
-					attrs = new LinkedHashMap<String, String>();
87  
-					it = jo.keys();
88  
-					while (it.hasNext()) {
89  
-						String key = (String)it.next();
90  
-						String value = jo.getString(key);
91  
-						attrs.put(key, value);
92  
-					}					
93  
-				} catch (JSONException jsone) {
94  
-					// clear all
95  
-					typ = null;
96  
-					attrs = null;
97  
-				}
98  
-			}
99  
-		}
100  
-		setType(typ);
101  
-		setAttributes(attrs);
102  
-	}
  64
+     *
  65
+     * @param jsonObject - the JSON Object
  66
+     */
  67
+    Annotation(JSONObject jsonObject) {
  68
+        String typ = null;
  69
+        Map<String, String> attrs = null;
  70
+        Iterator it = jsonObject.keys();
  71
+        if (it.hasNext()) {
  72
+            typ = (String) it.next();
  73
+            // we expect only one key - the type; if there are more it's a malformed JSON object
  74
+            if (it.hasNext()) {
  75
+                type = null;
  76
+            } else {
  77
+                try {
  78
+                    JSONObject jo = jsonObject.getJSONObject(typ);
  79
+                    attrs = new LinkedHashMap<String, String>();
  80
+                    it = jo.keys();
  81
+                    while (it.hasNext()) {
  82
+                        String key = (String) it.next();
  83
+                        String value = jo.getString(key);
  84
+                        attrs.put(key, value);
  85
+                    }
  86
+                } catch (JSONException jsone) {
  87
+                    // clear all
  88
+                    typ = null;
  89
+                    attrs = null;
  90
+                }
  91
+            }
  92
+        }
  93
+        setType(typ);
  94
+        setAttributes(attrs);
  95
+    }
103 96
 
104 97
     /**
105 98
      * @return the type
106 99
      */
107 100
     public String getType() {
108  
-    	return type;
  101
+        return type;
109 102
     }
110  
-    
  103
+
111 104
     /**
112 105
      * Sets the type
113 106
      * Ensures the class's property is not null
  107
+     *
114 108
      * @param type - the type
115 109
      */
116 110
     public void setType(String type) {
117  
-    	this.type = (type == null) ? "" : type;
  111
+        this.type = (type == null) ? "" : type;
118 112
     }
119  
-    
  113
+
120 114
     /**
121 115
      * Sets the type
122 116
      * Ensures the class's property is not null
  117
+     *
123 118
      * @param type - the type
124 119
      * @return this (for coding convenience)
125 120
      */
126 121
     public Annotation type(String type) {
127  
-    	setType(type);
128  
-    	return this;
  122
+        setType(type);
  123
+        return this;
129 124
     }
130 125
 
131 126
     /**
132 127
      * @return the attributes
133 128
      */
134 129
     public Map<String, String> getAttributes() {
135  
-    	return attributes;
  130
+        return attributes;
136 131
     }
137  
-    
  132
+
138 133
     /**
139 134
      * Sets the attributes
140 135
      * Ensures the class's property is not null
  136
+     *
141 137
      * @param attributes - the attributes
142 138
      */
143 139
     public void setAttributes(Map<String, String> attributes) {
144  
-    	this.attributes = (attributes == null) ? 
145  
-    		new LinkedHashMap<String, String>() : attributes;
146  
-	}
  140
+        this.attributes = (attributes == null) ?
  141
+                new LinkedHashMap<String, String>() : attributes;
  142
+    }
147 143
 
148 144
     /**
149 145
      * Sets the attributes
150 146
      * Ensures the class's property is not null
  147
+     *
151 148
      * @param attributes - the attributes
152 149
      * @return this (for coding convenience)
153 150
      */
154 151
     public Annotation attributes(Map<String, String> attributes) {
155  
-		setAttributes(attributes);
156  
-		return this;
157  
-	}
158  
-    
  152
+        setAttributes(attributes);
  153
+        return this;
  154
+    }
  155
+
159 156
     /**
160 157
      * Adds a single attribute
161  
-     * @param name - the attribute name
  158
+     *
  159
+     * @param name  - the attribute name
162 160
      * @param value - the attribute value
163 161
      */
164 162
     public void addAttribute(String name, String value) {
165  
-    	this.attributes.put(name, value);
  163
+        this.attributes.put(name, value);
166 164
     }
167  
-    
  165
+
168 166
     /**
169 167
      * Adds a single attribute
170  
-     * @param name - the attribute name
  168
+     *
  169
+     * @param name  - the attribute name
171 170
      * @param value - the attribute value
172 171
      * @return this (for coding convenience)
173 172
      */
174 173
     public Annotation attribute(String name, String value) {
175  
-    	addAttribute(name, value);
176  
-    	return this;
  174
+        addAttribute(name, value);
  175
+        return this;
  176
+    }
  177
+
  178
+    /**
  179
+     * @return true if the attributes are empty, false otherwise
  180
+     */
  181
+    public boolean isEmpty() {
  182
+        return attributes.isEmpty();
177 183
     }
178  
-    
179  
-	/**
180  
-	 * @return true if the attributes are empty, false otherwise
181  
-	 */
182  
-	public boolean isEmpty() {
183  
-		return attributes.isEmpty();
184  
-	}
185 184
 
186  
-	/**
187  
-	 * @return true the number of attributes
188  
-	 */
  185
+    /**
  186
+     * @return true the number of attributes
  187
+     */
189 188
     public Integer size() {
190  
-    	return attributes.size();
  189
+        return attributes.size();
191 190
     }
192  
-    
193  
-	/**
194  
-	 * Package visibility only!
195  
-	 * @return the JSON String representation of this
196  
-	 */
197  
-	String asParameterValue() {
198  
-    	return asJSONObject().toString();	
  191
+
  192
+    /**
  193
+     * Package visibility only!
  194
+     *
  195
+     * @return the JSON String representation of this
  196
+     */
  197
+    String asParameterValue() {
  198
+        return asJSONObject().toString();
199 199
     }
200  
-	
201  
-	/**
202  
-	 * Package visibility only!
203  
-	 * Converts this to a JSON object according to Twitter's specification
204  
-	 * @return the JSON Object
205  
-	 */
206  
-	JSONObject asJSONObject() {
207  
-		JSONObject jsonObject = new JSONObject();
208  
-		try {
209  
-			jsonObject.put(type, attributes);
210  
-		} catch (JSONException ignore) {
211  
-		}
212  
-		return jsonObject;	
213  
-	}
214  
-    
215  
-	/* (non-Javadoc)
216  
-	 * @see java.lang.Comparable#compareTo(java.lang.Object)
217  
-	 */
218  
-	public int compareTo(Annotation other) {
219  
-		// Precedence of order:
220  
-		// 1. Type
221  
-		// 2. Number of attributes
222  
-		// 3. Sorted attributes - For each attribute: name, then value
  200
+
  201
+    /**
  202
+     * Package visibility only!
  203
+     * Converts this to a JSON object according to Twitter's specification
  204
+     *
  205
+     * @return the JSON Object
  206
+     */
  207
+    JSONObject asJSONObject() {
  208
+        JSONObject jsonObject = new JSONObject();
  209
+        try {
  210
+            jsonObject.put(type, attributes);
  211
+        } catch (JSONException ignore) {
  212
+        }
  213
+        return jsonObject;
  214
+    }
  215
+
  216
+    /* (non-Javadoc)
  217
+      * @see java.lang.Comparable#compareTo(java.lang.Object)
  218
+      */
  219
+    public int compareTo(Annotation other) {
  220
+        // Precedence of order:
  221
+        // 1. Type
  222
+        // 2. Number of attributes
  223
+        // 3. Sorted attributes - For each attribute: name, then value
223 224
         if (null == other) {
224 225
             return 1;
225 226
         }
226 227
         if (this == other) {
227 228
             return 0;
228 229
         }
229  
-		int result = this.getType().compareTo(other.getType());
230  
-		if (result != 0) {
231  
-			return result;
232  
-		}
233  
-		result = this.size().compareTo(other.size());
234  
-		if (result != 0) {
235  
-			return result;
236  
-		}
237  
-		
238  
-		Iterator<String> thisNamesIt = this.sortedNames().iterator();
239  
-		Iterator<String> otherNamesIt = other.sortedNames().iterator();
240  
-		
241  
-		while (thisNamesIt.hasNext()) {
242  
-			String thisName = thisNamesIt.next();
243  
-			String otherName = otherNamesIt.next();
244  
-			result = thisName.compareTo(otherName);
245  
-			if (result != 0) {
246  
-				return result;
247  
-			}
248  
-			String thisValue = this.getAttributes().get(thisName);
249  
-			String otherValue = other.getAttributes().get(otherName);
250  
-			result = thisValue.compareTo(otherValue);
251  
-			if (result != 0) {
252  
-				return result;
253  
-			}			
254  
-		}
255  
-		return 0;
256  
-	}
  230
+        int result = this.getType().compareTo(other.getType());
  231
+        if (result != 0) {
  232
+            return result;
  233
+        }
  234
+        result = this.size().compareTo(other.size());
  235
+        if (result != 0) {
  236
+            return result;
  237
+        }
257 238
 
258  
-	/* (non-Javadoc)
259  
-	 * @see java.lang.Object#equals(java.lang.Object)
260  
-	 */
261  
-	@Override
262  
-	public boolean equals(Object obj) {
  239
+        Iterator<String> thisNamesIt = this.sortedNames().iterator();
  240
+        Iterator<String> otherNamesIt = other.sortedNames().iterator();
  241
+
  242
+        while (thisNamesIt.hasNext()) {
  243
+            String thisName = thisNamesIt.next();
  244
+            String otherName = otherNamesIt.next();
  245
+            result = thisName.compareTo(otherName);