Skip to content

Commit

Permalink
Provide type information for optional thread dump endpoint response f…
Browse files Browse the repository at this point in the history
…ields

Closes spring-projectsgh-15989
  • Loading branch information
wilkinsona committed Feb 19, 2019
1 parent 0335a28 commit 5542620
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,21 @@ public void threadDump() throws Exception {
.description(
"Description of the object on which the "
+ "thread is blocked, if any.")
.optional(),
fieldWithPath("threads.[].lockInfo").description(
"Object for which the thread is blocked "
+ "waiting.")
.optional(),
.optional().type(JsonFieldType.STRING),
fieldWithPath("threads.[].lockInfo")
.description(
"Object for which the thread is blocked "
+ "waiting.")
.optional().type(JsonFieldType.OBJECT),
fieldWithPath("threads.[].lockInfo.className")
.description(
"Fully qualified class name of the lock"
+ " object.")
.optional(),
.optional().type(JsonFieldType.STRING),
fieldWithPath("threads.[].lockInfo.identityHashCode")
.description(
"Identity hash code of the lock object.")
.optional(),
.optional().type(JsonFieldType.NUMBER),
fieldWithPath("threads.[].lockedMonitors").description(
"Monitors locked by this thread, if any"),
fieldWithPath("threads.[].lockedMonitors.[].className")
Expand Down

0 comments on commit 5542620

Please sign in to comment.