]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/Notary.java
Harden the AssuranceResult enum in Notary.
[gigi.git] / src / org / cacert / gigi / util / Notary.java
index 0577fbfcf7d9944dc7453604632eb3e0c3afedb3..515b25cd30a23601e77a04ea5e6499e47d1bf378 100644 (file)
@@ -58,7 +58,7 @@ public class Notary {
                                "Cannot assure myself."), ASSURANCE_SUCCEDED(""), ASSUREE_CHANGED(
                                "Person details changed. Please start over again."), POINTS_OUT_OF_RANGE(
                                "Points out of range.");
-               String message;
+               private final String message;
                private AssuranceResult(String message) {
                        this.message = message;
                }
@@ -78,7 +78,6 @@ public class Notary {
                if (!u.equals(target)) {
                        return AssuranceResult.ASSUREE_CHANGED;
                }
-               System.out.println("Would now assure.");
                if (awarded > assurer.getMaxAssurePoints() || awarded < 0) {
                        return AssuranceResult.POINTS_OUT_OF_RANGE;
                }