SSR

Admittedly, I'm a newbie to the Structural Search & Replace feature in Irida,
but I'm having some problems. I'm searching for any static initializers
in my code.

The template

static {
$Statement$;
}

where $Statement$ is set to unlimited isn't finding anything. In fact, I
ended up opening a class that I knew had one, and searched for the exact
text (in SSR) and still didn't find it. Am I missing something completely
basic and fundamental here, or is something wrong. Thanks.

Tobin


2 comments
Comment actions Permalink

Hi,

SSR understands only fixed patterns: e.g. expr, statement, class,
javadoc, so search for static initializers should be with pattern like

class $SomeClass$ {
static { $Statement$; }
}

Tobin Juday wrote:

Admittedly, I'm a newbie to the Structural Search & Replace feature in
Irida, but I'm having some problems. I'm searching for any static
initializers in my code.

The template
static {
$Statement$;
}

where $Statement$ is set to unlimited isn't finding anything. In fact,
I ended up opening a class that I knew had one, and searched for the
exact text (in SSR) and still didn't find it. Am I missing something
completely basic and fundamental here, or is something wrong. Thanks.

Tobin



--
Maxim Mossienko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi,

SSR understands only fixed patterns: e.g. expr, statement, class,
javadoc, so search for static initializers should be with pattern like

class $SomeClass$ {
static { $Statement$; }
}


Ahhh, that's what I was missing. Thanks Maxim.

Tobin


0

Please sign in to leave a comment.