/*
- * Copyright 2007 Google Inc.
+ * Copyright 2007 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* <p>Encapsulates a QR Code's format information, including the data mask used and
* error correction level.</p>
*
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
* @see DataMask
* @see ErrorCorrectionLevel
*/
/**
* See ISO 18004:2006, Annex C, Table C.1
*/
- private static final int[][] FORMAT_INFO_DECODE_LOOKUP = new int[][]{
+ private static final int[][] FORMAT_INFO_DECODE_LOOKUP = {
{0x5412, 0x00},
{0x5125, 0x01},
{0x5E7C, 0x02},
* Offset i holds the number of 1 bits in the binary representation of i
*/
private static final int[] BITS_SET_IN_HALF_BYTE =
- new int[]{0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
+ {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
private final ErrorCorrectionLevel errorCorrectionLevel;
private final byte dataMask;