File tree 3 files changed +24
-8
lines changed
3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 20
20
:default (complement :stress )}
21
21
:plugins [[jonase/eastwood " 1.3.0" ]
22
22
[lein-cljfmt " 0.9.0" ]]
23
+ :eastwood {:ignored-faults {:reflection {clj-commons.byte-streams.graph [{:line 121 }
24
+ {:line 122 }
25
+ {:line 123 }
26
+ {:line 124 }]
27
+ byte-streams.graph [{:line 126 }
28
+ {:line 127 }
29
+ {:line 128 }
30
+ {:line 129 }]}}}
23
31
:global-vars {*warn-on-reflection* true }
24
32
:java-source-paths [" src" ]
25
33
:javac-options [" -target" " 1.8" " -source" " 1.8" ]
Original file line number Diff line number Diff line change 118
118
IConversionGraph
119
119
(assoc-conversion [_ src dst f cost]
120
120
(let [m' (assoc-in m [src dst] (Conversion. f cost))
121
+ ; ; NOTE: These method calls are
122
+ ; ; intentionally done without type-hints to
123
+ ; ; work around
124
+ ; ; https://github.com/clj-commons/byte-streams/issues/68
121
125
m' (if (and
122
- (nil? (.wrapper ^Type src))
123
- (nil? (.wrapper ^Type dst)))
124
- (let [src (.type ^Type src)
125
- dst (.type ^Type dst)]
126
+ (nil? (.wrapper src))
127
+ (nil? (.wrapper dst)))
128
+ (let [src (.type src)
129
+ dst (.type dst)]
126
130
(-> m'
127
131
(assoc-in [(Type. 'seq src) (Type. 'seq dst)]
128
132
(Conversion. (fn [x options] (map #(f % options) x)) cost))
Original file line number Diff line number Diff line change 113
113
IConversionGraph
114
114
(assoc-conversion [_ src dst f cost]
115
115
(let [m' (assoc-in m [src dst] (Conversion. f cost))
116
+ ; ; NOTE: These method calls are
117
+ ; ; intentionally done without type-hints to
118
+ ; ; work around
119
+ ; ; https://github.com/clj-commons/byte-streams/issues/68
116
120
m' (if (and
117
- (nil? (.wrapper ^Type src))
118
- (nil? (.wrapper ^Type dst)))
119
- (let [src (.type ^Type src)
120
- dst (.type ^Type dst)]
121
+ (nil? (.wrapper src))
122
+ (nil? (.wrapper dst)))
123
+ (let [src (.type src)
124
+ dst (.type dst)]
121
125
(-> m'
122
126
(assoc-in [(Type. 'seq src) (Type. 'seq dst)]
123
127
(Conversion. (fn [x options] (map #(f % options) x)) cost))
You can’t perform that action at this time.
0 commit comments