/*
 * Copyright 2008 ZXing authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.zxing.qrcode.encoder;

/**
 * JAVAPORT: Equivalent methods to the C++ versions. It's debateable whether these should throw or
 * assert. We can revisit that decision, or remove these throughout the code later.
 *
 * @author dswitkin@google.com (Daniel Switkin)
 */
public class Debug {

  public static final void LOG_ERROR(String message) {
    // TODO: Implement
  }

  public static final void LOG_INFO(String message) {
    // TODO: Implement
  }

  public static final void DCHECK(boolean condition) {
    assert(condition);
  }

  public static final void DCHECK_LT(int a, int b) {
    assert(a < b);
  }

  public static final void DCHECK_LE(int a, int b) {
    assert(a <= b);
  }

  public static final void DCHECK_GT(int a, int b) {
    assert(a > b);
  }

  public static final void DCHECK_GE(int a, int b) {
    assert(a >= b);
  }

  public static final void DCHECK_EQ(int a, int b) {
    assert(a == b);
  }

}

@@ -906,38 +906,32 @@
   public static 
-final 
 void LOG_ERROR(S
@@ -987,30 +987,24 @@
 blic static 
-final 
 void LOG_INF
@@ -1059,38 +1059,32 @@
   public static 
-final 
 void DCHECK(bool
@@ -1104,23 +1104,21 @@
 ) %7B%0A    
-assert(
+if (!
 conditio
@@ -1119,17 +1119,65 @@
 ndition)
-;
+ %7B%0A      throw new IllegalStateException();%0A    %7D
 %0A  %7D%0A%0A  
@@ -1182,38 +1182,32 @@
   public static 
-final 
 void DCHECK_LT(i
@@ -1221,30 +1221,30 @@
 nt b) %7B%0A    
-assert
+DCHECK
 (a %3C b);%0A  %7D
@@ -1253,38 +1253,32 @@
   public static 
-final 
 void DCHECK_LE(i
@@ -1296,22 +1296,22 @@
 ) %7B%0A    
-assert
+DCHECK
 (a %3C= b)
@@ -1325,38 +1325,32 @@
   public static 
-final 
 void DCHECK_GT(i
@@ -1364,30 +1364,30 @@
 nt b) %7B%0A    
-assert
+DCHECK
 (a %3E b);%0A  %7D
@@ -1396,38 +1396,32 @@
   public static 
-final 
 void DCHECK_GE(i
@@ -1439,22 +1439,22 @@
 ) %7B%0A    
-assert
+DCHECK
 (a %3E= b)
@@ -1480,14 +1480,8 @@
 tic 
-final 
 void
@@ -1511,22 +1511,22 @@
 ) %7B%0A    
-assert
+DCHECK
 (a == b)

Change assert to an exception since this facility would not be available in J2ME. I vote for removing use of Debug anyway.