Пример #1
0
 @Override
 @Nullable
 public JavaSdkVersion getVersion(@NotNull String versionString) {
   return JdkVersionUtil.getVersion(versionString);
 }
Пример #2
0
 @Override
 public JavaSdkVersion getVersion(@NotNull Sdk sdk) {
   String version = sdk.getVersionString();
   if (version == null) return null;
   return JdkVersionUtil.getVersion(version);
 }