in src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java [269:286]
protected void generateHashCodeBody( PrintWriter out ) {
if( getProperties().isEmpty() ) {
out.println(" return HashCode(this);");
} else {
out.println(" int answer = 0;");
out.println("");
for( JProperty property : getProperties() ) {
String accessorName = property.getSimpleName();
out.println(" answer = (answer * 37) + HashCode("+accessorName+");");
}
out.println("");
out.println(" return answer;");
}
}