@@ -18,7 +18,7 @@ public class ScheduledTasks {
1818 @ Scheduled (initialDelay = TEN_SECONDS , fixedRate = FIXED_RATE_FOR_SCHEDULAR_FETCH_TWEETS )
1919 public void fetchTweetsFromTwitterSearch () {
2020 String msg = "fetch Tweets From TwitterSearch " ;
21- if (schedulerProperties .getAllowUpdateTweets () && !schedulerProperties .getSkipFortesting ()) {
21+ if (( schedulerProperties .getAllowUpdateTweets ()) && ( !schedulerProperties .getSkipFortesting () )) {
2222 Task task = asyncStartTask .fetchTweetsFromSearch ();
2323 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
2424 }
@@ -27,7 +27,7 @@ public void fetchTweetsFromTwitterSearch() {
2727 @ Scheduled (initialDelay = TEN_SECONDS *2 , fixedRate = FIXED_RATE_FOR_SCHEDULAR_FETCH_USER_LIST )
2828 public void fetchUsersFromDefinedUserList (){
2929 String msg = "fetch Users from Defined User List " ;
30- if (schedulerProperties .getFetchUserListAllow () && !schedulerProperties .getSkipFortesting ()) {
30+ if (( schedulerProperties .getFetchUserListAllow ()) && ( !schedulerProperties .getSkipFortesting () )) {
3131 Task task = asyncStartTask .fetchUsersFromList ();
3232 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
3333 }
@@ -36,7 +36,7 @@ public void fetchUsersFromDefinedUserList(){
3636 @ Scheduled (initialDelay = TEN_SECONDS *3 , fixedRate = FIXED_RATE_FOR_SCHEDULAR_FETCH_FOLLOWER )
3737 public void fetchFollower (){
3838 String msg = "fetch Follower " ;
39- if (schedulerProperties .getFetchFollowerAllow () && ! schedulerProperties .getSkipFortesting ()) {
39+ if (( schedulerProperties .getFetchFollowerAllow ()) && (! schedulerProperties .getSkipFortesting () )) {
4040 Task task = asyncStartTask .fetchFollower ();
4141 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
4242 }
@@ -45,7 +45,7 @@ public void fetchFollower(){
4545 @ Scheduled (initialDelay = TEN_SECONDS *4 , fixedRate = FIXED_RATE_FOR_SCHEDULAR_FETCH_FRIENDS )
4646 public void fetchFriends (){
4747 String msg = "fetch Friends " ;
48- if (schedulerProperties .getFetchFriendsAllow () && !schedulerProperties .getSkipFortesting ()) {
48+ if (( schedulerProperties .getFetchFriendsAllow ()) && ( !schedulerProperties .getSkipFortesting () )) {
4949 Task task = asyncStartTask .fetchFriends ();
5050 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
5151 }
@@ -54,7 +54,7 @@ public void fetchFriends(){
5454 @ Scheduled (initialDelay = TEN_SECONDS *5 , fixedRate = FIXED_RATE_FOR_SCHEDULAR_REMOVE_OLD_DATA_FROM_STORAGE )
5555 public void removeOldDataFromStorage (){
5656 String msg = "remove Old Data From Storage: " ;
57- if (schedulerProperties .getRemoveOldDataFromStorageAllow () && !schedulerProperties .getSkipFortesting ()) {
57+ if (( schedulerProperties .getRemoveOldDataFromStorageAllow ()) && ( !schedulerProperties .getSkipFortesting () )) {
5858 Task task = asyncStartTask .removeOldDataFromStorage ();
5959 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
6060 }
@@ -63,7 +63,7 @@ public void removeOldDataFromStorage(){
6363 @ Scheduled (initialDelay = TEN_SECONDS *6 , fixedRate = FIXED_RATE_FOR_SCHEDULAR_UPDATE_USER_BY_MENTION )
6464 public void updateUserProfilesFromMentions (){
6565 String msg = "update User Profiles From Mentions" ;
66- if (schedulerProperties .getAllowUpdateUserProfilesFromMention () && !schedulerProperties .getSkipFortesting ()) {
66+ if (( schedulerProperties .getAllowUpdateUserProfilesFromMention ()) && ( !schedulerProperties .getSkipFortesting () )) {
6767 Task task = asyncStartTask .updateUsersFromMentions ();
6868 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
6969 }
@@ -72,7 +72,7 @@ public void updateUserProfilesFromMentions(){
7272 @ Scheduled (initialDelay = TEN_SECONDS *7 , fixedRate = FIXED_RATE_FOR_SCHEDULAR_UPDATE_TWEETS )
7373 public void updateTweets () {
7474 String msg = "update Tweets " ;
75- if (schedulerProperties .getAllowUpdateTweets () && !schedulerProperties .getSkipFortesting ()){
75+ if (( schedulerProperties .getAllowUpdateTweets ()) && ( !schedulerProperties .getSkipFortesting () )){
7676 Task task = asyncStartTask .updateTweets ();
7777 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
7878 }
@@ -81,7 +81,7 @@ public void updateTweets() {
8181 @ Scheduled (initialDelay = TEN_SECONDS *8 , fixedRate = FIXED_RATE_FOR_SCHEDULAR_UPDATE_USER )
8282 public void updateUserProfiles () {
8383 String msg = "update User Profiles " ;
84- if (schedulerProperties .getAllowUpdateUserProfiles () && !schedulerProperties .getSkipFortesting ()) {
84+ if (( schedulerProperties .getAllowUpdateUserProfiles ()) && ( !schedulerProperties .getSkipFortesting () )) {
8585 Task task = asyncStartTask .updateUsers ();
8686 log .info (msg + "SCHEDULED: task " +task .getUniqueId ());
8787 }
0 commit comments