From 0dc316c2f72a9ab0d825661c375cd05b63bd542a Mon Sep 17 00:00:00 2001 From: Christopher Schultz Date: Thu, 22 Feb 2018 07:41:36 -0500 Subject: [PATCH] Restore original whitespace. Restore additional MIN_VERSION/MAX_VERSION pair. --- java/io/nayuki/qrcodegen/QrCode.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/java/io/nayuki/qrcodegen/QrCode.java b/java/io/nayuki/qrcodegen/QrCode.java index 71f4e45..ec76da3 100644 --- a/java/io/nayuki/qrcodegen/QrCode.java +++ b/java/io/nayuki/qrcodegen/QrCode.java @@ -162,12 +162,12 @@ public final class QrCode { return new QrCode(version, ecl, bb.getBytes(), mask); } - /*---- Public constants ----*/ + /*---- Public constants ----*/ - public static final int MIN_VERSION = 1; - public static final int MAX_VERSION = 40; + public static final int MIN_VERSION = 1; + public static final int MAX_VERSION = 40; - /*---- Instance fields ----*/ + /*---- Instance fields ----*/ // Public immutable scalar parameters @@ -208,7 +208,7 @@ public final class QrCode { public QrCode(int ver, Ecc ecl, byte[] dataCodewords, int mask) { // Check arguments Objects.requireNonNull(ecl); - if (ver < 1 || ver > 40 || mask < -1 || mask > 7) + if (ver < MIN_VERSION || ver > MAX_VERSION || mask < -1 || mask > 7) throw new IllegalArgumentException("Value out of range"); Objects.requireNonNull(dataCodewords);