Skip to content

Commit

Permalink
Merge pull request #504 from anipp100/default-method
Browse files Browse the repository at this point in the history
Use default annotation for optional interface method
  • Loading branch information
rkistner committed Oct 24, 2019
2 parents ee4b181 + eb4cbd5 commit 9319110
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResultPoint> resultPoints);
default void possibleResultPoints(List<ResultPoint> resultPoints) {
}
}

0 comments on commit 9319110

Please sign in to comment.