Authors:
stokito
opensource software

Singleton Inspection

Products: IntelliJ IDEA

Vendor: Sergey Ponomarev

Email:

Website: https://github.com/stokito/IdeaSingletonInspection

SourceCode: SingletonInspection_6015.zip

License: http://www.apache.org/licenses/LICENSE-2.0

Bugtracker page

Forum page

Description:

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.

Downloads: 2449
Rating:
Participated in rating: 1
Version Since Build Until Build File/URL Size (Kb) Date Details
1.2. 123.169. . Download 19.76 2013-03-26 08:16:25 details
1.0.1. 95.627. . Download 20.66 2011-09-18 03:43:57 details
. .
2 updates are hidden show all updates
Screenshot #8607

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.

Comments:

stokito
2011-03-31 21:24:12
Подробней о плагине можно почитать в бложике автора http://stokito.blogspot.com/2011/03/singleton-idea.html
.
Anonymous
Rated:
2011-03-30 19:07:09
.