--- old/core/JemmyCore/src/org/jemmy/timing/Waiter.java 2018-05-20 10:12:06.164275686 +0200 +++ new/core/JemmyCore/src/org/jemmy/timing/Waiter.java 2018-05-20 10:12:06.108273977 +0200 @@ -30,42 +30,24 @@ import org.jemmy.env.Timeout; /** - * * @author shura */ public class Waiter { - /** - * - */ + public static final Timeout DEFAULT_DELTA = new Timeout("default.wait.delta", 100); private long waitTime; private long delta; - /** - * - * @param waitTime - * @param delta - */ public Waiter(Timeout waitTime, Timeout delta) { this.waitTime = waitTime.getValue(); this.delta = delta.getValue(); } - /** - * - * @param waitTime - */ public Waiter(Timeout waitTime) { this.waitTime = waitTime.getValue(); this.delta = DEFAULT_DELTA.getValue(); } - /** - * - * @param - * @param state - * @return - */ public T waitState(State state) { long start = System.currentTimeMillis(); T res; @@ -83,13 +65,6 @@ return null; } - /** - * - * @param - * @param value - * @param state - * @return - */ public T waitValue(final T value, final State state) { State st = new State() { public T reached() { @@ -104,12 +79,6 @@ return waitState(st); } - /** - * - * @param - * @param state - * @return - */ public T ensureState(State state) { T res = waitState(state); if(res == null) { @@ -117,13 +86,7 @@ } return res; } - /** - * - * @param - * @param value - * @param state - * @return - */ + public T ensureValue(T value, State state) { T res = waitValue(value, state); if (res == null) {