Jtest logo




Contents  Previous  Next  Index

NAMING.PKG


Use lower case letters for "package" names

Description

This rule flags any "package" name that does not use lower case letters.

Package names should begin with a lower case letter. This prevents the possibility of mistaking a package name for a class name. In fact, package names should usually consist of only lower case letters.

Example

 package NAMING;    // violation
 
 public class PKG {
 }

Repair

Change upper case letters to lower case letters.

 package naming;
 
 public class PKG {
 }

Reference

Larman, G, Guthrie, R Java 2 Performance and Idiom Guide. Prentice Hall, 1999, 248 - 249.


Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft