This commit is contained in:
Sebastian Sdorra
2012-09-30 13:11:54 +02:00
parent c7e19f65ef
commit e9c10c21e1

View File

@@ -253,17 +253,16 @@ public class PluginCondition implements Cloneable, Serializable
{
osType = osType.toLowerCase(Locale.ENGLISH);
//J-
return ((osType.indexOf("win") >= 0) && (PlatformType.WINDOWS == type))
|| ((osType.indexOf("unix") >= 0) && type.isUnix())
|| ((osType.indexOf("posix") >= 0) && type.isPosix())
|| ((osType.indexOf("mac") >= 0) && (PlatformType.MAC == type))
|| ((osType.indexOf("linux") >= 0) && (PlatformType.LINUX == type))
|| ((osType.indexOf("solaris") >= 0)
&& (PlatformType.SOLARIS
== type)) || ((osType.indexOf("openbsd") >= 0)
&& (PlatformType.OPENBSD
== type)) || ((osType.indexOf("freebsd")
>= 0) && (PlatformType.FREEBSD == type));
|| ((osType.indexOf("solaris") >= 0) && (PlatformType.SOLARIS == type))
|| ((osType.indexOf("openbsd") >= 0) && (PlatformType.OPENBSD == type))
|| ((osType.indexOf("freebsd") >= 0) && (PlatformType.FREEBSD == type));
//J+
}
//~--- fields ---------------------------------------------------------------