From 960b9cd32dd9c8fb8580f57c5cdee0f6aa1b181b Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Sat, 20 Jul 2019 19:13:46 +0000 Subject: [PATCH] Deleted some static imports. --- src/io/nayuki/fastqrcodegen/QrTemplate.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/io/nayuki/fastqrcodegen/QrTemplate.java b/src/io/nayuki/fastqrcodegen/QrTemplate.java index c8da8d9..98cdeb7 100644 --- a/src/io/nayuki/fastqrcodegen/QrTemplate.java +++ b/src/io/nayuki/fastqrcodegen/QrTemplate.java @@ -23,9 +23,6 @@ package io.nayuki.fastqrcodegen; -import static io.nayuki.fastqrcodegen.QrCode.MAX_VERSION; -import static io.nayuki.fastqrcodegen.QrCode.MIN_VERSION; - final class QrTemplate { @@ -45,7 +42,7 @@ final class QrTemplate { private QrTemplate(int ver) { - if (ver < MIN_VERSION || ver > MAX_VERSION) + if (ver < QrCode.MIN_VERSION || ver > QrCode.MAX_VERSION) throw new IllegalArgumentException("Version out of range"); version = ver; size = version * 4 + 17; @@ -249,7 +246,7 @@ final class QrTemplate { // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8. // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table. static int getNumRawDataModules(int ver) { - if (ver < MIN_VERSION || ver > MAX_VERSION) + if (ver < QrCode.MIN_VERSION || ver > QrCode.MAX_VERSION) throw new IllegalArgumentException("Version number out of range"); int result = (16 * ver + 128) * ver + 64; if (ver >= 2) {