Nothing wrong when using an interface
like this.
However, there's some redundancy in the code. public static final
could be removed as redundant, as per JLS 9.3:
Every field declaration in the body of an interface is implicitly
public
,static
, andfinal
. It is permitted to redundantly specify any or all of these modifiers for such fields.