You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Technical discussion or constructive comments(技术讨论或建议的详细描述):
When practical, the toString method should return all of the interesting information contained in the object。
当实际使用时,toString 方法应该返回对象中包含的所有有趣信息;
A particularly annoying penalty for failing to include all of an object’s interesting information in its string representation is test failure reports that look like this:
如果没有在字符串表示中包含所有对象的有趣信息,那么一个特别恼人的惩罚就是测试失败报告,如下所示:
Chapter 3 Item 12
If you change the representation in a future release, you’ll break their code and data, and they will yowl.
如果你在将来的版本中更改了表示形式,你将破坏它们的代码和数据,它们将发出大量的消息。
应该改为:他们会崩溃的
或许我理解错了,但是不太像是“它们将发出大量的消息”
ghoultf
added a commit
to ghoultf/Effective-Java-3rd-edition-Chinese-English-bilingual
that referenced
this issue
Jun 15, 2023
Technical discussion or constructive comments(技术讨论或建议的详细描述):
When practical, the toString method should return all of the interesting information contained in the object。
当实际使用时,toString 方法应该返回对象中包含的所有有趣信息;
A particularly annoying penalty for failing to include all of an object’s interesting information in its string representation is test failure reports that look like this:
如果没有在字符串表示中包含所有对象的有趣信息,那么一个特别恼人的惩罚就是测试失败报告,如下所示:
建议:interesting 翻译为值得(引起/需要)关注的或者重要的会更恰当一些,也更好理解。
以及Chapter 2 Item 8
该规范不仅不能保证终结器或清洁剂能及时运行;它并不能保证它们能运行。
存在错别字。
The text was updated successfully, but these errors were encountered: