private boolean checkAttributes(Variable v, List<Attribute> list1, List<Attribute> list2, ObjFilter filter) { boolean ok = true; String name = v == null ? "global" : "variable " + v.getFullName(); for (Attribute att1 : list1) { if (filter == null || filter.attCheckOk(v, att1)) ok &= checkEach(name, att1, "file1", list1, "file2", list2, null); } for (Attribute att2 : list2) { if (filter == null || filter.attCheckOk(v, att2)) ok &= checkEach(name, att2, "file2", list2, "file1", list1, null); } return ok; }
private boolean checkAttributes(Variable v, List<Attribute> list1, List<Attribute> list2, ObjFilter filter) { boolean ok = true; String name = v == null ? "global" : "variable " + v.getFullName(); for (Attribute att1 : list1) { if (filter == null || filter.attCheckOk(v, att1)) ok &= checkEach(name, att1, "file1", list1, "file2", list2, null); } for (Attribute att2 : list2) { if (filter == null || filter.attCheckOk(v, att2)) ok &= checkEach(name, att2, "file2", list2, "file1", list1, null); } return ok; }