Skip to content

Commit e1f159a

Browse files
committed
Remove deprecated FormatterStep.filterByContentPattern
1 parent 3c12c68 commit e1f159a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/src/main/java/com/diffplug/spotless/FormatterStep.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,6 @@ public interface FormatterStep extends Serializable, AutoCloseable {
4646
@Nullable
4747
String format(String rawUnix, File file) throws Exception;
4848

49-
/**
50-
* Returns a new FormatterStep which will only apply its changes
51-
* to files which pass the given filter.
52-
*
53-
* @param contentPattern
54-
* java regular expression used to filter out files which content doesn't contain pattern
55-
* @return FormatterStep
56-
*/
57-
@Deprecated
58-
default FormatterStep filterByContentPattern(String contentPattern) {
59-
return filterByContent(OnMatch.INCLUDE, contentPattern);
60-
}
61-
6249
/**
6350
* Returns a new {@code FormatterStep} which, observing the value of {@code formatIfMatches},
6451
* will only apply, or not, its changes to files which pass the given filter.

0 commit comments

Comments
 (0)