Giter VIP home page Giter VIP logo

Comments (3)

nanlei avatar nanlei commented on June 2, 2024

第10章集合类

1. 175页 小结第4段中
在多线程场景中,如果使用并发容器 -> 同步容器

2. 184/185页代码
3处数字
int aHunderedMillion = 10000000 -> 100000000
初始化容量为5000000,耗时 -> 50000000
初始化容量为10000000,耗时 -> 100000000

3. 223页下方
UNTREEIFY_THRESHOLD中,当链表中的法人节点数量,去掉法人

4. 227页 filter代码注释
改为//Hollis, HollisChuang, H, hollis是不是更好,空值已经被过滤掉

5. 228页最下方代码
字符串值没有229页图10-35中所示的Hollis666

6. 235页图10-38下方
一级索引6->9->17->26,改为6->9->17->21->26是不是更好

from tobetopjavaer.

nanlei avatar nanlei commented on June 2, 2024

第11章反射

1. 239页
需要注意的是,上面的几个方法是无法获取私用的方法 -> 私有

2. 247页
getAttributes方法中,for循环的if块内,String fileName改为fieldName是不是更好
最后一句的表述,改为不支持多个Bean之间可能发生嵌套等问题是不是更好

from tobetopjavaer.

nanlei avatar nanlei commented on June 2, 2024

第12章序列化

1. 249页
那么父类页应该集成java.io.Serializable接口 -> 实现

2. 250页
代码注释中的SerializableDemo2并没有在此处出现

3. 253/255页
代码注释//将IOException直接抛出,改为//将Exception直接抛出是不是更好,毕竟throws了2个异常出来
255页可去掉类ExternalizableDemo2上方的空注释

4. 258/259页
Java8源码中readObject方法还有如下两行,不知书中使用的版本是不是没有

            // be like clone(), allocate array based upon size not capacity
            int capacity = calculateCapacity(elementData, size);
            SharedSecrets.getJavaOISAccess().checkArray(s, Object[].class, capacity);

5. 269页
IDEA的配置改为Preferences->Editor->Inspections->Java->Serialization Issues更好,具体配置项的名称可能也是因版本不同而异,2022.1.3版已经是Serializable non-static inner class without serialVersionUID

from tobetopjavaer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.