mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cosmetics
This commit is contained in:
@@ -68,10 +68,8 @@ public class EclipseCompilerTool extends JavaCompilingTool {
|
||||
final File file = path != null? new File(path) : null;
|
||||
if (file != null) {
|
||||
final String name = file.getName();
|
||||
final String prefix = JAR_FILE_NAME_PREFIX;
|
||||
final String suffix = JAR_FILE_NAME_SUFFIX;
|
||||
if (name.startsWith(prefix) && name.endsWith(suffix)) {
|
||||
version = " " + name.substring(prefix.length(), name.length() - suffix.length());
|
||||
if (name.startsWith(JAR_FILE_NAME_PREFIX) && name.endsWith(JAR_FILE_NAME_SUFFIX)) {
|
||||
version = " " + name.substring(JAR_FILE_NAME_PREFIX.length(), name.length() - JAR_FILE_NAME_SUFFIX.length());
|
||||
}
|
||||
}
|
||||
myVersion = version;
|
||||
|
||||
Reference in New Issue
Block a user