Changed access to use this qualifier

This commit is contained in:
yueh
2014-12-29 15:13:47 +01:00
parent 2a5e57a59b
commit f471513bd0
604 changed files with 11573 additions and 11573 deletions
@@ -29,25 +29,25 @@ public class EnergyThreshold implements Comparable<EnergyThreshold>
final int hash;
public EnergyThreshold(double lim, IEnergyWatcher wat) {
Limit = lim;
watcher = wat;
this.Limit = lim;
this.watcher = wat;
if ( watcher != null )
hash = watcher.hashCode() ^ ((Double) lim).hashCode();
if ( this.watcher != null )
this.hash = this.watcher.hashCode() ^ ((Double) lim).hashCode();
else
hash = ((Double) lim).hashCode();
this.hash = ((Double) lim).hashCode();
}
@Override
public int hashCode()
{
return hash;
return this.hash;
}
@Override
public int compareTo(EnergyThreshold o)
{
return ItemSorters.compareDouble( Limit, o.Limit );
return ItemSorters.compareDouble( this.Limit, o.Limit );
}
}