Skip to content
Advertisement

Tag: static-import

static import for constants in same file

To reference a class constant in an annotation present on the same class, the reference must be prefixed with the class name: Since this can get quite bulky when using multiple constants / string concatenations, I might simply use the following import directive in the same file to eliminate the need for these prefixes: Is there anything against this, or

Advertisement