@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value="FE_FLOATING_POINT_EQUALITY",justification="OK to compare floating point") protected void notifyTargetIntensityChange(double intensity){
  double oldValue=mCurrentIntensity;
  mCurrentIntensity=intensity;
  if (oldValue != intensity) {
    firePropertyChange("TargetIntensity",Double.valueOf(oldValue),Double.valueOf(intensity));
  }
}

@ edu . umd . cs . findbugs . annotations . SuppressFBWarnings ( value = "FE_FLOATING_POINT_EQUALITY" , justification = "OK to compare floating point" ) protected void notifyTargetIntensityChange ( double intensity ) { double oldValue = mCurrentIntensity ; mCurrentIntensity = intensity ; if ( oldValue != intensity ) { firePropertyChange ( "TargetIntensity" , Double . valueOf ( oldValue ) , Double . valueOf ( intensity ) ) ; } }
change the stored target intensity value and do notification , but don ' t change anything in the hardware
