]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/User.java
fix: Proper synchronization when retrieving the preferred name
[gigi.git] / src / org / cacert / gigi / dbObjects / User.java
index 9056a35b31d1529d8ec41e27f5093031e711854b..61f347a4e90b380e70802d9871641da1ead0161f 100644 (file)
@@ -257,6 +257,7 @@ public class User extends CertificateOwner {
      * 
      * @return the maximal points @
      */
+    @SuppressWarnings("unused")
     public int getMaxAssurePoints() {
         if ( !CalendarUtil.isOfAge(dob, ADULT_AGE) && POJAM_ENABLED) {
             return 10; // PoJAM
@@ -395,7 +396,7 @@ public class User extends CertificateOwner {
 
     }
 
-    public Name getPreferredName() {
+    public synchronized Name getPreferredName() {
         return preferredName;
     }