|
|
| 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: |
> > |
- 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"}% |
|
|
| 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.
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.
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: |
> > |
- 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"}% |
|
|
| 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.
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: |
> > |
- 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"}% |
|
|
| Added: |
> > |
%META:TOPICINFO{author="TimurZambalayev" date="1056270360" format="1.0" version="1.1"}%
%META:TOPICPARENT{name="TimurZambalayev"}%
Empty catch block inspection.
This plugin uses non-published IDEA API.
Downloads, Bugs, RFEs:
http://sourceforge.net/projects/tz-ip/
- Copy the jar file (e.g. InspectThis.jar) to the plugins directory ($IDEA_HOME/plugins).
- Restart IDEA.
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')
- Specify the location of $idea.home in build.properties
- ant clean main.
- 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
|
|