shiro icon indicating copy to clipboard operation
shiro copied to clipboard

[Enhancement] Remove all "rawtypes"

Open lprimak opened this issue 1 year ago • 1 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Enhancement Request

Remove all "raw" types from the code and APIs

Describe the solution you'd like

N/A

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

lprimak avatar Jul 10 '24 15:07 lprimak

See:

Absolutely! Here's a quick recipe run: https://app.moderne.io/results/j2iJu9Xxx/ And a branch you can use to create a PR to clear out those 152 cases. https://github.com/apache/shiro/compare/main...timtebeek:shiro:refactor/use-diamond-operator?expand=1

lprimak avatar Aug 04 '24 02:08 lprimak

Hello, do you still need help with this issue? Could I get it assigned to me?

Luis-EncoraDev avatar Aug 26 '25 16:08 Luis-EncoraDev

Sure, here you go, and thank you

lprimak avatar Aug 26 '25 16:08 lprimak

@lprimak Should I use the refactor/use-diamon-operator branch to implement the changes or rather create another one?

Luis-EncoraDev avatar Aug 27 '25 19:08 Luis-EncoraDev

Not sure what you mean. I don't see any such branches.

lprimak avatar Aug 27 '25 19:08 lprimak

@Luis-EncoraDev: You do not have such a branch: https://github.com/Luis-EncoraDev/shiro/branches

bmarwell avatar Aug 27 '25 19:08 bmarwell

My bad then, thanks!

Luis-EncoraDev avatar Aug 27 '25 19:08 Luis-EncoraDev

I've been trying to replace all rawtypes during these last days, but when I ran ./mvnw verify I would get some errors pointing to a specific folder, I would undo the changes causing the error and then pass to the next files. However, at some point I could not get back to a successful building of the app, even though I deleted the project and started over a fresh fork again, even without any changes to the codebase I keep on getting a BUILD FAILURE. Do you have any hints on how this could be solved?

Image Image

Luis-EncoraDev avatar Sep 03 '25 19:09 Luis-EncoraDev

Can you paste full error log please? The actual error is missing from the screenshots. Please attach a log file, screenshots are not useful. Thank you!

lprimak avatar Sep 03 '25 19:09 lprimak

Sure,apparently it has something to do with the Apache RAT plugin.

shiro_mvn_verify.log

Luis-EncoraDev avatar Sep 03 '25 20:09 Luis-EncoraDev

Just move the log file out of your Shiro build directory. The log itself is causing the issue.

lprimak avatar Sep 03 '25 20:09 lprimak

@Luis-EncoraDev do you want to work on this?

bmarwell avatar Sep 20 '25 18:09 bmarwell

Hi, I came across with the error described above and couldn't really find a workaround, so I'm no longer working on this.

Luis-EncoraDev avatar Sep 22 '25 05:09 Luis-EncoraDev

  • You don't need to run ./mvnw verify just mvn package would suffice.
  • or run mvn verify -DskipITs or mvn -fn (fail-never)

You don't really need to run integration tests for this task to work. Have you tried that?

lprimak avatar Sep 22 '25 05:09 lprimak

Ooh, no, I didn't try that. But I don't think I will be able to work on this anymore.

Luis-EncoraDev avatar Sep 22 '25 16:09 Luis-EncoraDev

Do we have a branch?

bmarwell avatar Sep 28 '25 19:09 bmarwell

Nope, I didn't create any.

Luis-EncoraDev avatar Sep 29 '25 15:09 Luis-EncoraDev