Skip to content

Commit e032616

Browse files
committed
Migrate off deprecated analyzer API: nonSubtypableClasses.
PiperOrigin-RevId: 376900671
1 parent a7401a3 commit e032616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/mockito/lib/src/builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ class _MockTargetGatherer {
457457
throw InvalidMockitoAnnotationException(
458458
'Mockito cannot mock an enum: ${elementToMock.displayName}');
459459
}
460-
if (typeProvider.nonSubtypableClasses.contains(elementToMock)) {
460+
if (typeProvider.isNonSubtypableClass(elementToMock)) {
461461
throw InvalidMockitoAnnotationException(
462462
'Mockito cannot mock a non-subtypable type: '
463463
'${elementToMock.displayName}. It is illegal to subtype this '

0 commit comments

Comments
 (0)