[coredata] Add nullability to (generated and manual) bindings (#10533)

See [HOWTO](https://github.com/xamarin/xamarin-macios/wiki/Nullability)
This commit is contained in:
Sebastien Pouliot 2021-01-27 09:22:07 -05:00 коммит произвёл GitHub
Родитель 4b95a4ca5a
Коммит e8c7aabdd5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
10 изменённых файлов: 45 добавлений и 86 удалений

Просмотреть файл

@ -24,6 +24,8 @@ using System;
using ObjCRuntime;
#nullable enable
namespace CoreData {
// NUInteger -> NSEntityMapping.h

Просмотреть файл

@ -9,6 +9,8 @@
using Foundation;
using ObjCRuntime;
#nullable enable
namespace CoreData
{
public partial class NSEntityDescription

Просмотреть файл

@ -2,6 +2,8 @@
using System;
#nullable enable
namespace CoreData {
#if !XAMCORE_3_0
public partial class NSMergeConflict {

Просмотреть файл

@ -84,7 +84,7 @@ namespace CoreData
interface NSAtomicStore {
[Export ("initWithPersistentStoreCoordinator:configurationName:URL:options:")]
IntPtr Constructor (NSPersistentStoreCoordinator coordinator, string configurationName, NSUrl url, [NullAllowed] NSDictionary options);
IntPtr Constructor ([NullAllowed] NSPersistentStoreCoordinator coordinator, [NullAllowed] string configurationName, NSUrl url, [NullAllowed] NSDictionary options);
[Export ("load:")]
bool Load (out NSError error);
@ -212,6 +212,7 @@ namespace CoreData
// Default property value is null but it cannot be set to that value
// NSInternalInconsistencyException Reason: Can't set attributeValueClassName to nil for a non-transient attribute.
[Export ("attributeValueClassName")]
[NullAllowed]
string AttributeValueClassName { get; set; }
[NullAllowed] // by default this property is null
@ -251,6 +252,7 @@ namespace CoreData
NSManagedObjectModel ManagedObjectModel { get; }
[Export ("managedObjectClassName")]
[NullAllowed]
string ManagedObjectClassName { get; set; }
[NullAllowed, Export ("renamingIdentifier")]
@ -316,7 +318,6 @@ namespace CoreData
[Export ("versionHashModifier")]
string VersionHashModifier { get; set; }
[NullAllowed] // by default this property is null
[Export ("compoundIndexes", ArgumentSemantic.Retain)]
[Deprecated (PlatformName.iOS, 11, 0, message : "Use 'NSEntityDescription.Indexes' instead.")]
[Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'NSEntityDescription.Indexes' instead.")]
@ -325,7 +326,6 @@ namespace CoreData
NSPropertyDescription [] CompoundIndexes { get; set; }
[Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)]
[NullAllowed] // by default this property is null
[Export ("indexes", ArgumentSemantic.Copy)]
NSFetchIndexDescription[] Indexes { get; set; }
@ -343,6 +343,7 @@ namespace CoreData
interface NSEntityMapping {
[Export ("name")]
[NullAllowed]
string Name { get; set; }
[Export ("mappingType")]
@ -365,9 +366,11 @@ namespace CoreData
NSData DestinationEntityVersionHash { get; set; }
[Export ("attributeMappings", ArgumentSemantic.Retain)]
[NullAllowed]
NSPropertyMapping[] AttributeMappings { get; set; }
[Export ("relationshipMappings", ArgumentSemantic.Retain)]
[NullAllowed]
NSPropertyMapping[] RelationshipMappings { get; set; }
[NullAllowed] // by default this property is null
@ -558,9 +561,10 @@ namespace CoreData
string CacheName { get; }
[Export ("fetchedObjects")]
[NullAllowed]
NSObject[] FetchedObjects { get; }
[NullAllowed, Export ("fetchRequest")]
[Export ("fetchRequest")]
NSFetchRequest FetchRequest { get; }
[Export ("managedObjectContext")]
@ -589,6 +593,7 @@ namespace CoreData
#if !XAMCORE_4_0
// badly named and conflict with the property
[Export ("sectionIndexTitleForSectionName:")]
[return: NullAllowed]
string SectionIndexTitles (string sectionName);
// expose a method as the property name is taken
@ -625,6 +630,7 @@ namespace CoreData
void DidChangeContent (NSFetchedResultsController controller);
[Export ("controller:sectionIndexTitleForSectionName:")]
[return: NullAllowed]
string SectionFor (NSFetchedResultsController controller, string sectionName);
}
@ -939,6 +945,7 @@ namespace CoreData
bool HasChanges { get; }
[Export ("objectRegisteredForID:")]
[return: NullAllowed]
NSManagedObject ObjectRegisteredForID (NSManagedObjectID objectID);
[Export ("objectWithID:")]
@ -965,9 +972,9 @@ namespace CoreData
[Export ("observeValueForKeyPath:ofObject:change:context:")]
#if XAMCORE_4_0
void ObserveValue (string keyPath, [NullAllowed] NSObject object1, [NullAllowed] NSDictionary<NSString, NSObject> change, IntPtr context);
void ObserveValue ([NullAllowed] string keyPath, [NullAllowed] NSObject object1, [NullAllowed] NSDictionary<NSString, NSObject> change, IntPtr context);
#else
void ObserveValueForKeyPath (string keyPath, IntPtr object1, [NullAllowed] NSDictionary change, IntPtr context);
void ObserveValueForKeyPath ([NullAllowed] string keyPath, IntPtr object1, [NullAllowed] NSDictionary change, IntPtr context);
#endif
[Export ("processPendingChanges")]
@ -1099,9 +1106,11 @@ namespace CoreData
[iOS (8,0), Mac(10,10)]
[Export ("executeRequest:error:")]
[return: NullAllowed]
NSPersistentStoreResult ExecuteRequest (NSPersistentStoreRequest request, out NSError error);
[Export ("existingObjectWithID:error:")]
[return: NullAllowed]
NSManagedObject GetExistingObject (NSManagedObjectID objectID, out NSError error);
[iOS (9,0), Mac (10,11)]
@ -1319,9 +1328,9 @@ namespace CoreData
[Static, Export ("mappingModelFromBundles:forSourceModel:destinationModel:")]
[return: NullAllowed]
#if XAMCORE_4_0
NSMappingModel FromBundles (NSBundle[] bundles, NSManagedObjectModel sourceModel, NSManagedObjectModel destinationModel);
NSMappingModel FromBundles ([NullAllowed] NSBundle[] bundles, [NullAllowed] NSManagedObjectModel sourceModel, [NullAllowed] NSManagedObjectModel destinationModel);
#else
NSMappingModel MappingModelFromBundles (NSBundle[] bundles, NSManagedObjectModel sourceModel, NSManagedObjectModel destinationModel);
NSMappingModel MappingModelFromBundles ([NullAllowed] NSBundle[] bundles, [NullAllowed] NSManagedObjectModel sourceModel, [NullAllowed] NSManagedObjectModel destinationModel);
#endif
[Static, Export ("inferredMappingModelForSourceModel:destinationModel:error:")]
@ -1329,9 +1338,10 @@ namespace CoreData
NSMappingModel GetInferredMappingModel (NSManagedObjectModel source, NSManagedObjectModel destination, out NSError error);
[Export ("initWithContentsOfURL:")]
IntPtr Constructor (NSUrl url);
IntPtr Constructor ([NullAllowed] NSUrl url);
[Export ("entityMappings", ArgumentSemantic.Retain)]
[NullAllowed]
NSEntityMapping[] EntityMappings { get; set; }
[Export ("entityMappingsByName", ArgumentSemantic.Copy)]
@ -1350,6 +1360,7 @@ namespace CoreData
NSManagedObject SourceObject { get; }
[Export ("objectSnapshot", ArgumentSemantic.Retain)]
[NullAllowed]
#if XAMCORE_4_0
NSDictionary<NSString, NSObject> ObjectSnapshot { get; }
#else
@ -1357,6 +1368,7 @@ namespace CoreData
#endif
[Export ("cachedSnapshot", ArgumentSemantic.Retain)]
[NullAllowed]
#if XAMCORE_4_0
NSDictionary<NSString, NSObject> CachedSnapshot { get; }
#else
@ -1364,6 +1376,7 @@ namespace CoreData
#endif
[Export ("persistedSnapshot", ArgumentSemantic.Retain)]
[NullAllowed]
#if XAMCORE_4_0
NSDictionary<NSString, NSObject> PersistedSnapshot { get; }
#else
@ -1728,6 +1741,7 @@ namespace CoreData
NSUrl Url { get; set; }
[Export ("identifier")]
[NullAllowed]
string Identifier { get; set; }
[Export ("type")]
@ -1737,6 +1751,7 @@ namespace CoreData
bool ReadOnly { [Bind ("isReadOnly")] get; set; }
[Export ("metadata", ArgumentSemantic.Retain)]
[NullAllowed]
#if XAMCORE_4_0
NSDictionary<NSString, NSObject> Metadata { get; set; }
#else
@ -1901,13 +1916,13 @@ namespace CoreData
#endif
[Static, Export ("registerStoreClass:forStoreType:")]
void RegisterStoreClass (Class storeClass, NSString storeType);
void RegisterStoreClass ([NullAllowed] Class storeClass, NSString storeType);
[Deprecated (PlatformName.iOS, 9, 0, message : "Use the method that takes an out NSError parameter.")]
[Deprecated (PlatformName.MacOSX, 10, 11, message : "Use the method that takes an out NSError parameter.")]
[Static, Export ("metadataForPersistentStoreOfType:URL:error:")]
[return: NullAllowed]
NSDictionary MetadataForPersistentStoreOfType (NSString storeType, NSUrl url, out NSError error);
NSDictionary MetadataForPersistentStoreOfType ([NullAllowed] NSString storeType, NSUrl url, out NSError error);
[iOS (7,0)]
[Mac (10, 9)]
@ -1918,7 +1933,7 @@ namespace CoreData
[Deprecated (PlatformName.iOS, 9, 0, message : "Use the method that takes an 'out NSError' parameter.")]
[Deprecated (PlatformName.MacOSX, 10, 11, message : "Use the method that takes an 'out NSError' parameter.")]
[Static, Export ("setMetadata:forPersistentStoreOfType:URL:error:")]
bool SetMetadata (NSDictionary metadata, NSString storeType, NSUrl url, out NSError error);
bool SetMetadata ([NullAllowed] NSDictionary metadata, [NullAllowed] NSString storeType, NSUrl url, out NSError error);
[iOS (7,0)]
[Mac (10,9)]
@ -1950,6 +1965,7 @@ namespace CoreData
NSPersistentStore[] PersistentStores { get; }
[Export ("persistentStoreForURL:")]
[return: NullAllowed]
NSPersistentStore PersistentStoreForUrl (NSUrl url);
[Export ("URLForPersistentStore:")]
@ -1959,6 +1975,7 @@ namespace CoreData
bool SetUrl (NSUrl url, NSPersistentStore store);
[Export ("addPersistentStoreWithType:configuration:URL:options:error:")]
[return: NullAllowed]
#if XAMCORE_4_0
NSPersistentStore AddPersistentStore (NSString storeType, [NullAllowed] string configuration, [NullAllowed] NSUrl storeUrl, [NullAllowed] NSDictionary options, out NSError error);
#else
@ -2002,6 +2019,7 @@ namespace CoreData
#if MONOMAC
[Availability (Deprecated = Platform.Mac_10_5)]
[Static, Export ("metadataForPersistentStoreWithURL:error:")]
[return: NullAllowed]
NSDictionary MetadataForPersistentStoreWithUrl (NSUrl url, out NSError error);
#endif
[Field ("NSSQLiteStoreType")]
@ -2130,7 +2148,7 @@ namespace CoreData
[Deprecated (PlatformName.iOS, 10, 0, message: "Please see the release notes and Core Data documentation.")]
[Deprecated (PlatformName.MacOSX, 10, 12, message: "Please see the release notes and Core Data documentation.")]
[Export ("removeUbiquitousContentAndPersistentStoreAtURL:options:error:")]
bool RemoveUbiquitousContentAndPersistentStore (NSUrl storeUrl, NSDictionary options, out NSError error);
bool RemoveUbiquitousContentAndPersistentStore (NSUrl storeUrl, [NullAllowed] NSDictionary options, out NSError error);
[iOS (7,0), Mac (10, 9)]
[Notification (typeof (NSPersistentStoreCoordinatorStoreChangeEventArgs))]
@ -2220,6 +2238,7 @@ namespace CoreData
NSAsynchronousFetchRequest FetchRequest { get; }
[Export ("finalResult", ArgumentSemantic.Retain)]
[NullAllowed]
#if XAMCORE_4_0
INSFetchRequestResult[] FinalResult { get; }
#else
@ -2237,6 +2256,7 @@ namespace CoreData
[BaseType (typeof (NSPersistentStoreResult))]
interface NSBatchUpdateResult {
[Export ("result", ArgumentSemantic.Retain)]
[NullAllowed]
NSObject Result { get; }
[Export ("resultType")]
@ -2250,9 +2270,11 @@ namespace CoreData
NSManagedObjectContext ManagedObjectContext { get; }
[Export ("operationError", ArgumentSemantic.Retain)]
[NullAllowed]
NSError OperationError { get; }
[Export ("progress", ArgumentSemantic.Retain)]
[NullAllowed]
NSProgress Progress { get; }
[Export ("cancel")]
@ -2278,7 +2300,8 @@ namespace CoreData
[Export ("entity")]
NSEntityDescription Entity { get; }
[NullAllowed] // by default this property is null
// by default this property is null, but docs mention possible
// exception on setter so allowing a null is not a good idea
[Export ("name")]
string Name { get; set; }
@ -2315,6 +2338,7 @@ namespace CoreData
string VersionHashModifier { get; set; }
[Export ("renamingIdentifier")]
[NullAllowed]
string RenamingIdentifier { get; set; }
// 5.0

Просмотреть файл

@ -1,4 +1,3 @@
!extra-null-allowed! 'CoreData.NSFetchRequest CoreData.NSFetchedResultsController::get_FetchRequest()' has a extraneous [NullAllowed] on return type
!missing-field! NSBinaryExternalRecordType not bound
!missing-field! NSEntityNameInPathKey not bound
!missing-field! NSExternalRecordExtensionOption not bound
@ -11,10 +10,6 @@
!missing-field! NSValidateXMLStoreOption not bound
!missing-field! NSXMLExternalRecordType not bound
!missing-field! NSXMLStoreType not bound
!missing-null-allowed! 'Foundation.NSObject[] CoreData.NSFetchedResultsController::get_FetchedObjects()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.Boolean CoreData.NSPersistentStoreCoordinator::RemoveUbiquitousContentAndPersistentStore(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSError&)' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsController::SectionIndexTitles(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsControllerDelegate::SectionFor(CoreData.NSFetchedResultsController,System.String)' is missing an [NullAllowed] on return type
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithDifference: not found
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithSnapshot: not found
!missing-selector! +NSPersistentStoreCoordinator::elementsDerivedFromExternalRecordURL: not bound

Просмотреть файл

@ -38,42 +38,5 @@
!missing-release-attribute-on-return-value! CoreData.NSManagedObjectID CoreData.NSIncrementalStore::NewObjectIdFor(CoreData.NSEntityDescription,Foundation.NSObject)'s selector's ('newObjectIDForEntity:referenceObject:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required.
!missing-release-attribute-on-return-value! Foundation.NSObject CoreData.NSIncrementalStore::NewValue(CoreData.NSRelationshipDescription,CoreData.NSManagedObjectID,CoreData.NSManagedObjectContext,Foundation.NSError&)'s selector's ('newValueForRelationship:forObjectWithID:withContext:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required.
# Initial result from new rule extra-null-allowed
# by-ref argument, cannot be null
!extra-null-allowed! 'System.Boolean CoreData.NSManagedObject::ValidateValue(Foundation.NSObject&,System.String,Foundation.NSError&)' has a extraneous [NullAllowed] on parameter #0
!extra-null-allowed! 'System.Void CoreData.NSEntityDescription::set_CompoundIndexes(CoreData.NSPropertyDescription[])' has a extraneous [NullAllowed] on parameter #0
!extra-null-allowed! 'System.Void CoreData.NSEntityDescription::set_Indexes(CoreData.NSFetchIndexDescription[])' has a extraneous [NullAllowed] on parameter #0
!extra-null-allowed! 'System.Void CoreData.NSPropertyDescription::set_Name(System.String)' has a extraneous [NullAllowed] on parameter #0
# Initial result from new rule missing-null-allowed
!missing-null-allowed! 'CoreData.NSManagedObject CoreData.NSManagedObjectContext::GetExistingObject(CoreData.NSManagedObjectID,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'CoreData.NSManagedObject CoreData.NSManagedObjectContext::ObjectRegisteredForID(CoreData.NSManagedObjectID)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'CoreData.NSMappingModel CoreData.NSMappingModel::MappingModelFromBundles(Foundation.NSBundle[],CoreData.NSManagedObjectModel,CoreData.NSManagedObjectModel)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'CoreData.NSMappingModel CoreData.NSMappingModel::MappingModelFromBundles(Foundation.NSBundle[],CoreData.NSManagedObjectModel,CoreData.NSManagedObjectModel)' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'CoreData.NSMappingModel CoreData.NSMappingModel::MappingModelFromBundles(Foundation.NSBundle[],CoreData.NSManagedObjectModel,CoreData.NSManagedObjectModel)' is missing an [NullAllowed] on parameter #2
!missing-null-allowed! 'CoreData.NSPersistentStore CoreData.NSPersistentStoreCoordinator::AddPersistentStoreWithType(Foundation.NSString,System.String,Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'CoreData.NSPersistentStore CoreData.NSPersistentStoreCoordinator::PersistentStoreForUrl(Foundation.NSUrl)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'CoreData.NSPersistentStoreResult CoreData.NSManagedObjectContext::ExecuteRequest(CoreData.NSPersistentStoreRequest,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSDictionary CoreData.NSMergeConflict::get_CachedSnapshot()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSDictionary CoreData.NSMergeConflict::get_ObjectSnapshot()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSDictionary CoreData.NSMergeConflict::get_PersistedSnapshot()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSDictionary CoreData.NSPersistentStoreCoordinator::MetadataForPersistentStoreOfType(Foundation.NSString,Foundation.NSUrl,Foundation.NSError&)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'Foundation.NSError CoreData.NSPersistentStoreAsynchronousResult::get_OperationError()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSObject CoreData.NSBatchUpdateResult::get_Result()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSObject[] CoreData.NSAsynchronousFetchResult::get_FinalResult()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSProgress CoreData.NSPersistentStoreAsynchronousResult::get_Progress()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.Boolean CoreData.NSPersistentStoreCoordinator::SetMetadata(Foundation.NSDictionary,Foundation.NSString,Foundation.NSUrl,Foundation.NSError&)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Boolean CoreData.NSPersistentStoreCoordinator::SetMetadata(Foundation.NSDictionary,Foundation.NSString,Foundation.NSUrl,Foundation.NSError&)' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'System.Void CoreData.NSAtomicStore::.ctor(CoreData.NSPersistentStoreCoordinator,System.String,Foundation.NSUrl,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSAtomicStore::.ctor(CoreData.NSPersistentStoreCoordinator,System.String,Foundation.NSUrl,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'System.Void CoreData.NSAttributeDescription::set_AttributeValueClassName(System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSEntityDescription::set_ManagedObjectClassName(System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSEntityMapping::set_AttributeMappings(CoreData.NSPropertyMapping[])' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSEntityMapping::set_Name(System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSEntityMapping::set_RelationshipMappings(CoreData.NSPropertyMapping[])' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSManagedObjectContext::ObserveValueForKeyPath(System.String,System.IntPtr,Foundation.NSDictionary,System.IntPtr)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSMappingModel::.ctor(Foundation.NSUrl)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSMappingModel::set_EntityMappings(CoreData.NSEntityMapping[])' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSPersistentStore::set_Identifier(System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSPersistentStore::set_Metadata(Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSPersistentStoreCoordinator::RegisterStoreClass(ObjCRuntime.Class,Foundation.NSString)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void CoreData.NSPropertyDescription::set_RenamingIdentifier(System.String)' is missing an [NullAllowed] on parameter #0

Просмотреть файл

@ -1,12 +1,3 @@
# ignored due to missing types due to https://github.com/xamarin/xamarin-macios/issues/6567
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithDifference: not found
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithSnapshot: not found
# Initial result from new rule extra-null-allowed
!extra-null-allowed! 'CoreData.NSFetchRequest CoreData.NSFetchedResultsController::get_FetchRequest()' has a extraneous [NullAllowed] on return type
# Initial result from new rule missing-null-allowed
!missing-null-allowed! 'Foundation.NSObject[] CoreData.NSFetchedResultsController::get_FetchedObjects()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.Boolean CoreData.NSPersistentStoreCoordinator::RemoveUbiquitousContentAndPersistentStore(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSError&)' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsController::SectionIndexTitles(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsControllerDelegate::SectionFor(CoreData.NSFetchedResultsController,System.String)' is missing an [NullAllowed] on return type

Просмотреть файл

@ -29,7 +29,3 @@
!missing-selector! NSFetchedResultsController::setDelegate: not bound
!missing-selector! NSPersistentStoreCoordinator::importStoreWithIdentifier:fromExternalRecordsDirectory:toURL:options:withType:error: not bound
!missing-type! NSFetchedResultsController not bound
# Initial result from new rule missing-null-allowed
!missing-null-allowed! 'Foundation.NSDictionary CoreData.NSPersistentStoreCoordinator::MetadataForPersistentStoreWithUrl(Foundation.NSUrl,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.Boolean CoreData.NSPersistentStoreCoordinator::RemoveUbiquitousContentAndPersistentStore(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSError&)' is missing an [NullAllowed] on parameter #1

Просмотреть файл

@ -1,11 +1,3 @@
# ignored due to missing types due to https://github.com/xamarin/xamarin-macios/issues/6567
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithDifference: not found
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithSnapshot: not found
# Initial result from new rule extra-null-allowed
!extra-null-allowed! 'CoreData.NSFetchRequest CoreData.NSFetchedResultsController::get_FetchRequest()' has a extraneous [NullAllowed] on return type
# Initial result from new rule missing-null-allowed
!missing-null-allowed! 'Foundation.NSObject[] CoreData.NSFetchedResultsController::get_FetchedObjects()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsController::SectionIndexTitles(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsControllerDelegate::SectionFor(CoreData.NSFetchedResultsController,System.String)' is missing an [NullAllowed] on return type

Просмотреть файл

@ -1,11 +1,3 @@
# ignored due to missing types due to https://github.com/xamarin/xamarin-macios/issues/6567
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithDifference: not found
!missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithSnapshot: not found
# Initial result from new rule extra-null-allowed
!extra-null-allowed! 'CoreData.NSFetchRequest CoreData.NSFetchedResultsController::get_FetchRequest()' has a extraneous [NullAllowed] on return type
# Initial result from new rule missing-null-allowed
!missing-null-allowed! 'Foundation.NSObject[] CoreData.NSFetchedResultsController::get_FetchedObjects()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsController::SectionIndexTitles(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.String CoreData.NSFetchedResultsControllerDelegate::SectionFor(CoreData.NSFetchedResultsController,System.String)' is missing an [NullAllowed] on return type