File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 373
373
; ; 8. clojure 1.10.1 doesn't have 13. We just backport them
374
374
; ; regardless of clojure version
375
375
(zipmap [" java." " javax." " org.ietf.jgss." " org.omg." " org.w3c.dom." " org.xml.sax" ]
376
- (repeat (backported-javadoc-bases misc/java-api-version)))))
376
+ (repeat (or (backported-javadoc-bases misc/java-api-version)
377
+ (backported-javadoc-bases 11 ))))))
377
378
path))
378
379
379
380
; ;; ## Initialization
Original file line number Diff line number Diff line change 294
294
(is (= " http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/lambda/AWSLambdaClient.html"
295
295
(get-url ['com.amazonaws.services.lambda.AWSLambdaClient])))
296
296
(is (= " https://kafka.apache.org/090/javadoc/org/apache/kafka/clients/consumer/ConsumerConfig.html"
297
- (get-url '[org.apache.kafka.clients.consumer.ConsumerConfig])))))))
297
+ (get-url '[org.apache.kafka.clients.consumer.ConsumerConfig])))))
298
+ (testing " Unrecognized java version doesn't blank out the javadocs"
299
+ (with-redefs [misc/java-api-version 12345
300
+ cache (atom {})]
301
+ (is (= " https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html"
302
+ (get-url ['java.lang.String])))))))
298
303
299
304
(deftest class-resolution-test
300
305
(let [ns (ns-name *ns*)]
You can’t perform that action at this time.
0 commit comments