Configure project descriptor with directives

Implement optimize import test with redesigned class
This commit is contained in:
Nikolay Krasko
2013-05-20 16:28:04 +04:00
parent e98ee752bf
commit f33792a567
5 changed files with 41 additions and 46 deletions
@@ -64,6 +64,10 @@ public final class InTextDirectivesUtils {
return result;
}
public static boolean isDirectiveDefined(String fileText, String directive) {
return !findListWithPrefixes(fileText, directive).isEmpty();
}
@Nullable
public static String findStringWithPrefixes(String fileText, String... prefixes) {
List<String> strings = findListWithPrefixes(fileText, prefixes);