Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Base64 to modern Java #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cloojure
Copy link

Works with Clojure 1.8/1.10.1 and Java 8/12


lein test flatland._bootstrap

----------------------------------
   Clojure 1.10.1    Java 12
----------------------------------

lein test flatland.useful.bean-test

lein test flatland.useful.cli-test

lein test flatland.useful.compress-test

lein test flatland.useful.config-test

lein test flatland.useful.datatypes-test

lein test flatland.useful.debug-test

lein test flatland.useful.deftype-test

lein test flatland.useful.dispatch-test

lein test flatland.useful.exception-test

lein test flatland.useful.experimental-test

lein test flatland.useful.fn-test

lein test flatland.useful.io-test

lein test flatland.useful.java-test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by flatland.useful.java$invoke_private to method java.util.Hashtable.rehash()
WARNING: Please consider reporting this to the maintainers of flatland.useful.java$invoke_private
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

lein test flatland.useful.macro-test

lein test flatland.useful.map-test

lein test flatland.useful.ns-test

lein test flatland.useful.parallel-test

lein test flatland.useful.seq-test

lein test flatland.useful.state-test

lein test flatland.useful.string-test

lein test flatland.useful.test-test

lein test flatland.useful.utils-test

Ran 143 tests containing 546 assertions.
0 failures, 0 errors.
lein test :all  18.45s user 0.47s system 302% cpu 6.247 total

Copy link
Member

@danielcompton danielcompton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Some suggestions, but I'm on board with the change in general.


(defn unsmash [^String str]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the type hint back in? There will be reflection without it.

@@ -1,20 +1,22 @@
(defproject org.flatland/useful "0.11.7-SNAPSHOT"
:description "A collection of generally-useful Clojure utility functions"
:license {:name "Eclipse Public License - v 1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"
:license {:name "Eclipse Public License - v 1.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to only make the changes to the dependencies here without the reformatting?

:plugins [[codox "0.8.0"]]
:codox {:src-dir-uri "http://github.com/flatland/useful/blob/develop/"
:plugins [[codox "0.8.0"]
[lein-ancient "0.6.15"]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if we need this in the plugins here?

:dependencies [[org.clojure/clojure "1.8.0" :scope "provided"]
[org.clojure/tools.macro "0.1.5"]
[org.clojure/tools.reader "1.3.2"]]
:aliases {"testall" ["with-profile" ":1.8:1.9:1.10" "test"]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:aliases {"testall" ["with-profile" ":1.8:1.9:1.10" "test"]}
:aliases {"testall" ["with-profile" "1.8:1.9:1.10" "test"]}

The : here is a delimiter, not part of the profile name itself so we don't need a leading one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants