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 c7178d2
Show file tree
Hide file tree
Showing 14 changed files with 367 additions and 688 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

Large diffs are not rendered by default.

Loading

0 comments on commit c7178d2

Please sign in to comment.