1
1
/*
2
- * Copyright 2016 DiffPlug
2
+ * Copyright 2016-2021 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -146,6 +146,7 @@ private static <T> T createInstance(Class<? extends T> clazz) {
146
146
* @throws BundleException Throws exception in case the setup failed.
147
147
* @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
148
148
*/
149
+ @ Deprecated
149
150
public synchronized static boolean setup () throws BundleException {
150
151
return setup (plugins -> plugins .applyDefault ());
151
152
}
@@ -159,6 +160,7 @@ public synchronized static boolean setup() throws BundleException {
159
160
* @throws BundleException Throws exception in case the setup failed.
160
161
* @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
161
162
*/
163
+ @ Deprecated
162
164
public synchronized static boolean setup (Consumer <SpotlessEclipsePluginConfig > plugins ) throws BundleException {
163
165
return setup (config -> config .applyDefault (), plugins );
164
166
}
@@ -172,6 +174,7 @@ public synchronized static boolean setup(Consumer<SpotlessEclipsePluginConfig> p
172
174
* @throws BundleException Throws exception in case the setup failed.
173
175
* @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
174
176
*/
177
+ @ Deprecated
175
178
public synchronized static boolean setup (Consumer <SpotlessEclipseServiceConfig > config , Consumer <SpotlessEclipsePluginConfig > plugins ) throws BundleException {
176
179
return setup (core -> core .applyDefault (), config , plugins );
177
180
}
@@ -186,6 +189,7 @@ public synchronized static boolean setup(Consumer<SpotlessEclipseServiceConfig>
186
189
* @throws BundleException Throws exception in case the setup failed.
187
190
* @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
188
191
*/
192
+ @ Deprecated
189
193
public synchronized static boolean setup (Consumer <SpotlessEclipseCoreConfig > core , Consumer <SpotlessEclipseServiceConfig > services , Consumer <SpotlessEclipsePluginConfig > plugins ) throws BundleException {
190
194
if (null != INSTANCE ) {
191
195
return false ;
0 commit comments