mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
indent
This commit is contained in:
@@ -253,17 +253,16 @@ public class PluginCondition implements Cloneable, Serializable
|
|||||||
{
|
{
|
||||||
osType = osType.toLowerCase(Locale.ENGLISH);
|
osType = osType.toLowerCase(Locale.ENGLISH);
|
||||||
|
|
||||||
|
//J-
|
||||||
return ((osType.indexOf("win") >= 0) && (PlatformType.WINDOWS == type))
|
return ((osType.indexOf("win") >= 0) && (PlatformType.WINDOWS == type))
|
||||||
|| ((osType.indexOf("unix") >= 0) && type.isUnix())
|
|| ((osType.indexOf("unix") >= 0) && type.isUnix())
|
||||||
|| ((osType.indexOf("posix") >= 0) && type.isPosix())
|
|| ((osType.indexOf("posix") >= 0) && type.isPosix())
|
||||||
|| ((osType.indexOf("mac") >= 0) && (PlatformType.MAC == type))
|
|| ((osType.indexOf("mac") >= 0) && (PlatformType.MAC == type))
|
||||||
|| ((osType.indexOf("linux") >= 0) && (PlatformType.LINUX == type))
|
|| ((osType.indexOf("linux") >= 0) && (PlatformType.LINUX == type))
|
||||||
|| ((osType.indexOf("solaris") >= 0)
|
|| ((osType.indexOf("solaris") >= 0) && (PlatformType.SOLARIS == type))
|
||||||
&& (PlatformType.SOLARIS
|
|| ((osType.indexOf("openbsd") >= 0) && (PlatformType.OPENBSD == type))
|
||||||
== type)) || ((osType.indexOf("openbsd") >= 0)
|
|| ((osType.indexOf("freebsd") >= 0) && (PlatformType.FREEBSD == type));
|
||||||
&& (PlatformType.OPENBSD
|
//J+
|
||||||
== type)) || ((osType.indexOf("freebsd")
|
|
||||||
>= 0) && (PlatformType.FREEBSD == type));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//~--- fields ---------------------------------------------------------------
|
//~--- fields ---------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user