Skip to content

Commit

Permalink
Copy the messages and use
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Jan 16, 2024
1 parent 6116ca4 commit bb84d65
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public static void populateBuilder(MetricEventBuilder builder) throws MetricRepo
}

public static boolean isContains(List<String> messages, String message) {
int lengthOfMessages = messages.size();
for (int i = 0; i < lengthOfMessages; i++) {
if (messages.get(i).contains(message)) {
List<String> messagesCopy = new ArrayList<>(messages);
for (String log : messagesCopy) {
if (log.contains(message)) {
return true;
}
}
Expand Down

0 comments on commit bb84d65

Please sign in to comment.