public static void add(Field f1, Field f2) {
Association a = null;
synchronized (AllPairsList) {
boolean alreadyExists = false;
for (Association scan : AllPairsList) {
<BUG>if (scan.field1 == f1 && scan.field2 == f2) {

alreadyExists = true;</BUG>
if (DEBUG.SCHEMA) Log.debug("an association already exists between " + f1 + " and " + f2);
break;

public static void add(Field f1, Field f2) {
Association a = null;
synchronized (AllPairsList) {
boolean alreadyExists = false;
for (Association scan : AllPairsList) {
if ((scan.field1 == f1 && scan.field2 == f2) ||
(scan.field1 == f2 && scan.field2 == f1)) {
alreadyExists = true;
if (DEBUG.SCHEMA) Log.debug("an association already exists between " + f1 + " and " + f2);
break;
