mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 05:25:44 +01:00
hide constructor and throw exception if the version could not be parsed
This commit is contained in:
@@ -35,6 +35,7 @@ package sonia.scm.plugin;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import sonia.scm.version.Version;
|
||||
import com.github.legman.Subscribe;
|
||||
|
||||
import com.google.common.collect.Sets;
|
||||
@@ -721,7 +722,7 @@ public class DefaultPluginManager implements PluginManager
|
||||
PluginInformation installed)
|
||||
{
|
||||
boolean result = false;
|
||||
PluginVersion version = PluginVersion.createVersion(available.getVersion());
|
||||
Version version = Version.parse(available.getVersion());
|
||||
|
||||
if (version != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user