You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/12/01 14:36:52 UTC
(streampipes) 01/01: refactor: remove deprecated method `fromResources`
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch remove-deprecation-labels
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 8bfac2fc2f198e872097218af9d7a810f363064b
Author: bossenti <bo...@posteo.de>
AuthorDate: Fri Dec 1 15:35:03 2023 +0100
refactor: remove deprecated method `fromResources`
---
.../org/apache/streampipes/sdk/helpers/Labels.java | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Labels.java b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Labels.java
index 3b8cf01bf..c09b591de 100644
--- a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Labels.java
+++ b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Labels.java
@@ -20,22 +20,16 @@ package org.apache.streampipes.sdk.helpers;
import org.apache.streampipes.commons.resources.Resources;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
import java.io.IOException;
import java.net.URL;
import java.util.Properties;
public class Labels {
- private static final Logger LOG = LoggerFactory.getLogger(Labels.class);
-
/**
* @deprecated Externalize labels by using
* {@link org.apache.streampipes.sdk.builder.AbstractProcessingElementBuilder#withLocales(Locales...)}
* to ease future support for multiple languages.
- *
* Creates a new label with internalId, label and description. Fully-configured labels are required by static
* properties and are mandatory for event properties.
*
@@ -49,22 +43,6 @@ public class Labels {
return new Label(internalId, label, description);
}
- /**
- * @deprecated Externalize labels by using
- * {@link org.apache.streampipes.sdk.builder.AbstractProcessingElementBuilder#withLocales(Locales...)}
- * to ease future support for multiple languages.
- */
- @Deprecated(since = "0.90.0", forRemoval = true)
- public static Label fromResources(String resourceIdentifier, String resourceName) {
- try {
- return new Label(resourceName, findTitleLabel(resourceIdentifier, resourceName),
- findDescriptionLabel(resourceIdentifier, resourceName));
- } catch (Exception e) {
- LOG.error("Could not find resource " + resourceIdentifier);
- return new Label(resourceName, "", "");
- }
- }
-
/**
* Creates a new label only with an internal id.
* Static properties require a fully-specified label, see {@link #from(String, String, String)}