From: Roland Häder Date: Thu, 30 Apr 2020 21:32:16 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e2fceb0ebfcc67efcebde3c92753b1b56b7f6ee9;p=jjobs-war.git Please cherry-pick: - renamed init() to initializeList() or better intiializeCache() ! - made some local variables final Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/features/JobsFeatureWebApplicationBean.java b/src/java/org/mxchange/jjobs/beans/features/JobsFeatureWebApplicationBean.java index 8b452dae..08bd4a19 100644 --- a/src/java/org/mxchange/jjobs/beans/features/JobsFeatureWebApplicationBean.java +++ b/src/java/org/mxchange/jjobs/beans/features/JobsFeatureWebApplicationBean.java @@ -47,7 +47,7 @@ public class JobsFeatureWebApplicationBean extends BaseJobsBean implements JobsF * Post-construction method */ @PostConstruct - public void init () { + public void initializeList () { } @Override diff --git a/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java b/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java index 2737bc22..ef60f127 100644 --- a/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java @@ -245,7 +245,7 @@ public class JobsLocalizationSessionBean extends BaseJobsBean implements JobsLoc * Initializer for this bean */ @PostConstruct - public void init () { + public void inititializeList () { // Get default locale final Locale defaultLocale = FacesContext.getCurrentInstance().getApplication().getDefaultLocale(); @@ -258,7 +258,7 @@ public class JobsLocalizationSessionBean extends BaseJobsBean implements JobsLoc // Add all locales while (iterator.hasNext()) { // Get next locale - Locale supportedLocale = iterator.next(); + final Locale supportedLocale = iterator.next(); // Add it this.getSupportedLocales().put(supportedLocale.toString(), supportedLocale); diff --git a/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebRequestBean.java index 16a96a1e..9d26e385 100644 --- a/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebRequestBean.java @@ -36,6 +36,8 @@ import org.mxchange.jusercore.events.user.delete.ObservableAdminDeletedUserEvent import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent; import org.mxchange.jusercore.events.user.locked.ObservableAdminLockedUserEvent; import org.mxchange.jusercore.events.user.unlocked.ObservableAdminUnlockedUserEvent; +import org.mxchange.jusercore.events.user.update.post.ObservableAdminPostUserDataUpdatedEvent; +import org.mxchange.jusercore.events.user.update.post.ObservablePostUserPersonalDataUpdatedEvent; import org.mxchange.jusercore.model.user.User; import org.mxchange.jusercore.model.user.activity.LogableUserActivity; import org.mxchange.jusercore.model.user.activity.UserActivityLog; @@ -47,8 +49,6 @@ import org.mxchange.juserlogincore.events.logout.ObservableUserLogoutEvent; import org.mxchange.juserlogincore.events.registration.ObservableUserRegisteredEvent; import org.mxchange.juserlogincore.events.resendlink.ObservableUserResendLinkAccountEvent; import org.mxchange.juserlogincore.events.user.password_change.ObservableUpdatedUserPasswordEvent; -import org.mxchange.jusercore.events.user.update.post.ObservableAdminPostUserDataUpdatedEvent; -import org.mxchange.jusercore.events.user.update.post.ObservablePostUserPersonalDataUpdatedEvent; /** * A controller (bean) for user activity log @@ -543,7 +543,7 @@ public class JobsUserActivityWebRequestBean extends BaseJobsBean implements Jobs * Post-constructor method */ @PostConstruct - public void init () { + public void initializeList () { // Put all in map, per-user for (final LogableUserActivity userActivity : this.userActivityBean.fetchAllUserActivityLog()) { // Is the list there?