tengo el siguiente código:¿Qué es una operación no controlada e insegura aquí?
private static final Set<String> allowedParameters;
static {
Set<String> tmpSet = new HashSet();
tmpSet.add("aaa");
allowedParameters = Collections.unmodifiableSet(tmpSet);
}
Y Causa:
Note: mygame/Game.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Y cuando vuelva a compilar con la opción sugirió que viera a un puntero (^) que apunta a "nuevo" frente a HashSet();
.
¿Alguien sabe lo que está pasando aquí?