mirror of
https://github.com/zxing/zxing.git
synced 2025-01-13 20:27:34 -08:00
Change assert to an exception since this facility would not be available in J2ME. I vote for removing use of Debug anyway.
git-svn-id: https://zxing.googlecode.com/svn/trunk@711 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
ecc05c1ef3
commit
4fcdac3ae7
|
@ -24,36 +24,38 @@ package com.google.zxing.qrcode.encoder;
|
|||
*/
|
||||
public class Debug {
|
||||
|
||||
public static final void LOG_ERROR(String message) {
|
||||
public static void LOG_ERROR(String message) {
|
||||
// TODO: Implement
|
||||
}
|
||||
|
||||
public static final void LOG_INFO(String message) {
|
||||
public static void LOG_INFO(String message) {
|
||||
// TODO: Implement
|
||||
}
|
||||
|
||||
public static final void DCHECK(boolean condition) {
|
||||
assert(condition);
|
||||
public static void DCHECK(boolean condition) {
|
||||
if (!condition) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
|
||||
public static final void DCHECK_LT(int a, int b) {
|
||||
assert(a < b);
|
||||
public static void DCHECK_LT(int a, int b) {
|
||||
DCHECK(a < b);
|
||||
}
|
||||
|
||||
public static final void DCHECK_LE(int a, int b) {
|
||||
assert(a <= b);
|
||||
public static void DCHECK_LE(int a, int b) {
|
||||
DCHECK(a <= b);
|
||||
}
|
||||
|
||||
public static final void DCHECK_GT(int a, int b) {
|
||||
assert(a > b);
|
||||
public static void DCHECK_GT(int a, int b) {
|
||||
DCHECK(a > b);
|
||||
}
|
||||
|
||||
public static final void DCHECK_GE(int a, int b) {
|
||||
assert(a >= b);
|
||||
public static void DCHECK_GE(int a, int b) {
|
||||
DCHECK(a >= b);
|
||||
}
|
||||
|
||||
public static final void DCHECK_EQ(int a, int b) {
|
||||
assert(a == b);
|
||||
public static void DCHECK_EQ(int a, int b) {
|
||||
DCHECK(a == b);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue