groovy/groovy-core — pull request #116 by upcrob (2013-01-19 17:15:42+00:00)
Title: intersect() refactor

Added a check for right.isEmpty() to prevent a new TreeSet from being created and left elements from being added if right is empty and left is non-empty.