Source of Assert.java


  1: //: com:bruceeckel:tools:Assert.java
  2: // From 'Thinking in Java, 2nd ed.' by Bruce Eckel
  3: // www.BruceEckel.com. See copyright notice in CopyRight.txt.
  4: // Turning off the assertion output 
  5: // so you can ship the program.
  6: package com.bruceeckel.tools;

  8: public class Assert {
  9:   public final static void is_true(boolean exp){}
 10:   public final static void is_false(boolean exp){}
 11:   public final static void 
 12:   is_true(boolean exp, String msg) {}
 13:   public final static void 
 14:   is_false(boolean exp, String msg) {}
 15: } ///:~