Rearranges two if-statements.
@@ -188,22 +188,18 @@ public class AsciiCharacter {
/** Resumes the blink effect. */
public void resumeBlinkEffect() {
- if (blinkTimer != null) {
- if (blinkTimer.isRunning() == false) {
+ if (blinkTimer != null && blinkTimer.isRunning() == false) {
blinkTimer.start();
}
}
- }
/** Pauses the blink effect. */
public void pauseBlinkEffect() {
- if (blinkTimer != null) {
- if (blinkTimer.isRunning()) {
+ if (blinkTimer != null && blinkTimer.isRunning()) {
isHidden = false;
blinkTimer.stop();
}
}
- }
/** Disables the blink effect. */
public void disableBlinkEffect() {
