Run queries on your Java code to check if it meets the criteria suggested by the book Effective Java. And some others.