Bug 108789 - naming conventions: suggest plural of element type for Collection subtypes
Summary: naming conventions: suggest plural of element type for Collection subtypes
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 08:25 EDT by Tom Hofmann CLA
Modified: 2005-09-05 08:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2005-09-05 08:25:03 EDT
3.1

The argument/local variable name suggestions for arrays include the plural of
the element type (e.g. 'numbers' for a 'Number[]'). I would ask for the same
functionality for parameterized subtypes of java.util.Collection. As element
name, the upper bound of the type parameter should be taken:

Example: suggest 'numbers' for 'java.util.List<Number>' or 'java.util.HashSet<?
extends Number>' (but not for 'List<? super Number>').