sonatype/nexus — comment on commit 2ad6c9efbc089dcb97d23e9b2f001ce3afb90f9b
File: nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/maven/MavenFileTypeValidator.java line 83
By adreghiciu:

you can use plexus FileUtils to get the extension and check against that using equals