mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +01:00
Replaced one character String constants with char constants, when applicable.
This commit is contained in:
@@ -51,7 +51,7 @@ public class BaseDependencyCheckMojoTest extends BaseTest {
|
||||
*/
|
||||
public boolean canRun() {
|
||||
String version = System.getProperty("java.version");
|
||||
int length = version.indexOf(".", version.indexOf(".") + 1);
|
||||
int length = version.indexOf('.', version.indexOf('.') + 1);
|
||||
version = version.substring(0, length);
|
||||
|
||||
double v = Double.parseDouble(version);
|
||||
|
||||
Reference in New Issue
Block a user