Browse files

CLJ-846 detect java 7 javadoc

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information...
1 parent eef0ffe commit be9ff491c4b2c23790fb316804551768960e355d @stuarthalloway stuarthalloway committed Oct 7, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/clj/clojure/java/javadoc.clj
View
7 src/clj/clojure/java/javadoc.clj
@@ -19,9 +19,10 @@
(def ^:dynamic *local-javadocs* (ref (list)))
(def ^:dynamic *core-java-api*
- (if (= "1.5" (System/getProperty "java.specification.version"))
- "http://java.sun.com/j2se/1.5.0/docs/api/"
- "http://java.sun.com/javase/6/docs/api/"))
+ (case (System/getProperty "java.specification.version")
+ "1.5" "http://java.sun.com/j2se/1.5.0/docs/api/"
+ "1.6" "http://java.sun.com/javase/6/docs/api/"
+ "http://java.sun.com/javase/7/docs/api/"))
(def ^:dynamic *remote-javadocs*
(ref (sorted-map

0 comments on commit be9ff49

Please sign in to comment.