axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <bu...@us.ibm.com>
Subject Re: String class is final: SerializationContextImpl.java
Date Mon, 08 Apr 2002 15:43:17 GMT
Thanks.  I've made the change.  Given your suggestion I also found a couple
more that we could improve - Boolean.class and byte[].class.

Russell Butek
butek@us.ibm.com


Richard Emberson <emberson@phc.net>@phc.net on 04/07/2002 08:29:09 PM

Please respond to axis-dev@xml.apache.org

Sent by:    emberson@phc.net


To:    axis-dev@xml.apache.org
cc:
Subject:    String class is final: SerializationContextImpl.java




The String class is final so that in the method:

    public boolean isPrimitive(Object value, Class javaType)

in the file:

        if (String.class.isAssignableFrom(javaType)) return true;


can be changed to:

    if (String.class == javaType) return true;


Richard




Mime
View raw message