Permalink
Browse files

put @Override annotation where possible

  • Loading branch information...
1 parent b2bd69c commit 807fd09afca1defb5ea17da760aa0429ca100aec @yusuke committed Dec 4, 2012
@@ -67,6 +67,7 @@ public void onStallWarning(StallWarning warning) {
System.out.println("Got stall warning:" + warning);
}
+ @Override
public void onException(Exception ex) {
ex.printStackTrace();
}
@@ -55,6 +55,8 @@ public void onScrubGeo(long userId, long upToStatusId) {
public void onStallWarning(StallWarning warning) {
System.out.println("Got stall warning:" + warning);
}
+
+ @Override
public void onException(Exception ex) {
ex.printStackTrace();
}
@@ -75,6 +75,7 @@ public void onFriendList(long[] friendIds) {
System.out.println();
}
+ @Override
public void onFavorite(User source, User target, Status favoritedStatus) {
System.out.println("onFavorite source:@"
+ source.getScreenName() + " target:@"
@@ -83,6 +84,7 @@ public void onFavorite(User source, User target, Status favoritedStatus) {
+ favoritedStatus.getText());
}
+ @Override
public void onUnfavorite(User source, User target, Status unfavoritedStatus) {
System.out.println("onUnFavorite source:@"
+ source.getScreenName() + " target:@"
@@ -91,83 +93,90 @@ public void onUnfavorite(User source, User target, Status unfavoritedStatus) {
+ " - " + unfavoritedStatus.getText());
}
+ @Override
public void onFollow(User source, User followedUser) {
System.out.println("onFollow source:@"
+ source.getScreenName() + " target:@"
+ followedUser.getScreenName());
}
- public void onRetweet(User source, User target, Status retweetedStatus) {
- System.out.println("onRetweet @"
- + retweetedStatus.getUser().getScreenName() + " - "
- + retweetedStatus.getText());
- }
-
+ @Override
public void onDirectMessage(DirectMessage directMessage) {
System.out.println("onDirectMessage text:"
+ directMessage.getText());
}
+ @Override
public void onUserListMemberAddition(User addedMember, User listOwner, UserList list) {
System.out.println("onUserListMemberAddition added member:@"
+ addedMember.getScreenName()
+ " listOwner:@" + listOwner.getScreenName()
+ " list:" + list.getName());
}
+ @Override
public void onUserListMemberDeletion(User deletedMember, User listOwner, UserList list) {
System.out.println("onUserListMemberDeleted deleted member:@"
+ deletedMember.getScreenName()
+ " listOwner:@" + listOwner.getScreenName()
+ " list:" + list.getName());
}
+ @Override
public void onUserListSubscription(User subscriber, User listOwner, UserList list) {
System.out.println("onUserListSubscribed subscriber:@"
+ subscriber.getScreenName()
+ " listOwner:@" + listOwner.getScreenName()
+ " list:" + list.getName());
}
+ @Override
public void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {
System.out.println("onUserListUnsubscribed subscriber:@"
+ subscriber.getScreenName()
+ " listOwner:@" + listOwner.getScreenName()
+ " list:" + list.getName());
}
+ @Override
public void onUserListCreation(User listOwner, UserList list) {
System.out.println("onUserListCreated listOwner:@"
+ listOwner.getScreenName()
+ " list:" + list.getName());
}
+ @Override
public void onUserListUpdate(User listOwner, UserList list) {
System.out.println("onUserListUpdated listOwner:@"
+ listOwner.getScreenName()
+ " list:" + list.getName());
}
+ @Override
public void onUserListDeletion(User listOwner, UserList list) {
System.out.println("onUserListDestroyed listOwner:@"
+ listOwner.getScreenName()
+ " list:" + list.getName());
}
+ @Override
public void onUserProfileUpdate(User updatedUser) {
System.out.println("onUserProfileUpdated user:@" + updatedUser.getScreenName());
}
+ @Override
public void onBlock(User source, User blockedUser) {
System.out.println("onBlock source:@" + source.getScreenName()
+ " target:@" + blockedUser.getScreenName());
}
+ @Override
public void onUnblock(User source, User unblockedUser) {
System.out.println("onUnblock source:@" + source.getScreenName()
+ " target:@" + unblockedUser.getScreenName());
}
+ @Override
public void onException(Exception ex) {
ex.printStackTrace();
System.out.println("onException:" + ex.getMessage());

0 comments on commit 807fd09

Please sign in to comment.