do we need the FIELDS list? (#349)

* do we need the FIELDS list?

* jar
This commit is contained in:
Matthew Kennedy 2024-01-18 23:01:33 -08:00 committed by GitHub
parent c048eaac93
commit d6f5d2ef89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 6 deletions

Binary file not shown.

View File

@ -37,9 +37,6 @@ public class FileJavaFieldsConsumer extends JavaFieldsConsumer {
javaFields.write(state.getVariableRegistry().getJavaConstants());
javaFields.write(getContent());
allFields.append("\t};" + EOL);
javaFields.write(allFields.toString());
javaFields.write("}" + ToolUtil.EOL);
javaFields.close();
}

View File

@ -13,7 +13,6 @@ public abstract class JavaFieldsConsumer implements ConfigurationConsumer {
protected final Set<String> existingJavaEnums = new HashSet<>();
private final StringBuilder content = new StringBuilder();
protected final StringBuffer allFields = new StringBuffer("\tpublic static final Field[] VALUES = {" + EOL);
protected final ReaderState state;
private final int baseOffset;
@ -27,8 +26,6 @@ public abstract class JavaFieldsConsumer implements ConfigurationConsumer {
}
private void writeJavaFieldName(String nameWithPrefix, int tsPosition) {
allFields.append("\t" + nameWithPrefix.toUpperCase() + "," + EOL);
content.append("\tpublic static final Field ");
content.append(nameWithPrefix.toUpperCase());
content.append(" = Field.create(\"" + nameWithPrefix.toUpperCase() + "\", "

Binary file not shown.