Buggy code:
public abstract class JepCountType { private static CaseInsensitiveMap < JepCountType > typeMap = null ; public static final JepCountType ABILITIESDISTINCT ; public static final JepCountType ABILITIES ; public static final JepCountType CAMPAIGNHISTORY ; public static final JepCountType CLASSES ; public static final JepCountType DOMAINS ; public static final JepCountType EQUIPMENT ; public static final JepCountType FOLLOWERS ; public static final JepCountType LANGUAGES ; public static final JepCountType RACESUBTYPE ; public static final JepCountType SKILLS ; public static final JepCountType SKILLSIT = new JepCountType . JepCountSkillSit ( ) ; public static final JepCountType SPELLBOOKS ; public abstract Number count ( PlayerCharacter pc , Object [ ] params ) throws ParseException { } private static final class AspectFilter implements JepCountType . ObjectFilter < CNAbility > { private final String [ ] keyValue ; private AspectFilter ( String [ ] keyValue ) { } public boolean accept ( CNAbility o ) { } } private static final class VisibilityFilter implements JepCountType . ObjectFilter < CNAbility > { private final Visibility vi ; private VisibilityFilter ( Visibility vi ) { } public boolean accept ( CNAbility o ) { } } private static final class TypeFilter implements JepCountType . ObjectFilter < CNAbility > { String type ; public TypeFilter ( String typ ) { } public boolean accept ( CNAbility o ) { } } private static final class TypeExclusionFilter implements JepCountType . ObjectFilter < CNAbility > { String type ; public TypeExclusionFilter ( String typ ) { } public boolean accept ( CNAbility o ) { } } private static final class NatureFilter implements JepCountType . ObjectFilter < CNAbility > { Nature nature ; public NatureFilter ( Nature n ) { } public boolean accept ( CNAbility o ) { } } private static final class KeyNameFilter implements JepCountType . ObjectFilter < CNAbility > { private final String name ; private final List < String > assocList ; private KeyNameFilter ( String keyValue , List < String > list ) { } public boolean accept ( CNAbility o ) { } } private static final class DisplayNameFilter implements JepCountType . ObjectFilter < CNAbility > { private final String name ; private DisplayNameFilter ( String keyValue ) { } public boolean accept ( CNAbility o ) { } } private static final class CategoryFilter implements JepCountType . ObjectFilter < CNAbility > { private final String cat ; private CategoryFilter ( String cat ) { } public boolean accept ( CNAbility o ) { } } public static abstract class JepCountCDOMObject < T extends CDOMObject > extends JepCountType . JepCountFilterable < T > { @ Override public Double count ( PlayerCharacter pc , Object [ ] params ) throws ParseException { } protected Object [ ] validateParams ( final Object [ ] params ) throws ParseException { } @ Override protected Set < ? extends T > filterSetP ( final String c , Collection < T > coll ) throws ParseException { } protected void filterPObjectByType ( final Iterator < ? extends T > it , final String tString ) { } } public static abstract class JepCountFilterable < T > extends JepCountType { protected abstract Collection < T > getData ( final PlayerCharacter pc ) { } protected static ParameterTree convertParams ( final Object [ ] params ) { } protected Collection < ? extends T > doFilterP ( final ParameterTree pt , Collection < T > coll ) throws ParseException { } @ Override public Double count ( PlayerCharacter pc , Object [ ] params ) throws ParseException { } protected Double countData ( final Collection < ? extends T > filtered , PlayerCharacter pc ) { } protected abstract Collection < ? extends T > filterSetP ( String c , Collection < T > coll ) throws ParseException { } } public static abstract class JepCountAbilities extends JepCountType . JepCountFilterable < CNAbility > { protected final List < String > assocList = new ArrayList < String > ( ) ; @ Override protected Collection < CNAbility > getData ( final PlayerCharacter pc ) { } @ Override protected Collection < ? extends CNAbility > filterSetP ( final String c , Collection < CNAbility > coll ) { } } public interface ObjectFilter < T > { public boolean accept ( T o ) { } } private static final void buildMap ( ) { } public static synchronized JepCountType valueOf ( String name ) { } public static synchronized Collection < JepCountType > getAllConstants ( ) { } private static class JepCountSkillSit extends JepCountType { @ Override public Number count ( PlayerCharacter pc , Object [ ] params ) throws ParseException { } private Number processCount ( PlayerCharacter pc , SkillFilter sf , View v ) { if ( sf == null ) { sf = getDefaultSkillFilter ( pc ) ; } int count = 0 ; final List < Skill > skills = SkillDisplay . getSkillListInOutputOrder ( pc , pc . getDisplay ( ) . getPartialSkillList ( v ) ) ; for ( Skill sk : skills ) { if ( ( pc . includeSkill ( sk , sf ) ) && ( sk . qualifies ( pc , null ) ) ) { count ++ ; for ( String situation : sk . getUniqueListFor ( SITUATION ) ) { double bonus = pc . getTotalBonusTo ( "SITUATION" , ( ( ( sk . getKeyName ( ) ) + "=" ) + situation ) ) ; <START_BUG> if ( bonus > 0.01 ) { <END_BUG> count ++ ; } } } } return Double . valueOf ( count ) ; } private SkillFilter getDefaultSkillFilter ( PlayerCharacter pc ) { } } No newline ; at end ; of file ; }

Fix:
if ( ( bonus > 0.01 ) || ( bonus < ( - 0.01 ) ) ) {