Code Duplication    Length = 19-22 lines in 2 locations

src/main/java/it/cnr/istc/pst/platinum/ai/framework/protocol/lang/TimelineProtocolDescriptor.java 1 location

@@ 114-135 (lines=22) @@
111
	/**
112
	 * 
113
	 */
114
	@Override
115
	public boolean equals(Object obj) {
116
		if (this == obj)
117
			return true;
118
		if (obj == null)
119
			return false;
120
		if (getClass() != obj.getClass())
121
			return false;
122
		TimelineProtocolDescriptor other = (TimelineProtocolDescriptor) obj;
123
		if (component == null) {
124
			if (other.component != null)
125
				return false;
126
		} else if (!component.equals(other.component))
127
			return false;
128
		if (id != other.id)
129
			return false;
130
		if (name == null) {
131
			if (other.name != null)
132
				return false;
133
		} else if (!name.equals(other.name))
134
			return false;
135
		return true;
136
	}
137
138
	/**

src/main/java/it/cnr/istc/pst/platinum/ai/framework/microkernel/lang/flaw/Flaw.java 1 location

@@ 115-133 (lines=19) @@
112
		return result;
113
	}
114
115
	@Override
116
	public boolean equals(Object obj) {
117
		if (this == obj)
118
			return true;
119
		if (obj == null)
120
			return false;
121
		if (getClass() != obj.getClass())
122
			return false;
123
		Flaw other = (Flaw) obj;
124
		if (component == null) {
125
			if (other.component != null)
126
				return false;
127
		} else if (!component.equals(other.component))
128
			return false;
129
		if (id != other.id)
130
			return false;
131
		if (type != other.type)
132
			return false;
133
		return true;
134
	}
135
	
136