Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a4b8d240
Commit
a4b8d240
authored
Sep 02, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
Closes gh-18094
parents
b463acb1
abba4fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
TypeUtils.java
...pringframework/boot/configurationprocessor/TypeUtils.java
+11
-18
No files found.
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java
View file @
a4b8d240
...
@@ -38,7 +38,6 @@ import javax.lang.model.type.TypeMirror;
...
@@ -38,7 +38,6 @@ import javax.lang.model.type.TypeMirror;
import
javax.lang.model.type.TypeVariable
;
import
javax.lang.model.type.TypeVariable
;
import
javax.lang.model.util.SimpleTypeVisitor8
;
import
javax.lang.model.util.SimpleTypeVisitor8
;
import
javax.lang.model.util.Types
;
import
javax.lang.model.util.Types
;
import
javax.tools.Diagnostic.Kind
;
/**
/**
* Type Utilities.
* Type Utilities.
...
@@ -232,24 +231,18 @@ class TypeUtils {
...
@@ -232,24 +231,18 @@ class TypeUtils {
}
}
private
void
process
(
TypeDescriptor
descriptor
,
TypeMirror
type
)
{
private
void
process
(
TypeDescriptor
descriptor
,
TypeMirror
type
)
{
try
{
if
(
type
.
getKind
()
==
TypeKind
.
DECLARED
)
{
if
(
type
.
getKind
()
==
TypeKind
.
DECLARED
)
{
DeclaredType
declaredType
=
(
DeclaredType
)
type
;
DeclaredType
declaredType
=
(
DeclaredType
)
type
;
DeclaredType
freshType
=
(
DeclaredType
)
this
.
env
.
getElementUtils
()
DeclaredType
freshType
=
(
DeclaredType
)
this
.
env
.
getElementUtils
()
.
getTypeElement
(
this
.
types
.
asElement
(
type
).
toString
()).
asType
();
.
getTypeElement
(
this
.
types
.
asElement
(
type
).
toString
()).
asType
();
List
<?
extends
TypeMirror
>
arguments
=
declaredType
.
getTypeArguments
();
List
<?
extends
TypeMirror
>
arguments
=
declaredType
.
getTypeArguments
();
for
(
int
i
=
0
;
i
<
arguments
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
arguments
.
size
();
i
++)
{
TypeMirror
specificType
=
arguments
.
get
(
i
);
TypeMirror
specificType
=
arguments
.
get
(
i
);
TypeMirror
signatureType
=
freshType
.
getTypeArguments
().
get
(
i
);
TypeMirror
signatureType
=
freshType
.
getTypeArguments
().
get
(
i
);
descriptor
.
registerIfNecessary
(
signatureType
,
specificType
);
descriptor
.
registerIfNecessary
(
signatureType
,
specificType
);
}
TypeElement
element
=
(
TypeElement
)
this
.
types
.
asElement
(
type
);
process
(
descriptor
,
element
.
getSuperclass
());
}
}
}
TypeElement
element
=
(
TypeElement
)
this
.
types
.
asElement
(
type
);
catch
(
Exception
ex
)
{
process
(
descriptor
,
element
.
getSuperclass
());
this
.
env
.
getMessager
().
printMessage
(
Kind
.
WARNING
,
"Failed to generated type descriptor for "
+
type
,
this
.
types
.
asElement
(
type
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment