public void fieldModifiersCheck(VariableDeclaration vd) {
TypeDeclaration td = vd.upUpToTypeDeclaration();
if (td == null) return; //not a field.
VariableDefinition def = vd.astDefinition();
if (def != null) {
Modifiers m = def.astModifiers();
modifiersCheck(m, FIELD_MODIFIERS_EXCLUSIVITY, FIELD_MODIFIERS_LEGAL, "field declarations");
boolean allFieldsHaveInitializers = true;
for (VariableDefinitionEntry entry : def.astVariables()) {
if (entry.rawInitializer() == null) {
allFieldsHaveInitializers = false;