Skip to content

Test cleanup #3361

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

Merged
merged 3 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/test/java/org/apache/ibatis/binding/BoundAuthorMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public interface BoundAuthorMapper {
" USERNAME as AUTHOR_USERNAME,",
" PASSWORD as AUTHOR_PASSWORD,",
" EMAIL as AUTHOR_EMAIL,",
" BIO as AUTHOR_BIO,"
+ " FAVOURITE_SECTION as AUTHOR_SECTION",
" BIO as AUTHOR_BIO,",
" FAVOURITE_SECTION as AUTHOR_SECTION",
"FROM AUTHOR WHERE ID = #{id}"})
// @formatter:on
Author selectAuthorConstructor(int id);
Expand All @@ -130,8 +130,8 @@ public interface BoundAuthorMapper {
" USERNAME as AUTHOR_USERNAME,",
" PASSWORD as AUTHOR_PASSWORD,",
" EMAIL as AUTHOR_EMAIL,",
" BIO as AUTHOR_BIO,"
+ " FAVOURITE_SECTION as AUTHOR_SECTION",
" BIO as AUTHOR_BIO,",
" FAVOURITE_SECTION as AUTHOR_SECTION",
"FROM AUTHOR WHERE ID = #{id}"})
// @formatter:on
Author selectAuthorMapToConstructorUsingRepeatable(int id);
Expand Down Expand Up @@ -169,8 +169,8 @@ public interface BoundAuthorMapper {
" USERNAME as AUTHOR_USERNAME,",
" PASSWORD as AUTHOR_PASSWORD,",
" EMAIL as AUTHOR_EMAIL,",
" BIO as AUTHOR_BIO,"
+ " FAVOURITE_SECTION as AUTHOR_SECTION",
" BIO as AUTHOR_BIO,",
" FAVOURITE_SECTION as AUTHOR_SECTION",
"FROM AUTHOR WHERE ID = #{id}"})
// @formatter:on
Author selectAuthorUsingBothArgAndConstructorArgs(int id);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2023 the original author or authors.
* Copyright 2009-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,12 +26,12 @@ public class ExampleObjectFactory extends DefaultObjectFactory {

@Override
public <T> T create(Class<T> type) {
return super.<T>create(type);
return super.create(type);
}

@Override
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
return super.<T>create(type, constructorArgTypes, constructorArgs);
return super.create(type, constructorArgTypes, constructorArgs);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2023 the original author or authors.
* Copyright 2009-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -76,7 +76,7 @@ void shouldReturnFalseIfZero() {
void shouldReturnFalseIfZeroWithScale() {
class Bean {
@SuppressWarnings("unused")
public double d = 0.0d;
public double d = 0.0D;
}
assertFalse(evaluator.evaluateBoolean("d", new Bean()));
}
Expand Down
Loading