Skip to content

Commit

Permalink
Avoid redundant fromObject(value) calls in addObject methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JiwonKKang committed Oct 29, 2024
1 parent 0f568a2 commit ed16047
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ final void addObjectWithoutNotifying(IN_NAME name, Iterable<?> values) {
final void addObject(IN_NAME name, Object value) {
final NAME normalizedName = normalizeName(name);
requireNonNull(value, "value");
addObjectAndNotify(normalizedName, fromObject(value), true);
addObjectAndNotify(normalizedName, value, true);
}

final void addObject(IN_NAME name, Iterable<?> values) {
Expand Down

0 comments on commit ed16047

Please sign in to comment.