Skip to content

Conversation

gavinking
Copy link
Member

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Sep 6, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [d8becaa]

› This message was automatically generated.

@gavinking gavinking marked this pull request as ready for review September 6, 2025 03:43
@gavinking gavinking force-pushed the type-package-cleanups branch from 9ce9860 to 1fc7495 Compare September 6, 2025 03:44
@gavinking gavinking force-pushed the type-package-cleanups branch from 1fc7495 to d8becaa Compare September 6, 2025 03:45
@@ -66,15 +66,15 @@

@Override
public void addDescriptor(JdbcType jdbcType) {
final JdbcType previous = descriptorMap.put( jdbcType.getDefaultSqlTypeCode(), jdbcType );
final var previous = descriptorMap.put( jdbcType.getDefaultSqlTypeCode(), jdbcType );

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'JdbcType previous' is never read.
// if ( previous != null && previous != jdbcType ) {
// LOG.tracef( "addDescriptor(%s) replaced previous registration(%s)", jdbcType, previous );
// }
}

@Override
public void addDescriptor(int typeCode, JdbcType jdbcType) {
final JdbcType previous = descriptorMap.put( typeCode, jdbcType );
final var previous = descriptorMap.put( typeCode, jdbcType );

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'JdbcType previous' is never read.
@gavinking gavinking merged commit e8fa7e9 into hibernate:main Sep 6, 2025
24 of 26 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.

1 participant