The code in Listing 2 has visibility failures as well as atomicity failures.
清单 2 中的代码不仅有原子性故障,还有可见性故障。
The default option for generating the code is to sort by visibility order. The sort by visibility order dumps the code generated by the transform according to its visibility.
生成代码在默认情况下是根据可见性进行排序的。
Initially when writing code, I don't worry too much about categorizing method visibility as default (package), private, public, or protected.
最初在编写代码时,我没有过多地担心将方法可视性归为default(包)、private、public还是protected。
应用推荐