Skip to content

An IntelliJ IDEA plugin that adds the option to generate a copy constructor to the "Generate" menu

License

Notifications You must be signed in to change notification settings

njleonzhang/CopyConstructorPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An IntelliJ IDEA plugin that adds the option to generate a copy constructor to the "Generate" menu (alt + insert), as suggested in IDEABKL-5546.

Roughly based on the comparisonChainGen example plugin.

It comes with experimental intentions that warn if a copy constructor may be buggy, such as when:

  • The copy constructor does not copy all fields from one object to the other
  • A field assignment in the copy constructor looks bogus (this.x = copy.y; or this.x = constant;)
  • The copy constructor in a subclass does not invoke the copy constructor in the superclass

About

An IntelliJ IDEA plugin that adds the option to generate a copy constructor to the "Generate" menu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.9%
  • HTML 2.1%