Commits

Shantanu Kumar  committed efa673b

fix reflection warning for a DataSource var

  • Participants
  • Parent commits 746dcbf

Comments (0)

Files changed (1)

File src/main/clj/org/bituf/fountain/jdbc.clj

       :or   {datasource  nil}}]
   (let [ds  (or datasource (:datasource sp/*dbspec*)
               (mu/illegal-arg "No valid DataSource found/supplied"))
-        sjt ^SimpleJdbcTemplate (SimpleJdbcTemplate. ds)]
+        sjt ^SimpleJdbcTemplate (SimpleJdbcTemplate. ^DataSource ds)]
      {:fountain.jdbc.sjt sjt}))