aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/component
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service/component')
-rw-r--r--src/main/java/com/juick/service/component/AccountVerificationEvent.java4
-rw-r--r--src/main/java/com/juick/service/component/MailVerificationEvent.java4
-rw-r--r--src/main/java/com/juick/service/component/PingEvent.java2
-rw-r--r--src/main/java/com/juick/service/component/UserUpdatedEvent.java2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/juick/service/component/AccountVerificationEvent.java b/src/main/java/com/juick/service/component/AccountVerificationEvent.java
index 9ab48015..89b2bfca 100644
--- a/src/main/java/com/juick/service/component/AccountVerificationEvent.java
+++ b/src/main/java/com/juick/service/component/AccountVerificationEvent.java
@@ -20,8 +20,8 @@ package com.juick.service.component;
import org.springframework.context.ApplicationEvent;
public class AccountVerificationEvent extends ApplicationEvent {
- private String email;
- private String code;
+ private final String email;
+ private final String code;
/**
* Create a new {@code ApplicationEvent}.
*
diff --git a/src/main/java/com/juick/service/component/MailVerificationEvent.java b/src/main/java/com/juick/service/component/MailVerificationEvent.java
index 5a6a95a7..0d992159 100644
--- a/src/main/java/com/juick/service/component/MailVerificationEvent.java
+++ b/src/main/java/com/juick/service/component/MailVerificationEvent.java
@@ -20,8 +20,8 @@ package com.juick.service.component;
import org.springframework.context.ApplicationEvent;
public class MailVerificationEvent extends ApplicationEvent {
- private String email;
- private String code;
+ private final String email;
+ private final String code;
/**
* Create a new {@code ApplicationEvent}.
*
diff --git a/src/main/java/com/juick/service/component/PingEvent.java b/src/main/java/com/juick/service/component/PingEvent.java
index 45a63dd7..1dad0c2f 100644
--- a/src/main/java/com/juick/service/component/PingEvent.java
+++ b/src/main/java/com/juick/service/component/PingEvent.java
@@ -21,7 +21,7 @@ import com.juick.model.User;
import org.springframework.context.ApplicationEvent;
public class PingEvent extends ApplicationEvent {
- private User pinger;
+ private final User pinger;
/**
* Create a new ApplicationEvent.
*
diff --git a/src/main/java/com/juick/service/component/UserUpdatedEvent.java b/src/main/java/com/juick/service/component/UserUpdatedEvent.java
index f22a5a43..d2b14468 100644
--- a/src/main/java/com/juick/service/component/UserUpdatedEvent.java
+++ b/src/main/java/com/juick/service/component/UserUpdatedEvent.java
@@ -22,7 +22,7 @@ import org.springframework.context.ApplicationEvent;
import org.springframework.lang.NonNull;
public class UserUpdatedEvent extends ApplicationEvent {
- private User user;
+ private final User user;
/**
* Generated when user is updated (avatar changed, etc).
*