perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

fix issue #318 change HashMap to ConcurrentHashMap #1217

Closed Lloyd-Pottiger closed 3 years ago

Lloyd-Pottiger commented 3 years ago

ExceptionMapper is accessed from multiple request threads but the underlying Map is a HashMap; This commit replace hashmap with ConcurrentHashMap which is multi-thread safe.