The following code:
for (Iterator iterator = reactions.iterator();
ReactionCluster reactionCluster = (ReactionCluster)
if (reactionDependenciesByName.size() % 25 == 0)
logger.warning("processed " + reactionDependenciesByName.size() + "
throws a warning about string concatenation in a for loop.
I am a bit confused about just what it wants me to do here to fix it -
yes, a string is being concatenated, but that string is also created and
consumed in the same for loop, so it does not produce an endless string,
and a StringBuffer is not really a better choice.
Sure, I can turn the warning off, but this seems a bit aggressive.
Java and database consulting for the life sciences