From be0eaf6a2214eb1330e3f2eb1b303ff38c3d4af7 Mon Sep 17 00:00:00 2001 From: Robert Zubeck Date: Wed, 28 Nov 2007 02:34:50 +0000 Subject: [PATCH] Make it explicit in the function signature that we're just doing an "Object == null" comparison. Otherwise the user might pass in an undefined, and expect a strict equality test. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4886 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Assert.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/util/Assert.as b/src/as/com/threerings/util/Assert.as index 63601a312..6506d286a 100644 --- a/src/as/com/threerings/util/Assert.as +++ b/src/as/com/threerings/util/Assert.as @@ -43,7 +43,7 @@ public class Assert public static var dumpStack :Boolean = true; /** Asserts that the value is equal to null. */ - public static function isNull (value :*, message :String = null) :void + public static function isNull (value :Object, message :String = null) :void { if (_debug && ! (value == null)) { fail(message); @@ -51,7 +51,7 @@ public class Assert } /** Asserts that the value is not equal to null. */ - public static function isNotNull (value :*, message :String = null) :void + public static function isNotNull (value :Object, message :String = null) :void { if (_debug && ! (value != null)) { fail(message);