commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy_Free...@bd.com
Subject [lang] notifier bug?
Date Mon, 25 Nov 2002 16:04:04 GMT
Is the this.clss assignment correct?  Shouldn't it be this.clss = listener?


    public Notifier(Class listener) {
        if(listener == null) {
            throw new IllegalArgumentException("Illegal to have a null
listener Class. ");
        }

        this.clss = clss;
        // now we check methods, if only one of them, then
        // let's set it
        Method[] meths = clss.getDeclaredMethods();
        if(meths.length == 0) {
            this.listenerMethod = meths[0];
        }
    }


Andy


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message