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

Code refresh and cleanup #7

Merged
merged 17 commits into from
Sep 23, 2024
Merged

Code refresh and cleanup #7

merged 17 commits into from
Sep 23, 2024

Conversation

stokito
Copy link
Contributor

@stokito stokito commented Sep 21, 2024

Small changes to make IntellJ inspections happy.
I also updated the EXI library to the latest version. From the changelog it looks like there are some changes to migrate to Java 8.
Anyway the plugin needs for a regression testing so will see if the new version is fine.
I'll try later to migrate it to the latest Openfire but not sure if I can do this.

Copy link
Member

@guusdk guusdk 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!

Have you checked that the Base64 implementation that is being replaced is functionally equal to its replacement? If I recall correctly, there are a couple of flavors that differ in small ways.

pom.xml Outdated Show resolved Hide resolved
@stokito
Copy link
Contributor Author

stokito commented Sep 22, 2024

Have you checked that the Base64 implementation that is being replaced is functionally equal to its replacement?

yes, this is same Base64, not the Base64-URL

@@ -6,10 +6,11 @@
<!-- Plugin meta-data -->
<name>${project.name}</name>
<description>${project.description}</description>
<author>Javier Placencio</author>
<author>${project.developers[0].name}</author>
Copy link
Member

Choose a reason for hiding this comment

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

Heh, that's a nice trick. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, but it's still questionable if it worth using. Unfortunately you can't make something like ${project.developers[*].name} to list all developer names. You can use ${project.developers} that will print [Developer {id=null, Contributor {name=Javier Placencio, email=null}}, Developer {id=null, Contributor {name=Guus der Kinderen, email=guus.der.kinderen@gmail.com}}].
Maybe in future Maven releases this will improved somehow.

@guusdk
Copy link
Member

guusdk commented Sep 23, 2024

This looks perfectly fine to me, thank! Can you add a changelog entry to reflect the changes please? Maybe bump up the version number if you feel that this warrants a more-than-a-patch-release increase.

@guusdk
Copy link
Member

guusdk commented Sep 23, 2024

Oh, I only now see the build fail. Did you use Java API that's not available in Java 8 yet, maybe?

@stokito
Copy link
Contributor Author

stokito commented Sep 23, 2024

Yes, sorry, I used the ByteArrayOutputStream.toString(Charset) from Java 10. I downgraded it back to ByteArrayOutputStream.toString(String).
Also added changelog entry

@guusdk guusdk merged commit 79e02f6 into igniterealtime:main Sep 23, 2024
4 checks passed
@stokito stokito deleted the refresh branch September 23, 2024 10:18
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