Revision 38106
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureReference.java | ||
---|---|---|
150 | 150 |
if (this.oid != null) { |
151 | 151 |
return this.oid.equals(other.oid); |
152 | 152 |
} |
153 |
for (int i = 0; i < this.pk.length; i++) {
|
|
154 |
if (!this.pk[i].equals(other.pk[i])) {
|
|
153 |
if(pk != null) {
|
|
154 |
if(other.pk == null) {
|
|
155 | 155 |
return false; |
156 | 156 |
} |
157 |
for (int i = 0; i < this.pk.length; i++) { |
|
158 |
if (!this.pk[i].equals(other.pk[i])) { |
|
159 |
return false; |
|
160 |
} |
|
161 |
} |
|
157 | 162 |
} |
158 | 163 |
return true; |
159 | 164 |
} |
Also available in: Unified diff