Authors:
stokito

Singleton Inspection

Products: IntelliJ IDEA

Vendor: Sergey Ponomarev

Email:

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

Source code: SingletonInspection_6015.zip

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

Bugtracker page

Forum page

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: 2761
Rating:
Participated in rating: 1
Version Compatible builds Date
1.2 123.169 26.03.2013 Download
1.0.1 95.627 18.09.2011 Download
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.