CodeQL library for Java
codeql/java-all 0.6.2 ( changelog , source )
Search

Predicate hasDashedVersion

Given a JAR filename, try to split it into a name and version. This is a heuristic approach assuming that the a dash is used to separate the library name from a largely numeric version such as commons-io-2.4.

Import path

import semmle.code.java.DependencyCounts
predicate hasDashedVersion ( string target , string name , string version )