彩票客户端“忘记密码”功能有bug,今天调试时,发现了原因: 功能模块中有一段: if(userpo.getId()!=Long.valueOf(uid)){ throw new VerifyException("mobile have been binded for uid=" + uid , AppCode.VERIFY_MOBILE_IS_BIND); } 问题就处在两个Long型对象的比较. 情景: userpo.getId()返回一个Long型对象,值是10027: Long…
一.String类 想要了解一个类,最好的办法就是看这个类的实现源代码,来看一下String类的源码: public final class String implements java.io.Serializable, Comparable<String>, CharSequence { /** The value is used for character storage. */ private final char value[]; /** The offset is the first…