Re: Any Checkstyle users?



> BTW, it appears (from more recent posts in the thread) that the issue wasn't
> the use of a magic number at all, but of a variable of type HashMap.

Not just HashMap:

"java.util.GregorianCalendar, java.util.Hashtable, java.util.HashSet,
java.util.HashMap, java.util.ArrayList, java.util.LinkedList,
java.util.LinkedHashMap, java.util.LinkedHashSet, java.util.TreeSet,
java.util.TreeMap, java.util.Vector"

I suppose the check is pushing me to pass/return custom data objects
that implement Java-specific data structures behind the scenes? I
can't see how you would write meaningful code without eventually using
one of the listed data structures, but I can see vaguely how it would
be beneficial to wrapper the implementation of these data structures.

.



Relevant Pages

  • Re: Any Checkstyle users?
    ... the use of a magic number at all, but of a variable of type HashMap. ... I can't see how you would write meaningful code without eventually using one of the listed data structures, but I can see vaguely how it would be beneficial to wrapper the implementation of these data structures. ... the interface type rather than the concrete implementation. ...
    (comp.lang.java.programmer)
  • Re: lcc-win32
    ... > I quoted one of the people that posts the most of such nonsense, ... No one said they didn't use *any* data structures. ... Destroying C as a living language? ...
    (comp.lang.c)
  • Re: Relationships between objects in CLOS
    ... domain concepts like blogs, posts, comments, etc (e.g. create a new ... properties of posts, etc). ... Those sound like data structures or data objects (unless ...
    (comp.lang.lisp)
  • Re: lcc-win32
    ... The assumption that C programming means ignoring data structures ... I quoted one of the people that posts the most of such nonsense, ... Destroying C as a living language? ...
    (comp.lang.c)