Skip to content

Commit

Permalink
update type
Browse files Browse the repository at this point in the history
  • Loading branch information
Annie Lee committed Mar 30, 2022
1 parent 56734a3 commit d2079ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FindingDocument(
val index: String,
val id: String,
val found: Boolean,
val document: Map<String, Any>
val document: MutableMap<String, Any>
) : Writeable, ToXContent {

@Throws(IOException::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class FindingWithDocs(
const val DOCUMENTS_FIELD = "documents"

@JvmStatic
@JvmOverloads
@Throws(IOException::class)
fun parse(xcp: XContentParser): FindingWithDocs {
lateinit var finding: Finding
Expand All @@ -71,5 +70,11 @@ class FindingWithDocs(
documents = documents
)
}

@JvmStatic
@Throws(IOException::class)
fun readFrom(sin: StreamInput): FindingWithDocs {
return FindingWithDocs(sin)
}
}
}

0 comments on commit d2079ae

Please sign in to comment.