Code Duplication    Length = 12-12 lines in 4 locations

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

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

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

@@ 380-391 (lines=12) @@
377
	/**
378
	 * 
379
	 */
380
	@Override
381
	public boolean equals(Object obj) {
382
		if (this == obj)
383
			return true;
384
		if (obj == null)
385
			return false;
386
		if (getClass() != obj.getClass())
387
			return false;
388
		Goal other = (Goal) obj;
389
		if (id != other.id)
390
			return false;
391
		return true;
392
	}
393
	
394
	/**