This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 581fd2581 refactor: remove deprecated method `fromResources` (#2261)
581fd2581 is described below

commit 581fd25810b23543ec1838de256b57b08510bbfa
Author: Tim <[email protected]>
AuthorDate: Fri Dec 1 19:57:21 2023 +0100

    refactor: remove deprecated method `fromResources` (#2261)
---
 .../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)}

Reply via email to