Skip to content

Commit

Permalink
refactor(ngcompiler): reduce dynamic usage in i18n
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Zhao <[email protected]>
  • Loading branch information
GZGavinZhao committed Feb 4, 2024
1 parent 91c394d commit 6b37d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ngcompiler/lib/v1/src/compiler/i18n/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class I18nMessage {
int get hashCode => metadata.hashCode ^ text.hashCode ^ _map.hash(args);

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is I18nMessage &&
other.metadata == metadata &&
other.text == text &&
Expand Down
2 changes: 1 addition & 1 deletion ngcompiler/lib/v1/src/compiler/i18n/metadata.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class I18nMetadata {
description.hashCode ^ locale.hashCode ^ meaning.hashCode ^ skip.hashCode;

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is I18nMetadata &&
other.description == description &&
other.locale == locale &&
Expand Down

0 comments on commit 6b37d64

Please sign in to comment.