Validation in a getter method

Normally when I use properties in my classes and have both getter and setter methods, I do all the validation checks inside the setter. On the other hand, what do I do if I want to restrict the end …

How to print a type of getter

I have code like below: public static void main(String[] args) throws Exception { printGettersSetters(PodmiotSzukajQueryFormSet.class); } public static void printGettersSetters(Class aClass) { …