File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
com.avaloq.tools.ddk.xtext/src/com/avaloq/tools/ddk/xtext/scoping Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,11 @@ public synchronized IEObjectDescription getSingleElement(final QualifiedName nam
142142 while (result == null && contentsIterator .hasNext ()) {
143143 result = contentsIterator .next ();
144144 QualifiedName thisName = result .getName ();
145- if (isIgnoreCase ()) {
146- thisName = thisName .toLowerCase (); // NOPMD UseLocaleWithCaseConversions
147- }
148- if (!isIgnoreCase () || nameCache .get (thisName ) == null ) {
145+ if (!isIgnoreCase ()) {
149146 nameCache .put (thisName , result );
147+ } else {
148+ thisName = thisName .toLowerCase (); // NOPMD UseLocaleWithCaseConversions
149+ nameCache .putIfAbsent (thisName , result );
150150 }
151151 if (!lookupName .equals (thisName )) {
152152 result = null ; // NOPMD NullAssignment
You can’t perform that action at this time.
0 commit comments