tools.reader

Eliminate reflection warning in tools.reader

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Latest tools.reader issues a reflection warnings for .endsWith method call on local symbol ns in namespace clojure.tools.reader.impl.commons:

(not (.endsWith ns ":"))

Easy to add type hint to symbol ns to eliminate this, as in proposed patch.

Activity

Hide
Andy Fingerhut added a comment -

Patch trdr-27-fix-v1.patch simply adds a String type hint on local symbol ns before the .endsWith call.

Show
Andy Fingerhut added a comment - Patch trdr-27-fix-v1.patch simply adds a String type hint on local symbol ns before the .endsWith call.
Hide
Nicola Mometto added a comment -

Thanks

Show
Nicola Mometto added a comment - Thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: