From e2fceb0ebfcc67efcebde3c92753b1b56b7f6ee9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 30 Apr 2020 23:32:16 +0200 Subject: [PATCH] Please cherry-pick: - renamed init() to initializeList() or better intiializeCache() ! - made some local variables final MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jjobs/beans/features/JobsFeatureWebApplicationBean.java | 2 +- .../beans/localization/JobsLocalizationSessionBean.java | 4 ++-- .../beans/user/activity/JobsUserActivityWebRequestBean.java | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) 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? -- 2.39.5