kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | ce9d16ecadced95a60b4057ba1330d4664c7092e47021ba541c7ecfdec690d44 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-09-17 21:48 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-09-17 21:48 +02:00 |
| Parents | ff0d4e2c4987 |
2 files changed
modified driver-core/src/main/java/com/datastax/driver/core/AggregateMetadata.java +3 −0
| @@ -293,6 +293,9 @@ | ||
| 293 | 293 | |
| 294 | 294 | @Override |
| 295 | 295 | public boolean equals(Object other) { |
| 296 | + if (other == this) | |
| 297 | + return true; | |
| 298 | + | |
| 296 | 299 | if (other instanceof AggregateMetadata) { |
| 297 | 300 | AggregateMetadata that = (AggregateMetadata)other; |
| 298 | 301 | return this.keyspace.getName().equals(that.keyspace.getName()) && |
modified driver-core/src/main/java/com/datastax/driver/core/FunctionMetadata.java +3 −0
| @@ -272,6 +272,9 @@ | ||
| 272 | 272 | |
| 273 | 273 | @Override |
| 274 | 274 | public boolean equals(Object other) { |
| 275 | + if (other == this) | |
| 276 | + return true; | |
| 277 | + | |
| 275 | 278 | if (other instanceof FunctionMetadata) { |
| 276 | 279 | FunctionMetadata that = (FunctionMetadata)other; |
| 277 | 280 | return this.keyspace.getName().equals(that.keyspace.getName()) && |