Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Parameters as target

Latest
Compare
Choose a tag to compare
@britter britter released this 21 Jun 10:59
0.8.0
2a46064

This release only includes a single change: all annotation can now also be applied to method and constructor parameters:

public class Book {
    private String isbn
	
    public Book(@ISBN String isbn) {
        this.isbn = isbn;
    }
} 

In order for this to work you need a framework that takes care of injecting the required validation code for you.

Thanks to @mehranroodsaz for raising this. See #26, #27.