Skip to content

Commit

Permalink
mockito#2974: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrantzius committed Apr 17, 2023
1 parent b31d7e7 commit 375b018
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -79,8 +79,9 @@ private Stream<Type> getSuperTypes(Class<?> concreteMockClass) {
Stream<Type> mockInterfaces = Arrays.stream(concreteMockClass.getGenericInterfaces());
Type genericSuperclass = concreteMockClass.getGenericSuperclass();
// for java.lang.Object, genericSuperclass is null
if (genericSuperclass!=null) {
Stream<Type> mockSuperTypes = Stream.concat(mockInterfaces, Stream.of(genericSuperclass));
if (genericSuperclass != null) {
Stream<Type> mockSuperTypes =
Stream.concat(mockInterfaces, Stream.of(genericSuperclass));
return mockSuperTypes;
} else {
return mockInterfaces;
Expand Down

0 comments on commit 375b018

Please sign in to comment.