Polish
Closes gh-6817
This commit is contained in:
committed by
Stephane Nicoll
parent
b7da0bd301
commit
4b9f6869f0
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user