Closes gh-6817
This commit is contained in:
Johnny Lim
2016-09-05 13:47:42 +09:00
committed by Stephane Nicoll
parent b7da0bd301
commit 4b9f6869f0
10 changed files with 13 additions and 18 deletions

View File

@@ -125,8 +125,8 @@ class DefinitionsParser {
private Set<ResolvableType> getOrDeduceTypes(AnnotatedElement element,
Class<?>[] value) {
Set<ResolvableType> types = new LinkedHashSet<ResolvableType>();
for (Class<?> type : value) {
types.add(ResolvableType.forClass(type));
for (Class<?> clazz : value) {
types.add(ResolvableType.forClass(clazz));
}
if (types.isEmpty() && element instanceof Field) {
types.add(ResolvableType.forField((Field) element));

View File

@@ -77,7 +77,7 @@ class MockDefinition extends Definition {
/**
* Return the type that should be mocked.
* @return the class to mock; never {@code null}
* @return the type to mock; never {@code null}
*/
public ResolvableType getTypeToMock() {
return this.typeToMock;

View File

@@ -19,7 +19,7 @@ package org.springframework.boot.test.mock.mockito.example;
/**
* Example service interface for mocking tests.
*
* @param <T> The generic type
* @param <T> the generic type
* @author Phillip Webb
*/
public interface ExampleGenericService<T> {

View File

@@ -42,7 +42,7 @@ public class ExampleGenericServiceCaller {
}
public String sayGreeting() {
return "I say " + +this.integerService.greeting() + " "
return "I say " + this.integerService.greeting() + " "
+ this.stringService.greeting();
}