Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 committed Sep 27, 2019
1 parent 93b987f commit 1bab04a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private class Attempt {
}

Optional<Coercion> findCoercion() {
Optional<CodeBlock> autoMapper = CoercionProvider.findAutoMapper(expectedReturnType, basicInfo);
Optional<CodeBlock> autoMapper = basicInfo.findAutoMapper(expectedReturnType);
if (!autoMapper.isPresent()) {
return Optional.empty();
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/java/net/jbock/compiler/ProcessorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ void privateEnum() {
assertAbout(javaSources()).that(singletonList(javaFile))
.processedWith(new Processor())
.failsToCompile()
.withErrorContaining("The enum may not be private.");
.withErrorContaining("Unknown parameter type. Try defining a custom mapper or collector.");
}

static JavaFileObject fromSource(String... lines) {
Expand Down

0 comments on commit 1bab04a

Please sign in to comment.