JPS plugin: refactoring:

- extract utility methods from KotlinBuilder;
- use StringUtil#join instead for iteration;
- add private constructor to LibraryUtils.
This commit is contained in:
Zalim Bashorov
2013-10-03 15:50:38 +04:00
parent 9d7968457f
commit dd553ef671
6 changed files with 113 additions and 81 deletions
@@ -32,6 +32,8 @@ public class LibraryUtils {
public static final String TITLE_KOTLIN_RUNTIME_AND_STDLIB_SOURCES = "Kotlin Compiler Runtime + StdLib Sources";
public static final String TITLE_KOTLIN_JAVASCRIPT_STDLIB = "Kotlin JavaScript StdLib";
private LibraryUtils() {}
@Nullable
public static Manifest getManifestFromJar(@NotNull File library) {
if (!library.canRead()) return null;
@@ -45,9 +47,9 @@ public class LibraryUtils {
jarFile.close();
}
}
catch (IOException ignored) { }
return null;
catch (IOException ignored) {
return null;
}
}
@Nullable