Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Instead of this:
private String convertJdkToMavenVersion( String jdk ) { return jdk.replaceAll( "_", "-" ); }
It should look like this:
private String convertJdkToMavenVersion( String jdk ) { return jdk.replace( '_', '-' ); }
This would save the CPU from recompiling a regex in vain. Could make a performance improvement for projects using that profile activator massively.