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

Explicitly add imports for java classes #29

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

Conversation

slipset
Copy link

@slipset slipset commented Sep 27, 2020

No description provided.

@codecov
Copy link

codecov bot commented Sep 29, 2020

Codecov Report

Merging #29 into master will decrease coverage by 0.05%.
The diff coverage is 84.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
- Coverage   67.82%   67.77%   -0.06%     
==========================================
  Files           9        9              
  Lines         575      574       -1     
  Branches       70       70              
==========================================
- Hits          390      389       -1     
  Misses        115      115              
  Partials       70       70              
Impacted Files Coverage Δ
src/saml20_clj/sp/metadata.clj 6.45% <0.00%> (ø)
src/saml20_clj/sp/request.clj 84.21% <ø> (ø)
src/saml20_clj/sp/response.clj 46.70% <50.00%> (ø)
src/saml20_clj/crypto.clj 76.74% <78.57%> (ø)
src/saml20_clj/coerce.clj 74.50% <88.46%> (ø)
src/saml20_clj/xml.clj 100.00% <100.00%> (ø)
src/saml20_clj/core.clj 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86ae2eb...2834568. Read the comment docs.

@slipset slipset force-pushed the add_imports branch 3 times, most recently from d83c575 to 8eb0610 Compare September 29, 2020 11:39
- Type hints were in the wrong place
- Protocol type hints seem to have to be fully qualified (at least
  when used with potemkin
- Remove typehints where not needed
Comment on lines -33 to +54
(->X509Certificate ^java.security.cert.X509Certificate [this]
(^java.security.cert.X509Certificate ->X509Certificate [this]
Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty sure the :tag is supposed to go on the argslist and not the method name

Comment on lines -27 to +49
^java.security.PrivateKey [this]
^java.security.PrivateKey [this ^String algorithm]
[this]
[this ^String algorithm]
Copy link
Member

Choose a reason for hiding this comment

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

what's the reason for removing these tags?

@camsaul
Copy link
Member

camsaul commented Sep 29, 2020

I'm of two minds about a change like this. I do like making the code a little less cluttery by importing all of the class names. It makes working on the library code a little nicer. On the other hand, I think having the full class names present everywhere makes the library easier to use for consumers of the library. If you're using the library and you jump to a function definition it saves you a step to know it takes a whatever.long.package.name.X509Certificate instead of seeing X509Certificiate and then having to jump to the top of the namespace to figure out what package it's from.

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.

None yet

2 participants