Jtest logo




Contents  Previous  Next  Index

GC.DUD


Do not use `Date[]'; use `long[]' instead

Description

This rule flag any occurrence of `Date[]'.

Do not use arrays of `Date' objects. Using an array of "long" is more efficient than using an array of `Date's .

Example

 package GC;
 
 import java.util.*;
 
 public class DUD {
    Date d[];        // Violation
 }

Repair

Use an array of "long" objects instead.


Contents  Previous  Next  Index

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