From eb4cbd509585d82a65e0cbea5b9d27d100336646 Mon Sep 17 00:00:00 2001 From: Andre Ippisch Date: Fri, 18 Oct 2019 12:48:47 +0200 Subject: [PATCH] Use default annotation for optional interface method --- .../src/com/journeyapps/barcodescanner/BarcodeCallback.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeCallback.java b/zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeCallback.java index 653672965..e5e460b78 100644 --- a/zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeCallback.java +++ b/zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeCallback.java @@ -22,7 +22,10 @@ public interface BarcodeCallback { * * Do not depend on this being called at any specific point in the decode cycle. * + * This is a default method and can be omitted by the implementing class. + * * @param resultPoints points potentially identifying a barcode */ - void possibleResultPoints(List resultPoints); + default void possibleResultPoints(List resultPoints) { + } }