Code Duplication    Length = 12-12 lines in 4 locations

src/main/java/it/cnr/istc/pst/platinum/control/lang/Goal.java 1 location

@@ 363-374 (lines=12) @@
360
	/**
361
	 * 
362
	 */
363
	@Override
364
	public boolean equals(Object obj) {
365
		if (this == obj)
366
			return true;
367
		if (obj == null)
368
			return false;
369
		if (getClass() != obj.getClass())
370
			return false;
371
		Goal other = (Goal) obj;
372
		if (id != other.id)
373
			return false;
374
		return true;
375
	}
376
	
377
	/**

src/main/java/it/cnr/istc/pst/platinum/ai/framework/domain/component/resource/ResourceEvent.java 1 location

@@ 119-130 (lines=12) @@
116
	/**
117
	 * 
118
	 */
119
	@Override
120
	public boolean equals(Object obj) {
121
		if (this == obj)
122
			return true;
123
		if (obj == null)
124
			return false;
125
		if (getClass() != obj.getClass())
126
			return false;
127
		ResourceEvent<?> other = (ResourceEvent<?>) obj;
128
		if (id != other.id)
129
			return false;
130
		return true;
131
	}
132
133
	/**

src/main/java/it/cnr/istc/pst/platinum/ai/framework/parameter/lang/Parameter.java 1 location

@@ 100-111 (lines=12) @@
97
	/**
98
	 * 
99
	 */
100
	@Override
101
	public boolean equals(Object obj) {
102
		if (this == obj)
103
			return true;
104
		if (obj == null)
105
			return false;
106
		if (getClass() != obj.getClass())
107
			return false;
108
		Parameter<?> other = (Parameter<?>) obj;
109
		if (id != other.id)
110
			return false;
111
		return true;
112
	}
113
}
114

src/main/java/it/cnr/istc/pst/platinum/control/lang/PlatformMessage.java 1 location

@@ 43-54 (lines=12) @@
40
	/**
41
	 * 
42
	 */
43
	@Override
44
	public boolean equals(Object obj) {
45
		if (this == obj)
46
			return true;
47
		if (obj == null)
48
			return false;
49
		if (getClass() != obj.getClass())
50
			return false;
51
		PlatformObservation<?> other = (PlatformObservation<?>) obj;
52
		if (id != other.id)
53
			return false;
54
		return true;
55
	}
56
}
57