Joe Soltzberg

24%
Flag icon
First, the class must document precisely the effects of overriding any method. In other words, the class must document its self-use of overridable methods. For each public or protected method, the documentation must indicate which overridable methods the method invokes, in what sequence, and how the results of each invocation affect subsequent processing. (By overridable, we mean nonfinal and either public or protected.) More generally, a class must document any circumstances under which it might invoke an overridable method. For example, invocations might come from background threads or ...more
Joe Soltzberg
Sounds like trouble waiting to happen. Assuming that people will document is never a good assumption
Effective Java
Rate this book
Clear rating
Open Preview