Skip to content

Commit

Permalink
[v202401281133] Skip the default rather than throwing out new field e…
Browse files Browse the repository at this point in the history
…xception that breaks the execution of RecovAr. #114
  • Loading branch information
WGC575 committed Jan 28, 2024
1 parent a5170dd commit 177bc11
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ private IssueRecord parseIssue(JsonParser parser)
break;
// Unknown field
default:
throwLocalException("New field identified: "
+ fieldName + ", in issue ID: " + issueBuilder.id);
// skip new field rather than throwing an exception.
skipToNextField(parser);
}
}

Expand Down Expand Up @@ -461,8 +461,7 @@ private Commit parseCommit(JsonParser parser)
break;
// Unknown field
default:
throwLocalException("New field identified: " + fieldName
+ ", in issue ID: " + commitBuilder.id);
skipToNextField(parser);
}
}

Expand Down Expand Up @@ -531,8 +530,7 @@ private Map.Entry<String, String> parseChange(
break;
// Unknown field
default:
throwLocalException("New field identified: " + fieldName
+ ", in issue ID: " + idForError);
skipToNextField(parser);
}
}

Expand Down Expand Up @@ -578,8 +576,7 @@ private String parseTag(JsonParser parser, String shaForError)
break;
// Unknown field
default:
throwLocalException("New field identified: " + fieldName
+ ", in issue ID: " + shaForError);
skipToNextField(parser);
}
}

Expand Down

0 comments on commit 177bc11

Please sign in to comment.