Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove deprecated methods from parameter extractor #2156

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

bossenti
Copy link
Contributor

@bossenti bossenti commented Nov 8, 2023

Purpose

Removing methods from the AbstractParameterExtractor that are marked as deprecated since release 0.90.0.

Deprecations

The following methods have been deprecated since 0.90.0 and are now removed:

  • String fileContentsAsString(String internalName)
  • byte[] fileContentsAsByteArray(String internalName)
  • InputStream fileContentsAsStream(String internalName)
  • String selectedFileFetchUrl(String internalName)

They all can be replaced by using the FileApi of the StreamPipesClient.

In addition, <V> V selectedSingleValueFromRemote(String internalName, Class<V> targetClass) is removed which can be replaced by selectedSingleValue(String, Class)

Remarks

PR introduces (a) breaking change(s): no
PR introduces (a) deprecation(s): yes

@bossenti bossenti added the deprecation Assigned to pull requests or issues that introduce a deprecation. label Nov 8, 2023
@bossenti bossenti added this to the 0.95.0 milestone Nov 8, 2023
@github-actions github-actions bot added java Pull requests that update Java code backend Everything that is related to the StreamPipes backend labels Nov 8, 2023
@bossenti bossenti merged commit b1daad1 into dev Nov 9, 2023
18 checks passed
@bossenti bossenti deleted the remove-deprecations-parameter-extractor branch November 9, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Everything that is related to the StreamPipes backend deprecation Assigned to pull requests or issues that introduce a deprecation. java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants