« first day (4604 days earlier)      last day (334 days later) » 

12:00 AM
"Never face facts; if you do, you'll never get up in the morning." -- Marlo Thomas (source)
 
 
6 hours later…
6:00 AM
uses java.util.Hashtable
 
 
5 hours later…
10:38 AM
I came across the following Java Spring code from a friend and I was wondering if it is thread-safe, especially the repository's `saveAll()` call in CompletableFuture.runAsync() :

class MyService {
@Autowired CoordinatesRepository coordiatesRepository;

public void savePdfCoordinatesData(List<List<PdfCoordinates>> filesData) {
int availableCores = Runtime.getRuntime().availableProcessors();
int noOfThreads = Math.max(availableCores, 2); // Use a minimum of 2 threads

ExecutorService executorService = Executors.newFixedThreadPool(noOfThreads);
 
 
3 hours later…
1:43 PM
that would depend on how the repository is implemented
 

« first day (4604 days earlier)      last day (334 days later) »