Skip to content

Commit 4c06539

Browse files
authored
Remove all @deprecated except Rome/Biome (#2118)
2 parents 5968076 + 565112a commit 4c06539

File tree

6 files changed

+1
-384
lines changed

6 files changed

+1
-384
lines changed

lib-extra/src/main/java/com/diffplug/spotless/extra/EquoBasedStepBuilder.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ public abstract class EquoBasedStepBuilder {
5353
private Iterable<File> settingsFiles = new ArrayList<>();
5454
private Map<String, String> p2Mirrors = Map.of();
5555

56-
/** @deprecated if you use this constructor you *must* call {@link #setVersion(String)} before calling {@link #build()} */
57-
@Deprecated
58-
public EquoBasedStepBuilder(String formatterName, Provisioner mavenProvisioner, SerializedFunction<State, FormatterFunc> stateToFormatter) {
59-
this(formatterName, mavenProvisioner, null, stateToFormatter);
60-
}
61-
6256
/** Initialize valid default configuration, taking latest version */
6357
public EquoBasedStepBuilder(String formatterName, Provisioner mavenProvisioner, @Nullable String defaultVersion, SerializedFunction<State, FormatterFunc> stateToFormatter) {
6458
this.formatterName = formatterName;

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 DiffPlug
2+
* Copyright 2016-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -71,12 +71,6 @@ public String apply(String unix) throws Exception {
7171
};
7272
}
7373

74-
/** @deprecated synonym for {@link #ofDangerous(AutoCloseable, FormatterFunc)} */
75-
@Deprecated
76-
public static Closeable of(AutoCloseable closeable, FormatterFunc function) {
77-
return ofDangerous(closeable, function);
78-
}
79-
8074
@FunctionalInterface
8175
interface ResourceFunc<T extends AutoCloseable> {
8276
String apply(T resource, String unix) throws Exception;

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.

lib/src/main/java/com/diffplug/spotless/generic/PipeStepPair.java

Lines changed: 0 additions & 214 deletions
This file was deleted.

testlib/src/main/java/com/diffplug/spotless/JreVersion.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)