Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Improve code quality, documentation, and use modern Java practices

This PR implements several code quality improvements across the codebase:

Changes

  • Added null checks to DomaConfigBuilder methods

    • Added Objects.requireNonNull() checks to all setter methods
    • Improved JavaDoc documentation to indicate when methods throw NullPointerException
    • Ensured consistent builder pattern implementation with method chaining
  • Enhanced JavaDoc documentation in core classes

    • Added comprehensive class-level documentation to DomaConfig
    • Added method-level documentation to previously undocumented methods
  • Improved exception handling in DomaAutoConfiguration

    • Enhanced error messages to be more descriptive and helpful
    • Provided clearer guidance on how to resolve configuration issues
  • Converted DomaSpringBootSqlBuilderSettings to a Java 17 record

    • Leveraged modern Java features for more concise and maintainable code
    • Maintained the same functionality while reducing boilerplate
  • Updated README with latest version information

    • Updated Doma processor version to 3.8.0 to match the current dependency

Testing

All core module tests are passing. The sample module has a version mismatch issue that is unrelated to these changes.

Link to Devin run

https://app.devin.ai/sessions/c68ec55d67574b53938341880c5b2fcb

Requested by

[email protected]

- Add null checks to DomaConfigBuilder methods with improved JavaDoc
- Enhance exception handling in DomaAutoConfiguration with more descriptive messages
- Convert DomaSpringBootSqlBuilderSettings to a Java 17 record
- Update README with latest Doma version information
- Update test to match new error message

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

if (connectionDetails == null) {
throw new BeanCreationException(
"No connection details available. You will probably have to set 'doma.dialect' explicitly.");
"No JdbcConnectionDetails available. Either configure a DataSource or explicitly set 'doma.dialect' property in your configuration.");
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 think creating a data source is relevant here.

@devin-ai-integration
Copy link
Contributor Author

Closing due to inactivity for more than 7 days.

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