This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 50857f82 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Make methods static where possible

parent 94613f27
2 merge requests!17Initial Merge to Prepare Release 1.0.0,!2Add gitlab metadata
......@@ -195,7 +195,7 @@ public class MetaDataRepository {
}
}
private void addTo(Map<String, Map<String, Integer>> completionMap, List<String> tokenList, String target) {
private static void addTo(Map<String, Map<String, Integer>> completionMap, List<String> tokenList, String target) {
tokenList.forEach(token -> {
Map<String, Integer> existingTargets = completionMap.get(token);
if (existingTargets == null) { // none found
......@@ -299,7 +299,7 @@ public class MetaDataRepository {
}
/** Helper **/
private void forEachTerm(String searchTerm, Consumer<String> exec) {
private static void forEachTerm(String searchTerm, Consumer<String> exec) {
if (searchTerm == null)
return;
StringTokenizer st = new StringTokenizer(searchTerm);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment