Summary: This diff regards some methods of NSKeyedUnarchiver as autorelease, because they may call autorelease. Reviewed By: ezgicicek Differential Revision: D23600232 fbshipit-source-id: a9fc1cc56master
parent
83641788d1
commit
4aa3338947
@ -0,0 +1,23 @@
|
||||
(*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
|
||||
open! IStd
|
||||
|
||||
module Call = struct
|
||||
let dispatch : (Tenv.t, unit, unit) ProcnameDispatcher.Call.dispatcher =
|
||||
let open ProcnameDispatcher.Call in
|
||||
make_dispatcher
|
||||
[ +PatternMatch.ObjectiveC.implements "NSObject" &:: "autorelease" &--> ()
|
||||
; +PatternMatch.ObjectiveC.implements "NSKeyedUnarchiver"
|
||||
&:: "initForReadingFromData:error:" &--> ()
|
||||
; +PatternMatch.ObjectiveC.implements "NSKeyedUnarchiver"
|
||||
&:: "initForReadingWithData:" &--> ()
|
||||
; +PatternMatch.ObjectiveC.implements "NSKeyedUnarchiver"
|
||||
&:: "unarchivedObjectOfClass:fromData:error:" &--> ()
|
||||
; +PatternMatch.ObjectiveC.implements "NSKeyedUnarchiver"
|
||||
&:: "unarchivedObjectOfClasses:fromData:error:" &--> () ]
|
||||
end
|
@ -0,0 +1,12 @@
|
||||
(*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
|
||||
open! IStd
|
||||
|
||||
module Call : sig
|
||||
val dispatch : (Tenv.t, unit, unit) ProcnameDispatcher.Call.dispatcher
|
||||
end
|
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ArcKeyedUnarchiver : NSObject
|
||||
@end
|
||||
|
||||
@implementation ArcKeyedUnarchiver
|
||||
|
||||
- (void)callInitForReadingFromData_constant:(int)n data:(NSData*)data {
|
||||
NSKeyedUnarchiver* x = [[NSKeyedUnarchiver alloc] initForReadingFromData:data
|
||||
error:nil];
|
||||
}
|
||||
|
||||
- (void)callInitForReadingWithData_constant:(int)n data:(NSData*)data {
|
||||
NSKeyedUnarchiver* x =
|
||||
[[NSKeyedUnarchiver alloc] initForReadingWithData:data];
|
||||
}
|
||||
|
||||
- (void)callUnarchivedObjectOfClass_constant:(int)n data:(NSData*)data {
|
||||
NSArray* x = [NSKeyedUnarchiver unarchivedObjectOfClass:[NSArray class]
|
||||
fromData:data
|
||||
error:nil];
|
||||
}
|
||||
|
||||
- (void)callUnarchivedObjectOfClasses_constant:(int)n
|
||||
set:(NSSet*)set
|
||||
data:(NSData*)data {
|
||||
NSArray* x = [NSKeyedUnarchiver unarchivedObjectOfClasses:set
|
||||
fromData:data
|
||||
error:nil];
|
||||
}
|
||||
|
||||
@end
|
Loading…
Reference in new issue