Skip to content

Commit

Permalink
Add documentation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ksclarke committed Mar 20, 2024
1 parent 7a7c74d commit 7a69dcb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@ private Metadata updateMetadata(final Metadata aMetadata, final String... aStrin
} // If label matches but we have no updated value, ignore the metadata
}
} else {
// Our metadata comes in pairs so, when looping through an array of all the values, we
// need to skip every other one (move the index to the the start of the pair) and halve
// the total array count (since we're counting the pair of values as one thing).
for (int index = 0; index < aStringArray.length / 2; index += 2) {
metadata.add(aStringArray[index], aStringArray[index + 1]);
}
Expand Down

0 comments on commit 7a69dcb

Please sign in to comment.