From bbbf78aa40436aec239b1bf989f904a20f6abfd7 Mon Sep 17 00:00:00 2001 From: oakes Date: Mon, 31 Mar 2014 01:18:46 -0400 Subject: [PATCH] Fix how static fields are displayed --- doclet/src/clojure/play_clj_doclet/core.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doclet/src/clojure/play_clj_doclet/core.clj b/doclet/src/clojure/play_clj_doclet/core.clj index f2cf18a..f695124 100644 --- a/doclet/src/clojure/play_clj_doclet/core.clj +++ b/doclet/src/clojure/play_clj_doclet/core.clj @@ -43,8 +43,8 @@ (cond (isa? (type d) ExecutableMemberDoc) {:args (->> d .parameters (map parse-param) vec)} - (isa? (type d) FieldDoc) - {:args [[(-> d .type .typeName) "val"]]}))) + (and (isa? (type d) FieldDoc) (not (.isStatic d))) + {:args [[(-> d .type .typeName) "value"]]}))) (defn parse-class-entry [^ClassDoc c type]