59 SimpleIntentions Intention 4 Etienne Studer 5 24484 etienne 2007-02-10 1.5.9


Compatible with  IntelliJ IDEA
24 484
Adds some simple but convenient intentions and inspections for IntelliJ IDEA.


  • unwrap if-statements, synchronized-statements, try-statements, and (do-)while-statements
  • copy method Javadoc from overriden/implemented method
  • add missing method parameter Javadoc


  • detect log statements that are not surrounded by a log level check
  • detect fields and method parameters that don't match the naming preferences defined in the current code style settings
  • detect fields of configurable types that are erroneously declared as being static
  • detect class/method/field modifiers that don't match order suggested by JLS
  • detect redundant method/field modifiers
  • detect redundant field initialization

Download plugin

Recent change notes

  • 1.5.9 - Made changes to plugin descriptor to allow for smooth upgrading of the plugin (due to IDEA bug)
  • 1.5.8 - Changed plugin descriptor regarding error submitter integration to remain IDEA downward compatible
  • 1.5.7 - Added support for IDEA's Logger in log level inspection, fixed reported NPE
  • 1.5.6 - Integrated PluginErrorReportSubmitter plugin
  • 1.5.5 - First version for IDEA 6.0.x
  • 1.5.4 - Added configuration option to naming inspection to ignore serialVersionUID fields
  • 1.5.3 - Fixed plugin packaging to include *.java.template files (before/after documentation)
  • 1.5.2 - Provide separate plugin for IDEA Demetra
  • 1.5.1 - Restrict plugin to IDEA 5.x
  • 1.5.0 - Added inspection to detect log statements not surrounded by log level check
  • 1.4.0 - Added intention to remove redundant modifiers
  • 1.3.4 - Enhanced intention 'add missing method parameter Javadoc' to support methods without Javadoc
  • 1.3.3 - Fixed jar file
  • 1.3.2 - Added intention to add missing method parameter Javadoc, grouped Javadoc intentions in 'Javadoc' category
  • 1.3.1 - i18n support
  • 1.3.0 - Added intention to copy Javadoc from overriden/implemented method
  • 1.2.9 - Only highlight affected variable identifier in variable naming inspection
  • 1.2.8 - Fixed quick fix of JLS modifier order inspection for interface constants (thanks to Bas Leijdekkers)
  • 1.2.7 - Added missing documentation for redundant field initialization inspection
  • 1.2.6 - Added inspection to check for redundant field initialization
  • 1.2.5 - Changed naming inspection for static final fields (must not contain lower-case characters )
  • 1.2.4 - Improved static final fields handling in naming inspection
  • 1.2.3 - Made naming inspection configurable for each variable kind, made component names consistent with JetBrains recommendations
  • 1.2.2 - Fixed assertion in naming inspection, changed naming inspection to category 'Naming conventions'
  • 1.2.1 - Updated description of variable naming inspection
  • 1.2.0 - Added inspection to check for fields and method parameters that do not match the current code style naming preferences (incl. quick fix)
  • 1.1.2 - Fixed jar file to include fix for NPE in JLS modifier order inspection
  • 1.1.1 - Fixed NPE in JLS modifier order inspection
  • 1.1.0 - Added inspection to check order of class, method, and field modifiers against JLS suggestions (incl. quick fix)
  • 1.0.4 - Added intentions to unwrap while and do-while statements
  • 1.0.3 - Fixed code layout issue (thanks to Bas Leijdekkers)
  • 1.0.2 - Initial version, intentions to unwrap if-then-else, try-catch-finally, and synchronized statements
I was hoping for a full unroll of loops, though that would probably have been easier for for loops, something along the lines of:

for (int i = 0; i < 2; i++) {
result += array[i];


result += array[0]
result += array[1]

If I tried to do it myself, I'd probably end up attempting to do a full partial evaluation:) Would it be possible to get the source code so I could make an attempt at adding this?
Inspections seems to be ok, but i failed to find a way to use javadoc intentions from editor after installing this plugin.
Can't code without it anymore !
Please  sign in  to leave a comment.