Extended Generate Actions

Compatible with IntelliJ IDEA
May 28, 2015
Adds additional actions to the Generate (Alt + Insert) dialog.
  • Ability to generate a constructor that adds a Guava Preconditions.checkNotNull() to each non-primitive parameter.
  • Ability to generate add and addAll 'setters' for field variables that are Collections.

Download plugin

Recent change notes

  • Version 0.3
    • Fixed issue with new constructor being inserted in the wrong spot
    • Cleaned up static imports
  • Version 0.2
    • Moved the generate preconditions constructor action to directly below the generate constructor action
    • Added support for not calling checkNotNull on primitive objects
    • Added static import of checkNotNull
  • Version 0.1
    • Added action for generating Preconditions constructors
    • Added action for generating add/addAll methods for collections