structural search and replace help needed

I have two classes with duplicate static constants. It's similar to this
case:

class A {
static public final int FOO = 1;
}

and

class B {
static public final int BAR = 1;
}

It turns out that B.BAR is actually the same thing as A.FOO so I would
like to search and replace all usages of B.BAR with A.FOO. Is there some
easy way to do this?

Cory

1 comment
Comment actions Permalink

Can't you just define B.BAR = A.FOO and then inline it?

/Mikael

"Cory R" <cory@example.com> wrote in message
news:epr8i0$foh$1@is.intellij.net...
>I have two classes with duplicate static constants. It's similar to this
>case:
>

class A {
static public final int FOO = 1;
}

>

and

>

class B {
static public final int BAR = 1;
}

>

It turns out that B.BAR is actually the same thing as A.FOO so I would
like to search and replace all usages of B.BAR with A.FOO. Is there some
easy way to do this?

>

Cory



0

Please sign in to leave a comment.