Bug 112605 - [Errors/Warnings] suggestions
Summary: [Errors/Warnings] suggestions
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-14 05:25 EDT by Cyril Adrian CLA
Modified: 2005-10-14 05: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 Cyril Adrian CLA 2005-10-14 05:25:09 EDT
Hello,

    (not sure about Core--sorry if I'm wrong)

I'd like to suggest adding three useful checks for the Error/Warnings Java
compiler. In the same way that you check such things as empty blocks, which make
you *think* when you have an empty block (at least makes you add a comment
saying that such a block is normal), would it be possible to add those thinking
helpers:

- if without else
- switch without default
- switch case without break (defining e.g. a tag such as // NO BREAK)

Note: I know some firms (such as banks) usually enforce such coding practices.

Thank you for your wonderful product!

Best regards,

    Cyril