structural search in 2242

I am looking for all empty catch statements. If I search for


I get unsupported pattern error. I have to use



While this is fine, I am wondering why number 1 does not work.

Also after I got the results, when I tried to export to a file, I got an empty file even though the structural seatch found 44 matches. What am I doing wrong?

I am using 2242 on linux.

1 comment

Hi,

Vinay Moharil wrote:

I am looking for all empty catch statements. If I search for
}]]>


SS requires for pattern to be ones of the welformed statement,
expression, class or javadoc comment,

just catch($ExceptionType$ $ExceptionDcl$) {} does not represent well
formed statement so SS does not parse it correctly.

I get unsupported pattern error. I have to use

$TryStatement$; > } catch($ExceptionType$ $ExceptionDcl$) { > }]]>

While this is fine, I am wondering why number 1 does not work.

Also after I got the results, when I tried to export to a file, I got an empty file even though the structural seatch found 44 matches. What am I doing wrong?

Looks like 'export' bug, please, submit issue to tracker.


I am using 2242 on linux.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.