vote up 0 vote down
star

Hallo zusammen,

gibt es ein Tool, das die typischen Codestellen, welche ConcurrentModificationExceptions hervorrufen können, aus dem Stand entdeckt? Ich hatte mit FindBugs und PMD bisher kein Erfolg.

Typischer Code:

for(String s : stringSet)
{
  if(s.equals("foo"))
  {
    stringSet.remove(s);
  }
}
flag

1 Answer

vote up 0 vote down

Ich würde noch ein paar andere statische Code Analyzer ausprobieren. Hier ist eine Liste von Tools die das ggf. entdecken können.

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.