import lombok.experimental.FieldNameConstants;

/**
 * Test class for renaming fields in a class with @FieldNameConstants annotation
 */
@FieldNameConstants
public class RenameFieldWithFieldNameConstants {
  private String oldField;
  private int count;

  public RenameFieldWithFieldNameConstants(String oldField, int count) {
    this.oldField = oldField;
    this.count = count;
  }

  public void printInfo() {
    System.out.println("Field value: " + oldField + ", Count: " + count);
  }

  public void useFieldNameConstants() {
    // Using the field name constants generated by Lombok
    System.out.println("Field name constant: " + Fields.oldField);

    // Using the field name constants in a method
    validateField(Fields.oldField);
  }

  private void validateField(String fieldName) {
    System.out.println("Validating field: " + fieldName);
  }
}