InspectThisPlugin 

HOME INDEX SEARCH GO  

 <<O>>  Difference Topic InspectThisPlugin (r1.4 - 24 Jun 2003 - TimurZambalayev)
Changed:
<
<

Various inspections (empty block, empty catch block, redundant interface modifiers, modified parameter).

>
>

Various inspections (empty block/statement, empty catch block, redundant interface modifiers, modified parameter).

Changed:
<
<

Screenshot: http://www.intellij.org/twiki/pub/Main/InspectThisPlugin/EmptyBlock.jpg

>
>

Screenshots:

http://www.intellij.org/twiki/pub/Main/InspectThisPlugin/EmptyBlock.jpg http://www.intellij.org/twiki/pub/Main/InspectThisPlugin/RedundantSemicolons.jpg

Added:
>
>

Also checks for empty statements and redundant semicolons ("; class A {;};").

Changed:
<
<

There's no fix for this inspection.

>
>

Fix available only for empty statements and redundant semicolons.

Added:
>
>

0.4 (#833) - Jun 24, 2003

  • RFE [ 759547 ] Checking for empty statements.
  • RFE [ 759608 ] Checking for redundant semicolons ("; class A {;};").
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.3"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.4"}%

Added:
>
>

%META:FILEATTACHMENT{name="RedundantSemicolons.jpg" attr="" comment="" date="1056480546" path="C:\3\RedundantSemicolons.jpg" size="70704" user="TimurZambalayev" version="1.1"}%


 <<O>>  Difference Topic InspectThisPlugin (r1.3 - 23 Jun 2003 - TimurZambalayev)
Changed:
<
<

Various inspections (empty catch block, redundant interface modifiers).

>
>

Various inspections (empty block, empty catch block, redundant interface modifiers, modified parameter).

Added:
>
>

The fix removes the modifiers.

Modified parameter.

Screenshot: http://www.intellij.org/twiki/pub/Main/InspectThisPlugin/ModifiedParameter.jpg

http://www.intellij.net/tracker/idea/viewSCR?publicId=7738 ("Warnings for modified parameters")

There's no fix for this inspection.

Empty block.

Screenshot: http://www.intellij.org/twiki/pub/Main/InspectThisPlugin/EmptyBlock.jpg

Empty blocks: then, else, finally, code block, try, synchronized, switch, static initializer, instance initializer.

Exceptions: loop (for, while, do while), if-else.

There's no fix for this inspection.

Added:
>
>

0.3 (#833) - Jun 23, 2003

  • Bug [ 758833 ] Misses some empty catch blocks: {}.
  • RFE [ 758983 ] Modified parameter inspection.
  • RFE [ 759313 ] Empty block inspection (then, else, finally, etc).
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.2"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.3"}%

Changed:
<
<

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Various inspections (empty catch block, redundant interface modifiers)."}%

>
>

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Various inspections (empty block, empty catch block, redundant interface modifiers, modified parameter)."}%

Added:
>
>

%META:FILEATTACHMENT{name="ModifiedParameter.jpg" attr="" comment="" date="1056387907" path="C:\3\ModifiedParameter.jpg" size="64299" user="TimurZambalayev" version="1.1"}% %META:FILEATTACHMENT{name="EmptyBlock.jpg" attr="" comment="" date="1056387920" path="C:\3\EmptyBlock.jpg" size="78390" user="TimurZambalayev" version="1.1"}%


 <<O>>  Difference Topic InspectThisPlugin (r1.2 - 22 Jun 2003 - TimurZambalayev)
Changed:
<
<

Empty catch block inspection.

>
>

Various inspections (empty catch block, redundant interface modifiers).

Added:
>
>

Screenshot: http://www.intellij.org/twiki/pub/Main/InspectThisPlugin/EmptyCatchBlock.jpg

Added:
>
>

There's no fix for this inspection. Possible manual fixes:

  • Add comment.
  • Throw some exception.
  • Log the exception.
  • Remove the catch block.

Redundant interface modifiers.

Screenshot: http://www.intellij.org/twiki/pub/Main/InspectThisPlugin/RedundantInterfaceModifier.jpg

JLS, "Chapter 9. Interfaces" ( http://java.sun.com/docs/books/jls/second_edition/html/interfaces.doc.html )

http://www.intellij.net/tracker/idea/viewSCR?publicId=7573 ("Redundant modifier warnings in interfaces")

Added:
>
>

0.2 (#833) - Jun 22, 2003

  • RFE [ 758813 ] Redundant interface modifiers.
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.1"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.2"}%

Changed:
<
<

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Empty catch block inspection."}%

>
>

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Various inspections (empty catch block, redundant interface modifiers)."}%

Added:
>
>

%META:FILEATTACHMENT{name="EmptyCatchBlock.jpg" attr="" comment="" date="1056302809" path="C:\3\EmptyCatchBlock.jpg" size="56830" user="TimurZambalayev" version="1.1"}% %META:FILEATTACHMENT{name="RedundantInterfaceModifier.jpg" attr="" comment="" date="1056305213" path="C:\3\RedundantInterfaceModifier.jpg" size="70622" user="TimurZambalayev" version="1.1"}%


 <<O>>  Difference Topic InspectThisPlugin (r1.1 - 22 Jun 2003 - TimurZambalayev)
Added:
>
>

%META:TOPICINFO{author="TimurZambalayev" date="1056270360" format="1.0" version="1.1"}% %META:TOPICPARENT{name="TimurZambalayev"}%

Description.

Empty catch block inspection.

Warning.

This plugin uses non-published IDEA API.

Downloads, Bugs, RFEs:

http://sourceforge.net/projects/tz-ip/

How to deploy.

  • Copy the jar file (e.g. InspectThis.jar) to the plugins directory ($IDEA_HOME/plugins).
  • Restart IDEA.

Empty catch block.

Effective Java by Joshua Bloch ( http://java.sun.com/docs/books/effective/toc.html ). Item 47: Don't ignore exceptions. http://www.intellij.net/tracker/idea/viewSCR?publicId=9286 ("New inspection: look for 'swallowed' exceptions") http://www.intellij.net/tracker/idea/viewSCR?publicId=12189 ('"Yellow line" warning on empty catch clause')

How to build.

  1. Specify the location of $idea.home in build.properties
  2. ant clean main.

History.

0.1 (#833) - Jun 22, 2003

  • RFE [ 758690 ] Empty catch block.

-- TimurZambalayev - Jun 22, 2003 %META:FORM{name="IntelliJPluginWebForm"}% %META:FIELD{name="IntelliJPluginName" title="IntelliJPluginName" value="InspectThisPlugin"}% %META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.1"}% %META:FIELD{name="IntelliJPluginVendor" title="IntelliJPluginVendor" value="TimurZambalayev"}% %META:FIELD{name="IntelliJPluginBinary" title="IntelliJPluginBinary" value="http://sourceforge.net/projects/tz-ip/"}% %META:FIELD{name="IntelliJPluginSource" title="IntelliJPluginSource" value="http://sourceforge.net/projects/tz-ip/"}% %META:FIELD{name="IntelliJPluginClassification" title="IntelliJPluginClassification" value=""}% %META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginPackage"}% %META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Empty catch block inspection."}% %META:FIELD{name="TestedOnOS" title="TestedOnOS" value="OsWin2K"}% %META:FIELD{name="ShouldRunOnOS" title="ShouldRunOnOS" value="AnyOS"}%


View | Diffs | r1.4 | > | r1.3 | > | r1.2 | More

e d i t a t t a c h r e f - b y d i f f s
Ideas,requests,problems regarding this site? Send feedback.
Copyright @ 2000-2003 by the contribution authors. All material on this collaboration tool is the property of the contributing authors.

Revision r1.1 - 22 Jun 2003 - 08:26 GMT - TimurZambalayev
Revision r1.4 - 24 Jun 2003 - 18:54 GMT - TimurZambalayev
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding this site? Send feedback.