package com.siyeh.igtest.performance.dynamic_regex_replaceable_by_compiled_pattern; class DynamicRegex { void m(String s) { "asdf::asdf".<warning descr="'split()' could be replaced with compiled 'java.util.regex.Pattern' construct">split</warning>("::"); s.<warning descr="'matches()' could be replaced with compiled 'java.util.regex.Pattern' construct">matches</warning>("test"); s.<warning descr="'replaceAll()' could be replaced with compiled 'java.util.regex.Pattern' construct">replaceAll</warning>("all", "nothing"); s.<warning descr="'replaceFirst()' could be replaced with compiled 'java.util.regex.Pattern' construct">replaceFirst</warning>("first", "second"); s.<warning descr="'split()' could be replaced with compiled 'java.util.regex.Pattern' construct">split</warning>("a"); s.<warning descr="'split()' could be replaced with compiled 'java.util.regex.Pattern' construct">split</warning>("\\\\"); "abba".<warning descr="'replace()' could be replaced with compiled 'java.util.regex.Pattern' construct">replace</warning>("bb", "aa"); "abba".replace('b', 'a'); } }