diff --git a/src/main/java/cc/wdcy/domain/shared/security/WdcyUserDetails.java b/src/main/java/cc/wdcy/domain/shared/security/WdcyUserDetails.java
index d491dfe..f143a4e 100644
--- a/src/main/java/cc/wdcy/domain/shared/security/WdcyUserDetails.java
+++ b/src/main/java/cc/wdcy/domain/shared/security/WdcyUserDetails.java
@@ -26,6 +26,12 @@ public class WdcyUserDetails implements UserDetails {
this.user = user;
}
+ /**
+ * Note: please change the codes in this method , make it is much more available .
+ * Just for test of current implements.
+ *
+ * @return Collection of GrantedAuthority
+ */
@Override
public Collection extends GrantedAuthority> getAuthorities() {
return Arrays.asList(DEFAULT_USER_ROLE, new SimpleGrantedAuthority(ROLE_PREFIX + "UNITY"), new SimpleGrantedAuthority(ROLE_PREFIX + "MOBILE"));
diff --git a/src/main/java/cc/wdcy/infrastructure/DateUtils.java b/src/main/java/cc/wdcy/infrastructure/DateUtils.java
index d92355c..15c0cb7 100644
--- a/src/main/java/cc/wdcy/infrastructure/DateUtils.java
+++ b/src/main/java/cc/wdcy/infrastructure/DateUtils.java
@@ -8,6 +8,12 @@ import java.util.Date;
public abstract class DateUtils {
+ /**
+ * Private constructor
+ */
+ private DateUtils() {
+ }
+
public static Date now() {
return new Date();
}
diff --git a/src/main/java/cc/wdcy/infrastructure/PasswordHandler.java b/src/main/java/cc/wdcy/infrastructure/PasswordHandler.java
index 14ae796..b679e01 100644
--- a/src/main/java/cc/wdcy/infrastructure/PasswordHandler.java
+++ b/src/main/java/cc/wdcy/infrastructure/PasswordHandler.java
@@ -8,6 +8,12 @@ import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
public abstract class PasswordHandler {
+ /**
+ * Private constructor
+ */
+ private PasswordHandler() {
+ }
+
/**
* Encrypt password ,if original password is empty,
*
diff --git a/src/main/resources/cc/wdcy/infrastructure/mybatis/UserMapper.xml b/src/main/resources/cc/wdcy/infrastructure/mybatis/UserMapper.xml
index 6b9c480..cd3b47a 100644
--- a/src/main/resources/cc/wdcy/infrastructure/mybatis/UserMapper.xml
+++ b/src/main/resources/cc/wdcy/infrastructure/mybatis/UserMapper.xml
@@ -17,10 +17,6 @@
-
-
-
-