spring-guides / gs-uploading-files

Uploading Files :: Learn how to build a Spring application that accepts multi-part file uploads.
http://spring.io/guides/gs/uploading-files/
Apache License 2.0
469 stars 503 forks source link

duplicate condition #24

Closed sajmmon closed 8 years ago

sajmmon commented 8 years ago

Hi, it seems that there is some type in your conditions. Both are the same: if (name.contains("/")) { ... } if (name.contains("/")) { ... } https://github.com/spring-guides/gs-uploading-files/blob/master/complete/src/main/java/hello/FileUploadController.java#L48