Remove immediate = true from all Components (#8615)

We recommend not to use this on add-ons.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
This commit is contained in:
Hilbrand Bouwkamp
2020-10-02 05:27:01 +02:00
committed by GitHub
parent f06068a189
commit 003c3af985
153 changed files with 155 additions and 157 deletions

View File

@@ -30,7 +30,7 @@ import org.osgi.service.component.annotations.Reference;
* @author Markus Michels - Initial contribution
*/
@NonNullByDefault
@Component(service = GreeTranslationProvider.class, immediate = true, configurationPid = "localization.gree")
@Component(service = GreeTranslationProvider.class, configurationPid = "localization.gree")
public class GreeTranslationProvider {
private final Bundle bundle;

View File

@@ -49,7 +49,7 @@ import com.google.gson.JsonSyntaxException;
* @author Markus Michels - Refactoring, adapted to OH 2.5x
*/
@NonNullByDefault
@Component(service = GreeDeviceFinder.class, immediate = true, configurationPid = "devicefinder.gree")
@Component(service = GreeDeviceFinder.class, configurationPid = "devicefinder.gree")
public class GreeDeviceFinder {
private final Logger logger = LoggerFactory.getLogger(GreeDeviceFinder.class);
private static final Gson gson = (new GsonBuilder()).create();

View File

@@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory;
*
*/
@NonNullByDefault
@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.gree")
@Component(service = DiscoveryService.class, configurationPid = "discovery.gree")
public class GreeDiscoveryService extends AbstractDiscoveryService {
private static final int TIMEOUT_SEC = 10;
private final Logger logger = LoggerFactory.getLogger(GreeDiscoveryService.class);