Skip to content

stokito/IdeaSingletonInspection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Singleton pattern inspection plugin for IntelliJ Idea

Singleton Inspection Plugin at plugins portal

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.

screenshot.png

You may be also interested in JPatterns library for patterns annotations.