fix wrong snapshot filter result

This commit is contained in:
Sebastian Sdorra
2011-05-29 14:49:58 +02:00
parent 0a4caf052c
commit a701cfa59b

View File

@@ -84,11 +84,9 @@ public class DefaultPluginFilter implements PluginFilter
{
PluginCondition condition = plugin.getCondition();
return ((condition != null) && condition.isSupported(version, os, arch))
|| (condition == null)
&& (snapshot
||!plugin.getVersion().toUpperCase().contains(
VERSION_SNAPSHOT));
return (snapshot ||!plugin.getVersion().toUpperCase().contains(
VERSION_SNAPSHOT)) && ((condition != null) && condition.isSupported(
version, os, arch) || (condition == null));
}
//~--- fields ---------------------------------------------------------------