mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
fix bug in compare method of PluginInformationComparator
This commit is contained in:
@@ -36,6 +36,7 @@ package sonia.scm.plugin.rest;
|
|||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
|
|
||||||
import sonia.scm.plugin.PluginInformation;
|
import sonia.scm.plugin.PluginInformation;
|
||||||
|
import sonia.scm.plugin.PluginVersion;
|
||||||
|
|
||||||
//~--- JDK imports ------------------------------------------------------------
|
//~--- JDK imports ------------------------------------------------------------
|
||||||
|
|
||||||
@@ -75,7 +76,12 @@ public class PluginInformationComparator
|
|||||||
|
|
||||||
if (c == 0)
|
if (c == 0)
|
||||||
{
|
{
|
||||||
c = plugin.getVersion().compareTo(otherPlugin.getVersion());
|
PluginVersion version =
|
||||||
|
PluginVersion.createVersion(plugin.getVersion());
|
||||||
|
PluginVersion otherVersion =
|
||||||
|
PluginVersion.createVersion(otherPlugin.getVersion());
|
||||||
|
|
||||||
|
c = version.compareTo(otherVersion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user