1. Extract method

2. Ecc from QrCode
3. I did not changed QrCode.Ecc to Ecc in signature of
makeSegmentsOptimally()
pull/90/head
gerzees 5 years ago
parent 8285e3895e
commit 419466168e

@ -68,7 +68,7 @@ public final class QrSegmentAdvanced {
* @throws IllegalArgumentException if 1 ≤ minVersion ≤ maxVersion ≤ 40 is violated * @throws IllegalArgumentException if 1 ≤ minVersion ≤ maxVersion ≤ 40 is violated
* @throws DataTooLongException if the text fails to fit in the maxVersion QR Code at the ECL * @throws DataTooLongException if the text fails to fit in the maxVersion QR Code at the ECL
*/ */
public static List<QrSegment> makeSegmentsOptimally(String text, QrCode.Ecc ecl, int minVersion, int maxVersion) { public static List<QrSegment> makeSegmentsOptimally(String text, Ecc ecl, int minVersion, int maxVersion) {
// Check arguments // Check arguments
Objects.requireNonNull(text); Objects.requireNonNull(text);
Objects.requireNonNull(ecl); Objects.requireNonNull(ecl);

Loading…
Cancel
Save