1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 15:21:46 +00:00

Mark enum field on CreditType as final

Enums should be immutable, so all fields on them should be final.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=142025872
This commit is contained in:
mcilwain
2016-12-14 09:26:29 -08:00
committed by Ben McIlwain
parent c1759fa9d4
commit 6cdac0462a

View File

@@ -55,7 +55,7 @@ public final class RegistrarCredit extends ImmutableObject implements Buildable
PROMOTION("Promotional Credit");
/** A descriptive name for a credit of this type. */
private String descriptiveName;
private final String descriptiveName;
CreditType(String descriptiveName) {
this.descriptiveName = descriptiveName;