Skip to main content

Blog Archive for malenkov during March 2007

The @ConstructorProperties annotation for constructors was introduced in JDK version 6. This annotation shows how the parameters of annotated constructor correspond to object's properties. The following code snippet shows the get methods of the x and y properties: public class Point {    private final int x;    private final int y;    <strong>@...