Now in 100 classes there is an ad:

public final static Log log = ... 

Jenkins in the "code inspection" section gives out, respectively, 100 extra warnings, advising to correct the writing style in capital letters (if there is something really important, it will be harder for me to notice among all this outrage).

I use Intellij IDEA. If you enable the global replacement by the expression above, only the declaration of such loggers automatically changes, and this mode does not take into account the use in the code, which causes many errors immediately.

Tell me how best to perform a replacement so that it does not affect the local variables log , or having such a prefix?

    1 answer 1

    notopad ++ search-> replace-find in files and replace one expression with another one. take a case-sensitive checkbox.

    • log is a frequently used combination of characters, if there is the same local variable, it will also be replaced, it turns out - TheSN
    • And if a regular expression, adding spaces before and after the word? - pavel
    • found the option "search by whole words" - TheSN