Re: Javadoc misprint for DefaultListSelectionModel
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
At 03:59 PM 5/5/2003 -0600, you wrote: >That is all true, though you should not be surprised that it compiles. It >compiles just fine because: > >"Every field declaration in the body of an interface is implicitly public, >static, and final. It is permitted to redundantly specify any or all of >these modifiers for such fields." (Java Language Specification, 2nd ed. >section 9.3) > >So apparently if a compiler follows the specification then the concern >Jake had about memory consumption doesn't apply. I agree, however, that >for the sake of explicitivity (is that a word?) we should declare them >public static final. > >-shawn Ahhh..... Thanks for clearing that up, Shawn :-) I already made the change. I think it is probably good practice to be explicit about it. I also made the javadoc change you requested. Jake