Skip to content

Commit f18c3df

Browse files
author
Mykola Mokhnach
committed
Finish checkstyle issues fixes
1 parent 39597a0 commit f18c3df

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/io/appium/java_client/ScreenshotState.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
* () -&gt; {
@@ -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

Comments
 (0)