lighter punctuation in binding/extracting log message (#6790)

This commit is contained in:
Gavin King 2023-06-15 16:22:36 +02:00 committed by GitHub
parent 96941f3775
commit aff3c105b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View File

@ -26,7 +26,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
LOGGER.tracef( LOGGER.tracef(
"binding parameter [%s] as [%s] - [%s]", "binding parameter (%s:%s) <- [%s]",
jdbcPosition, jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode ), JdbcTypeNameMapper.getTypeName( typeCode ),
value value
@ -37,7 +37,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
LOGGER.tracef( LOGGER.tracef(
"binding parameter [%s] as [%s] - [null]", "binding parameter (%s:%s) <- [null]",
jdbcPosition, jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode ) JdbcTypeNameMapper.getTypeName( typeCode )
); );
@ -47,7 +47,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
LOGGER.tracef( LOGGER.tracef(
"binding parameter [%s] as [%s] - [%s]", "binding parameter (%s:%s) <- [%s]",
callableParameterName, callableParameterName,
JdbcTypeNameMapper.getTypeName( typeCode ), JdbcTypeNameMapper.getTypeName( typeCode ),
value value
@ -58,7 +58,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
LOGGER.tracef( LOGGER.tracef(
"binding parameter [%s] as [%s] - [null]", "binding parameter (%s:%s) <- [null]",
callableParameterName, callableParameterName,
JdbcTypeNameMapper.getTypeName( typeCode ) JdbcTypeNameMapper.getTypeName( typeCode )
); );

View File

@ -26,7 +26,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef( JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [%s]", "extracted value (%s:%s) -> [%s]",
jdbcPosition, jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode ), JdbcTypeNameMapper.getTypeName( typeCode ),
value value
@ -37,7 +37,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef( JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [null]", "extracted value (%s:%s) -> [null]",
jdbcPosition, jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode ) JdbcTypeNameMapper.getTypeName( typeCode )
); );
@ -47,7 +47,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef( JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [%s]", "extracted value (%s:%s) -> [%s]",
callableParamName, callableParamName,
JdbcTypeNameMapper.getTypeName( typeCode ), JdbcTypeNameMapper.getTypeName( typeCode ),
value value
@ -58,7 +58,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED; assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef( JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [null]", "extracted value (%s:%s) -> [null]",
callableParamName, callableParamName,
JdbcTypeNameMapper.getTypeName( typeCode ) JdbcTypeNameMapper.getTypeName( typeCode )
); );

View File

@ -89,7 +89,7 @@ public final class JdbcTypeNameMapper {
* If a type code is not recognized, it is reported as {@code UNKNOWN(?)} where '?' * If a type code is not recognized, it is reported as {@code UNKNOWN(?)} where '?'
* is replaced with the given type code. * is replaced with the given type code.
* *
* Intended as useful for logging purposes... * @apiNote Useful for logging.
* *
* @param typeCode The type code to find the name for. * @param typeCode The type code to find the name for.
* *

View File

@ -32,7 +32,7 @@ import static org.junit.Assert.assertTrue;
*/ */
@MessageKeyInspection( @MessageKeyInspection(
logger = @Logger( loggerName = JdbcBindingLogging.NAME ), logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
messageKey = "binding parameter [" messageKey = "binding parameter"
) )
@DomainModel( annotatedClasses = OrdinalEnumTypeTest.Person.class ) @DomainModel( annotatedClasses = OrdinalEnumTypeTest.Person.class )
@SessionFactory @SessionFactory

View File

@ -29,7 +29,7 @@ import static org.junit.Assert.assertTrue;
@MessageKeyInspection( @MessageKeyInspection(
logger = @Logger( loggerName = JdbcBindingLogging.NAME ), logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
messageKey = "binding parameter [" messageKey = "binding parameter"
) )
@DomainModel( annotatedClasses = VarcharEnumTypeTest.Person.class ) @DomainModel( annotatedClasses = VarcharEnumTypeTest.Person.class )
@SessionFactory @SessionFactory