phoenixnap / springmvc-raml-plugin

Spring MVC - RAML Spec Synchroniser Plugin. A Maven plugin designed to Generate Server & Client code in Spring from a RAML API descriptor and conversely, a RAML API document from the SpringMVC Server implementation.
Apache License 2.0
137 stars 84 forks source link

[GH-178] Updated generation for equals() and hashCode() methods #179

Closed bbd127 closed 7 years ago

bbd127 commented 7 years ago

[GH-178] Updated generation for equals() method to use Apache Common reflectionEquals() in order to avoid generating equals() methods that will always return true when check by reference and check by instanceof are successfull.

Generation of hashCode() method updated to follow the same pattern as equals() method generation.

Fixed the test that was failing due to hard coded value for plugin version in the Javadoc of generated controller.