|
|
||
Kedar Mhaswade's BlogCommunity: JDK ArchivesShould package-info.java be renamed?Posted by km on December 31, 2006 at 07:39 PM | Permalink | Comments (3)It is suggested that the preferrred way of creating the information for a Java package, such that the javadoc tool recognizes it as such, while creating the javadoc documentation. I decided to take this advice and immediately landed into problem of inconsistency with it. I could not create this file as a Java source file, using the NetBeans IDE because it is not a proper java class name! So, I wonder why Java SE decided to take such a name. Wouldn't just packageinfo.java serve the purpose?
Am I missing something obvious?
Static Imports -- not a clean job?Posted by km on December 23, 2006 at 05:22 PM | Permalink | Comments (22)We have been requested to use static imports sparingly. I like that advice. Use your judgment to actually use this support. But frankly, articles, presentations I have seen use the stdout, the "out" field of java.lang.System as imported statically. But, the following program does not compile: class Format { Why? Because I did not do: import static java.lang.System.out! Why are all public members of the System classes not automatically Is there a problem with this expectation? Would community like implicit static import of public members of java.lang.*? | ||
|
|