#223 New check: ForbidInstantiationCheck

Unstable_(example)
closed
nobody
None
5
2012-10-17
2012-04-08
No

This check forbids instantiation of certain object types by their full classname.

For example:
"java.lang.NullPointerException" will forbid the NPE instantiation.

Made in accordance with this issue:
https://sourceforge.net/tracker/?func=detail&aid=3182213&group_id=29721&atid=397081

Discussion

  • Contains patch + raw check files (with and without folders path saving)

     
  • Roman Ivanov
    Roman Ivanov
    2012-10-16

    right, this is duplicate. Please close/reject patch. This check is hosted in our project(http://sevntu-checkstyle.github.com/sevntu.checkstyle/) for a while.

     
  • Oliver Burn
    Oliver Burn
    2012-10-17

    • status: pending --> closed
    • milestone: --> Unstable_(example)