@@ -44,7 +44,7 @@ public class ScreenshotState {
4444 * screen area to be verified for similarity.
4545 * This lambda method is NOT called upon class creation.
4646 * One has to invoke {@link #remember()} method in order to call it.
47- * <p>
47+ *
4848 * <p>Examples of provider function with Appium driver:
4949 * <code>
5050 * () -> {
@@ -152,8 +152,8 @@ private ScreenshotState checkState(Function<Double, Boolean> checkerFunc, long t
152152 do {
153153 final BufferedImage currentState = stateProvider .get ();
154154 score = getOverlapScore (this .previousScreenshot
155- .orElseThrow (() -> new ScreenshotComparisonError ("Initial screenshot state is not set. " +
156- "Nothing to compare" )), currentState , resizeMode );
155+ .orElseThrow (() -> new ScreenshotComparisonError ("Initial screenshot state is not set. "
156+ + "Nothing to compare" )), currentState , resizeMode );
157157 if (checkerFunc .apply (score )) {
158158 return this ;
159159 }
@@ -162,7 +162,8 @@ private ScreenshotState checkState(Function<Double, Boolean> checkerFunc, long t
162162 } catch (InterruptedException e ) {
163163 throw new ScreenshotComparisonError (e );
164164 }
165- } while (System .currentTimeMillis () - started <= timeoutMs );
165+ }
166+ while (System .currentTimeMillis () - started <= timeoutMs );
166167 throw new ScreenshotComparisonTimeout (
167168 String .format ("SScreenshot comparison timed out after %s ms. Actual similarity score: %.5f" ,
168169 timeoutMs , score ), score );
@@ -264,7 +265,7 @@ private static Mat resizeFirstMatrixToSecondMatrixResolution(Mat first, Mat seco
264265
265266 /**
266267 * A shortcut to {@link #getOverlapScore(BufferedImage, BufferedImage, ResizeMode)} method
267- * for the case if both reference and template images are expected to have the same dimensions
268+ * for the case if both reference and template images are expected to have the same dimensions.
268269 *
269270 * @param refImage reference image
270271 * @param tplImage template
0 commit comments