Skip to content

Commit 9319110

Browse files
authored
Merge pull request #504 from anipp100/default-method
Use default annotation for optional interface method
2 parents ee4b181 + eb4cbd5 commit 9319110

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeCallback.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ public interface BarcodeCallback {
2222
*
2323
* Do not depend on this being called at any specific point in the decode cycle.
2424
*
25+
* This is a default method and can be omitted by the implementing class.
26+
*
2527
* @param resultPoints points potentially identifying a barcode
2628
*/
27-
void possibleResultPoints(List<ResultPoint> resultPoints);
29+
default void possibleResultPoints(List<ResultPoint> resultPoints) {
30+
}
2831
}

0 commit comments

Comments
 (0)