diff --git a/src/main/java/com/budiyev/android/codescanner/Utils.java b/src/main/java/com/budiyev/android/codescanner/Utils.java index c991d90..35068c9 100644 --- a/src/main/java/com/budiyev/android/codescanner/Utils.java +++ b/src/main/java/com/budiyev/android/codescanner/Utils.java @@ -298,7 +298,7 @@ public static Result decodeLuminanceSource(@NonNull final MultiFormatReader read @NonNull final LuminanceSource luminanceSource) throws ReaderException { try { return reader.decodeWithState(new BinaryBitmap(new HybridBinarizer(luminanceSource))); - } catch (NotFoundException e) { + } catch (final NotFoundException e) { return reader.decodeWithState(new BinaryBitmap(new HybridBinarizer(luminanceSource.invert()))); } finally { reader.reset();