Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-06-10 15:41:15 -0400
committerStephan Herrmann2010-06-10 15:41:15 -0400
commit1568addd24f4f322b97b6d0fcce124b312431e0d (patch)
tree3862ceeff530f1c1be6dd497460aea14f7606636 /othersrc/OTRE
parent5bcb09402b2734161c456b67853cb242c6e19b71 (diff)
downloadorg.eclipse.objectteams-1568addd24f4f322b97b6d0fcce124b312431e0d.tar.gz
org.eclipse.objectteams-1568addd24f4f322b97b6d0fcce124b312431e0d.tar.xz
org.eclipse.objectteams-1568addd24f4f322b97b6d0fcce124b312431e0d.zip
apply de Morgan's law (I think this is easier to read now).
Diffstat (limited to 'othersrc/OTRE')
-rw-r--r--othersrc/OTRE/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/othersrc/OTRE/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java b/othersrc/OTRE/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java
index 793c04d7a..844d930cd 100644
--- a/othersrc/OTRE/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java
+++ b/othersrc/OTRE/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java
@@ -1655,9 +1655,9 @@ public abstract class ObjectTeamsTransformation
* @return true if this is a team which has to be extended
*/
protected static boolean classNeedsTeamExtensions(ClassGen cg) {
- return !(( (cg.getAccessFlags() & OTConstants.TEAM) == 0)
- || (cg.getClassName().equals(OTConstants.teamClassName))
- || ((cg.getAccessFlags() & Constants.ACC_ABSTRACT) != 0));
+ return ((cg.getAccessFlags() & OTConstants.TEAM) != 0) // must be a team
+ && ((cg.getAccessFlags() & Constants.ACC_ABSTRACT) == 0) // and non-abstract
+ && !(cg.getClassName().equals(OTConstants.teamClassName)); // and not o.o.Team itself.
}
/**

Back to the top