Skip to content

Commit e30c287

Browse files
vemvbbatsov
authored andcommitted
Address reflection warnings
1 parent 727c29e commit e30c287

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/orchard/java/legacy_parser.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
.getKind
8585
.asInterface)
8686
ClassTree))
87-
(into-array)
87+
^"[Ljava.lang.Object;" (into-array)
8888
(List/from))]
8989
(.main enter (List/of tree))
9090
(RootDocImpl. docenv classes (List/nil) (List/nil)))))

src/orchard/xref.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
(defn- fn->sym
3232
"Convert a function value `f` to symbol."
3333
[f]
34-
(symbol (Compiler/demunge (.getName (type f)))))
34+
(symbol (Compiler/demunge (.getName ^Class (type f)))))
3535

3636
(defn- as-var
3737
"Convert `thing` to a var."

0 commit comments

Comments
 (0)