import com.google.zxing.common.ByteMatrix;
import com.google.zxing.qrcode.encoder.Encoder;
import com.google.zxing.qrcode.encoder.QRCode;
+import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import java.util.Hashtable;
height);
}
- int errorCorrectionLevel = QRCode.EC_LEVEL_L;
+ ErrorCorrectionLevel errorCorrectionLevel = ErrorCorrectionLevel.L;
if (hints != null) {
- Integer requestedECLevel = (Integer) hints.get(EncodeHintType.ERROR_CORRECTION);
+ ErrorCorrectionLevel requestedECLevel = (ErrorCorrectionLevel) hints.get(EncodeHintType.ERROR_CORRECTION);
if (requestedECLevel != null) {
- errorCorrectionLevel = requestedECLevel.intValue();
+ errorCorrectionLevel = requestedECLevel;
}
}