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

Remove throws IOException that is never thrown in S3Resource methods #1222

Conversation

alexisgra
Copy link
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Fix #1108

💡 Motivation and Context

I want to use contentLength or lastModified metadata of S3Resource to sort list of resources, but I need to catch IOException in the comparator.

IOException are declared but never thrown (it comes from parent class AbstractResource).

@maciejwalkowiak I think several classes in sns project need to be formatted. I can add them to the PR if you want.

💚 How did you test it?

x

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated reference documentation to reflect the change
  • All tests passing
  • No breaking changes

🔮 Next steps

It can facilitate the implementation of Comparator based on contentLength or lastModified
@maciejwalkowiak maciejwalkowiak changed the title Issue-1108: Remove IOException never thrown in S3Resource methods Remove throws IOException that is never thrown in S3Resource methods Sep 19, 2024
@maciejwalkowiak
Copy link
Contributor

@alexisgra thanks for quick PR and no worries about formatting in SNS, i'll do it in a separate change.

@maciejwalkowiak maciejwalkowiak added this to the 3.3.0 milestone Sep 19, 2024
@maciejwalkowiak maciejwalkowiak merged commit e7a4cdb into awspring:main Sep 19, 2024
4 checks passed
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.

Remove IOException never thrown in S3Resource methods
2 participants