@Target(value=FIELD) @Retention(value=RUNTIME) public @interface PropertyAlias
Jersey code should not contain overlapping nor duplicate property names. This is checked in a dedicated (@code org.glassfish.jersey.tests.integration.propertycheck.PropertyOverlappingCheckTest) unit test. However, sometimes having property aliases is useful. If the property name is equal to another property (from another file), it has to be marked by this annotation, otherwise the test will fail and prevent Jersey build to succeed.
PropertiesClass
,
Property
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.