Buggy code:
public class MPlayer extends SenderEntity < MPlayer > implements DPlayer { public static DPlayer get ( Object oid ) { } @ Override public MPlayer load ( MPlayer that ) { } protected Map < String , Long > exp = new HashMap < String , Long > ( ) ; protected Set < String > specialised = new CopyOnWriteArraySet < String > ( ) ; private long specialisedMillis = 0 ; protected Map < String , Integer > specialisationBonus = new HashMap < > ( ) ; private boolean isListeningToChat = false ; protected Map < String , String > chatKeys = new HashMap < String , String > ( ) ; private transient long cooldown = 0 ; private transient Optional < Ability > activatedAbility = Optional . empty ( ) ; private transient Optional < Material > preparedTool = Optional . empty ( ) ; protected double stamina = 100.0 ; protected double bonusStamina = 0.0 ; protected boolean staminaBoardStay = false ; protected boolean boardShowAtAll = true ; private void setExp ( Skill skill , long exp ) { } public long getExp ( Skill skill ) { } public void addExp ( Skill skill , long exp ) { } public void takeExp ( Skill skill , long exp ) { } public void setStamina ( double newStamina ) { <START_BUG> Validate . isTrue ( ( newStamina > 0 ) , "Stamina<seq2seq4repair_space>value<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>positive." ) ; <END_BUG> if ( ( Math . round ( newStamina ) ) == ( Math . round ( this . getStamina ( ) ) ) ) return ; double max = DeriusCore . getStaminaMixin ( ) . getMax ( this ) ; double min = 0.0 ; newStamina = Math . max ( newStamina , min ) ; newStamina = Math . min ( newStamina , max ) ; this . stamina = newStamina ; this . changed ( ) ; ScoreboardUtil . updateStaminaScore ( this , MConf . get ( ) . staminaBoardStay ) ; } public double getStamina ( ) { } public void addStamina ( double stamina ) { } public void takeStamina ( double stamina ) { } public boolean hasEnoughStamina ( double amount ) { } public void setStaminaBoardStay ( boolean value ) { } public boolean getStaminaBoardStay ( ) { } public void setBoardShowAtAll ( boolean value ) { } public boolean getBoardShowAtAll ( ) { } private void setBonusStamina ( double bonusStamina ) { } public double getBonusStamina ( ) { } public void addBonusStamina ( double bonusStamina ) { } public void takeBonusStamina ( double bonusStamina ) { } public LvlStatus getLvlStatus ( Skill skill ) { } public int getLvl ( Skill skill ) { } public int getMaxLevel ( Skill skill ) { } public void instantiateSkill ( Skill skill ) { } public boolean hasSkill ( Skill skill ) { } public boolean isSpecialisedIn ( Skill skill ) { } public boolean setSpecialisedIn ( Skill skill , boolean verbooseNot ) { } public void setNotSpecialisedIn ( Skill skill ) { } public List < Skill > getSpecialisedSkills ( ) { } @ Override public int getMaxSpecialisationSlots ( ) { } @ Override public Map < String , Integer > getSpecialisationSlotBonus ( ) { } @ Override public int getOpenSpecialisationSlots ( ) { } public void setCooldownExpire ( long cooldownTime ) { } public void setCooldownExpireIn ( int ticks ) { } public long getCooldownExpire ( ) { } public long getCooldownExpireIn ( ) { } public boolean isCooldownExpired ( ) { } public long getSpecialisationChangeMillis ( ) { } public void setSpecialisationChangeMillis ( long millis ) { } public long getSpecialisationCooldownExpire ( ) { } public boolean isSpecialisationCooldownExpired ( ) { } public Optional < Material > getPreparedTool ( ) { } public void setPreparedTool ( final Optional < Material > tool ) { } public boolean hasActivatedAny ( ) { } public Optional < Ability > getActivatedAbility ( ) { } public void setActivatedAbility ( Optional < Ability > ability ) { } public boolean getIsListeningToChat ( ) { } public void setIsListeningToChat ( boolean state ) { } public void addChatKey ( String key , Ability ability ) { } public void removeChatKey ( String key ) { } public List < String > getChatKeys ( ) { } public void clearChatKeys ( ) { } public boolean isAlreadyChatKey ( String key ) { } public boolean hasAnyChatKeys ( ) { } public Ability getAbilityBySubString ( String message ) { } public Ability getAbilityfromChatKey ( String key ) { } public List < String > chatKeysToString ( ) { } public boolean isChatListeningOk ( ) { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } @ Deprecated public Map < String , Long > getRawExpData ( ) { } @ Deprecated public Set < String > getRawSpecialisedData ( ) { } }

Fix:
Validate . isTrue ( ( newStamina > ( - 0.1 ) ) , "Stamina<seq2seq4repair_space>value<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>positive." ) ;