-
- if (obj instanceof User) {
-
- User temp = (User)obj;
- boolean thcycle;
- boolean tmcycle;
- if (this._fullname != null) {
- if (temp._fullname == null) return false;
- if (this._fullname != temp._fullname) {
- thcycle=org.castor.util.CycleBreaker.startingToCycle(this._fullname);
- tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._fullname);
- if (thcycle!=tmcycle) {
- if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._fullname); };
- if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._fullname); };
- return false;
- }
- if (!thcycle) {
- if (!this._fullname.equals(temp._fullname)) {
- org.castor.util.CycleBreaker.releaseCycleHandle(this._fullname);
- org.castor.util.CycleBreaker.releaseCycleHandle(temp._fullname);
- return false;
- }
- org.castor.util.CycleBreaker.releaseCycleHandle(this._fullname);
- org.castor.util.CycleBreaker.releaseCycleHandle(temp._fullname);
- }
- }
- } else if (temp._fullname != null)
- return false;
- if (this._organization != null) {
- if (temp._organization == null) return false;
- if (this._organization != temp._organization) {
- thcycle=org.castor.util.CycleBreaker.startingToCycle(this._organization);
- tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._organization);
- if (thcycle!=tmcycle) {
- if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._organization); };
- if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._organization); };
- return false;
- }
- if (!thcycle) {
- if (!this._organization.equals(temp._organization)) {
- org.castor.util.CycleBreaker.releaseCycleHandle(this._organization);
- org.castor.util.CycleBreaker.releaseCycleHandle(temp._organization);
- return false;
- }
- org.castor.util.CycleBreaker.releaseCycleHandle(this._organization);
- org.castor.util.CycleBreaker.releaseCycleHandle(temp._organization);
- }
- }
- } else if (temp._organization != null)
- return false;
- return true;
+ }
+ if (!thcycle) {
+ if (!this._fullname.equals(temp._fullname)) {
+ org.castor.util.CycleBreaker.releaseCycleHandle(this._fullname);
+ org.castor.util.CycleBreaker.releaseCycleHandle(temp._fullname);
+ return false;
+ }
+ org.castor.util.CycleBreaker.releaseCycleHandle(this._fullname);
+ org.castor.util.CycleBreaker.releaseCycleHandle(temp._fullname);
+ }