diff --git a/archive/java/src/org/broadinstitute/sting/oldindels/CountedObject.java b/java/src/org/broadinstitute/sting/utils/CountedObject.java similarity index 93% rename from archive/java/src/org/broadinstitute/sting/oldindels/CountedObject.java rename to java/src/org/broadinstitute/sting/utils/CountedObject.java index 632c4bff5..d2f7ffc5f 100755 --- a/archive/java/src/org/broadinstitute/sting/oldindels/CountedObject.java +++ b/java/src/org/broadinstitute/sting/utils/CountedObject.java @@ -1,4 +1,4 @@ -package org.broadinstitute.sting.playground.utils; +package org.broadinstitute.sting.utils; /** Utility class that makes working with counted objects slightly easier (and faster). * Consider a "generic" counter representation as Map: updating the counter would require @@ -20,7 +20,7 @@ public class CountedObject { * @param o object to start counting for */ public CountedObject(T o) { - assert o!=null : "Can not create counted object over null"; + if ( o==null ) throw new StingException("BUG: Can not wrap null as a counted object"); mObject = o; mCounter = 1; }