Skip to content
Browse files

GROOVY-5803: wasted work in "ClassNode.addMixin" (minor refactor)

  • Loading branch information...
1 parent 1d07d25 commit 5cbe57d927fd3dac3a95336a20846b3b5b6cdcfb @paulk-asert paulk-asert committed Nov 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/org/codehaus/groovy/ast/ClassNode.java
View
2 src/main/org/codehaus/groovy/ast/ClassNode.java
@@ -663,6 +663,7 @@ public void addInterface(ClassNode type) {
for (ClassNode existing : interfaces) {
if (type.equals(existing)) {
skip = true;
+ break;
}
}
if (!skip) {
@@ -692,6 +693,7 @@ public void addMixin(MixinNode mixin) {
for (MixinNode existing : mixins) {
if (mixin.equals(existing)) {
skip = true;
+ break;
}
}
if (!skip) {

0 comments on commit 5cbe57d

Please sign in to comment.
Something went wrong with that request. Please try again.