As the title reads, I have the following Enum:
public enum MyEnum {
  FIRST_ENUM("first enum"),
  SECOND_ENUM("second enum"),
  THIRD_ENUM("third enum"),
  FORTH_ENUM("forth enum");
  private final String param;
  private static class Mapper {
    static Map<String, MyEnum> MAP = new HashMap<>();
  }
  MyEnum(String param) {
    this.param = param;
    Mapper.MAP.put(param, this); // Is this going to be a problem?
  }
  public static MyEnum MyEnum(String value) {
    return Holder.MAP.get(value);
  }
}
I would like to know if putting an enum that its instantiation/construction hasn't been completed could possibly cause an issue?
 
     
    