11/*
2- * Copyright 2016 DiffPlug
2+ * Copyright 2016-2021 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.
@@ -146,6 +146,7 @@ private static <T> T createInstance(Class<? extends T> clazz) {
146146 * @throws BundleException Throws exception in case the setup failed.
147147 * @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
148148 */
149+ @ Deprecated
149150 public synchronized static boolean setup () throws BundleException {
150151 return setup (plugins -> plugins .applyDefault ());
151152 }
@@ -159,6 +160,7 @@ public synchronized static boolean setup() throws BundleException {
159160 * @throws BundleException Throws exception in case the setup failed.
160161 * @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
161162 */
163+ @ Deprecated
162164 public synchronized static boolean setup (Consumer <SpotlessEclipsePluginConfig > plugins ) throws BundleException {
163165 return setup (config -> config .applyDefault (), plugins );
164166 }
@@ -172,6 +174,7 @@ public synchronized static boolean setup(Consumer<SpotlessEclipsePluginConfig> p
172174 * @throws BundleException Throws exception in case the setup failed.
173175 * @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
174176 */
177+ @ Deprecated
175178 public synchronized static boolean setup (Consumer <SpotlessEclipseServiceConfig > config , Consumer <SpotlessEclipsePluginConfig > plugins ) throws BundleException {
176179 return setup (core -> core .applyDefault (), config , plugins );
177180 }
@@ -186,6 +189,7 @@ public synchronized static boolean setup(Consumer<SpotlessEclipseServiceConfig>
186189 * @throws BundleException Throws exception in case the setup failed.
187190 * @deprecated Use {@link #setup(SpotlessEclipseConfig)} instead.
188191 */
192+ @ Deprecated
189193 public synchronized static boolean setup (Consumer <SpotlessEclipseCoreConfig > core , Consumer <SpotlessEclipseServiceConfig > services , Consumer <SpotlessEclipsePluginConfig > plugins ) throws BundleException {
190194 if (null != INSTANCE ) {
191195 return false ;
0 commit comments