Github user d2r commented on a diff in the pull request:
https://github.com/apache/storm/pull/641#discussion_r35130923
--- Diff: storm-core/src/clj/backtype/storm/tuple.clj ---
@@ -15,8 +15,11 @@
;; limitations under the License.
(ns backtype.storm.tuple
- (:import [java.util List]))
+ (:import [java.util Arrays List]))
(defn list-hash-code
[^List alist]
- (.hashCode alist))
+ (if (nil? alist)
+ 1
+ (let [^"[Ljava.lang.Object;" array (.toArray alist)] ;; Object[]
+ (Arrays/deepHashCode array))))
--- End diff --
The type hint here seems to be unnecessary. I'll remove it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---