Skip to content

Commit

Permalink
remove helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfreder committed Oct 18, 2023
1 parent d3dabe9 commit 3e3965a
Show file tree
Hide file tree
Showing 15 changed files with 367 additions and 702 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -465,21 +465,21 @@ protected String[] getFormBodyParameterCaseInsensitive(String key) {
}
}

protected String getFirst(Map<String, List<String>> map, String key) {
public static String getFirst(Map<String, List<String>> map, String key) {
List<String> values = map.get(key);
if (values == null || values.size() == 0) {
return null;
}
return values.get(0);
}

protected void putSingle(Map<String, List<String>> map, String key, String value) {
public static void putSingle(Map<String, List<String>> map, String key, String value) {
List<String> values = findKey(map, key);
values.clear();
values.add(value);
}

protected List<String> findKey(Map<String, List<String>> map, String key) {
public static List<String> findKey(Map<String, List<String>> map, String key) {
List<String> values = map.get(key);
if (values == null) {
values = new ArrayList<>();
Expand Down

This file was deleted.

Loading

0 comments on commit 3e3965a

Please sign in to comment.