deps: Refactor dependencies (#3224)

* remove spring dep
move junit, logging, mockito under dep mgmt

* upgrade anti-corruption-layer deps

* async method invocation

* balking, bloc

* bridge to bytecode

* caching

* callback - cqrs

* component - health check

* hexagonal - metadata mapping

* rest of the patterns

* remove checkstyle, take spotless into use
This commit is contained in:
Ilkka Seppälä
2025-03-29 19:34:27 +02:00
committed by GitHub
parent 371439aeaa
commit 0ca162a55c
1863 changed files with 14408 additions and 17637 deletions
@@ -30,26 +30,24 @@ import java.util.Map;
import java.util.logging.Logger;
/**
* The Main class serves as the entry point for executing the MapReduce program.
* It processes a list of text inputs, applies the MapReduce pattern, and prints the results.
* The Main class serves as the entry point for executing the MapReduce program. It processes a list
* of text inputs, applies the MapReduce pattern, and prints the results.
*/
public class Main {
private static final Logger logger = Logger.getLogger(Main.class.getName());
/**
* The main method initiates the MapReduce process and displays the word count results.
*
* @param args Command-line arguments (not used).
*/
public static void main(String[] args) {
List<String> inputs = Arrays.asList(
"Hello world hello",
"MapReduce is fun",
"Hello from the other side",
"Hello world"
);
List<String> inputs =
Arrays.asList(
"Hello world hello", "MapReduce is fun", "Hello from the other side", "Hello world");
List<Map.Entry<String, Integer>> result = MapReduce.mapReduce(inputs);
for (Map.Entry<String, Integer> entry : result) {
logger.info(entry.getKey() + ": " + entry.getValue());
}
}
}
}