fabcipriano commented on a change in pull request #192: [MNG-6261] - using java File api to compare URL: https://github.com/apache/maven/pull/192#discussion_r236029100
########## File path: maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java ########## @@ -80,4 +80,27 @@ public URI getLocationURI() { return getFile().toURI(); } + + @Override + public boolean equals( Object obj ) + { + if ( this == obj ) + { + return true; + } + + if ( ( obj == null ) || !( obj instanceof FileModelSource ) ) Review comment: You´re right this make code simpler, thank you ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services