Skip to content

Commit

Permalink
Minor refactoring, license year
Browse files Browse the repository at this point in the history
  • Loading branch information
harawata committed Apr 28, 2024
1 parent 87af6df commit 8fb229e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2023 the original author or authors.
* Copyright 2009-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -206,10 +206,8 @@ private static Type scanSuperTypes(TypeVariable<?> typeVar, Type srcType, Class<
if (declaringClass == parentAsClass) {
for (int i = 0; i < parentTypeVars.length; i++) {
if (typeVar.equals(parentTypeVars[i])) {
if (parentAsType.getActualTypeArguments()[i] instanceof TypeVariable<?>) {
return Object.class;
}
return parentAsType.getActualTypeArguments()[i];
Type actualType = parentAsType.getActualTypeArguments()[i];
return actualType instanceof TypeVariable<?> ? Object.class : actualType;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2023 the original author or authors.
* Copyright 2009-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 8fb229e

Please sign in to comment.