perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

Odd condition #1158

Open Egor18 opened 4 years ago

Egor18 commented 4 years ago

Condition path.contains("") is always true. https://github.com/perwendel/spark/blob/c697d981268c538dfeeb38786bd9eb0a03ab86f0/src/main/java/spark/resource/ClassPathResource.java#L104 (I found this with the data-flow analyzer I'm working on.)