2 * Copyright 2008 ZXing authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com.google.zxing.qrcode.encoder;
20 * JAVAPORT: Equivalent methods to the C++ versions. It's debateable whether these should throw or
21 * assert. We can revisit that decision, or remove these throughout the code later.
23 * @author dswitkin@google.com (Daniel Switkin)
27 public static void LOG_ERROR(String message) {
28 // Can't use IllegalStateException unfortunately in J2ME
29 // TODO do something else with this anyway
30 throw new RuntimeException(message);
33 public static void LOG_INFO(String message) {
34 throw new RuntimeException(message);
37 public static void DCHECK(boolean condition) {
39 throw new RuntimeException();
43 public static void DCHECK_LT(int a, int b) {
47 public static void DCHECK_LE(int a, int b) {
51 public static void DCHECK_GT(int a, int b) {
55 public static void DCHECK_GE(int a, int b) {
59 public static void DCHECK_EQ(int a, int b) {