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;