Skip to content

Commit 1bab04a

Browse files
committed
refactoring
1 parent 93b987f commit 1bab04a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/net/jbock/coerce/CollectorAbsentMapperAbsent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private class Attempt {
3939
}
4040

4141
Optional<Coercion> findCoercion() {
42-
Optional<CodeBlock> autoMapper = CoercionProvider.findAutoMapper(expectedReturnType, basicInfo);
42+
Optional<CodeBlock> autoMapper = basicInfo.findAutoMapper(expectedReturnType);
4343
if (!autoMapper.isPresent()) {
4444
return Optional.empty();
4545
}

core/src/test/java/net/jbock/compiler/ProcessorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void privateEnum() {
525525
assertAbout(javaSources()).that(singletonList(javaFile))
526526
.processedWith(new Processor())
527527
.failsToCompile()
528-
.withErrorContaining("The enum may not be private.");
528+
.withErrorContaining("Unknown parameter type. Try defining a custom mapper or collector.");
529529
}
530530

531531
static JavaFileObject fromSource(String... lines) {

0 commit comments

Comments
 (0)