mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
added synchronization to the static element cache
This commit is contained in:
parent
48eb4c4124
commit
9fcf0bce76
@ -63,7 +63,8 @@ public class Processor {
|
||||
/**
|
||||
* Cache for annotated elements
|
||||
*/
|
||||
static final Map<Class<? extends Annotation>, Set<Element>> elementCache = new HashMap<Class<? extends Annotation>,Set<Element>>();
|
||||
static final Map<Class<? extends Annotation>, Set<Element>> elementCache = Collections.synchronizedMap(
|
||||
new HashMap<Class<? extends Annotation>,Set<Element>>());
|
||||
|
||||
/**
|
||||
* Mapping of entity types to TypeElements which contribute to the generated class
|
||||
|
||||
Loading…
Reference in New Issue
Block a user