Changeset 7298 in josm


Ignore:
Timestamp:
2014-07-09T11:52:22+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10243 - concurrency issue in MapCSS tagchecker

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r7276 r7298  
    503503     * @return all errors for the given primitive, with or without those of "info" severity
    504504     */
    505     public Collection<TestError> getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity) {
     505    public synchronized Collection<TestError> getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity) {
    506506        final ArrayList<TestError> r = new ArrayList<>();
    507507        final Environment env = new Environment(p, new MultiCascade(), Environment.DEFAULT_LAYER, null);
     
    585585
    586586    @Override
    587     public int hashCode() {
     587    public synchronized int hashCode() {
    588588        final int prime = 31;
    589589        int result = super.hashCode();
     
    593593
    594594    @Override
    595     public boolean equals(Object obj) {
     595    public synchronized boolean equals(Object obj) {
    596596        if (this == obj)
    597597            return true;
Note: See TracChangeset for help on using the changeset viewer.