6015 Singleton Inspection Inspection 3 Sergey Ponomarev 0 3088 stokito 2013-03-26 1.2

Singleton Inspection

Compatible with  IntelliJ IDEA
26.03.2013
3 088

This inspection reports about (probably) inappropriate use of Singleton pattern.

Just write getInstance() method, and this inspection will check this class like a Singleton.

Singleton class should be checked for next errors:

  • Class should be final.
  • Class should have private constructor.
  • getInstance() method must be public and static and return instance of its class.

Please also see JPatterns library for patterns annotations.

Download plugin

General usage instructions

Just write
getInstance() method, and this inspection will check this class like a Singleton. Singleton class should be checked for next errors:

  • Class should be final.

  • Class should have private constructor.

  • getInstance() method must be public and static and return instance of its class.

31.03.2011
Подробней о плагине можно почитать в бложике автора http://stokito.blogspot.com/2011/03/singleton-idea.html
Please  sign in  to leave a comment.