If (text ...) is an invocation of a macro, not a function, then that type tag is most likely silently ignored by the Clojure compiler, not hurting anything, but not helping anything, either.
Eastwood [1] can warn you about such useless type tags in your Clojure code, via the :unused-meta-on-macro [2] linter. Some other incorrect type tags are checked for via the :wrong-tag linter [3]. Not all kinds of Eastwood checks are enabled by default, but those two are. Andy [1] https://github.com/jonase/eastwood [2] https://github.com/jonase/eastwood#unused-meta-on-macro [3] https://github.com/jonase/eastwood#wrong-tag On Fri, Feb 27, 2015 at 9:51 AM, Cecil Westerhof <cldwester...@gmail.com> wrote: > 2015-02-27 17:30 GMT+01:00 Dave Ray <dave...@gmail.com>: > >> (let [^JEditorPane html-table (editor-pane ...)] ...) should fix it. Or >> just set the caret position in the create function: >> > > I have removed all my warnings by using: ^JEditorPane, ^JFrame > > , … > But I always like to check deeper. On one of the places I have now: > ^JLabel (text … > > lein check gives no warning, neither does lein compile. And lein run just > runs the application. Is that not strange? I say that a JTextField is a > JLabel, but the application does not choke on it. > > -- > Cecil Westerhof > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.