Skip to content

Commit

Permalink
Update variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Annie Lee committed Mar 10, 2022
1 parent 9f8305f commit 61fd19b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class GetFindingsSearchRequest : ActionRequest {
findingsId: String?,
version: Long,
srcContext: FetchSourceContext?,
table: Table,
destinationType: String
table: Table
) : super() {
this.findingsId = findingsId
this.version = version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GetFindingsSearchResponse : ActionResponse, ToXContentObject {
constructor(
status: RestStatus,
totalFindings: Int?,
findings: List<Destination>
findings: List<Finding>
) : super() {
this.status = status
this.totalFindings = totalFindings
Expand All @@ -33,11 +33,11 @@ class GetFindingsSearchResponse : ActionResponse, ToXContentObject {
@Throws(IOException::class)
constructor(sin: StreamInput) {
this.status = sin.readEnum(RestStatus::class.java)
val findings = mutableListOf<Destination>()
val findings = mutableListOf<Finding>()
this.totalFindings = sin.readOptionalInt()
var currentSize = sin.readInt()
for (i in 0 until currentSize) {
findings.add(Destination.readFrom(sin))
findings.add(Finding.readFrom(sin))
}
this.findings = findings
}
Expand Down

0 comments on commit 61fd19b

Please sign in to comment.