Use component.className instead of NSStringFromClass
Summary: Use `component.className` in sonar for the layout inspector. Reviewed By: kfirapps Differential Revision: D20184486 fbshipit-source-id: 3e7564b2561016ee59f3b1fc9d21313e068bacb3
This commit is contained in:
committed by
Facebook Github Bot
parent
31c9df92b8
commit
5a4ac4c32d
@@ -109,10 +109,10 @@ static CK::StaticMutex _mutex = CK_MUTEX_INITIALIZER;
|
||||
auto const canBeReusedCounter = self.flipper_canBeReusedCounter;
|
||||
if (canBeReusedCounter > 0) {
|
||||
return [NSString stringWithFormat:@"%@ (Can be reused x%lu)",
|
||||
NSStringFromClass([self class]),
|
||||
self.className,
|
||||
(unsigned long)canBeReusedCounter];
|
||||
}
|
||||
return NSStringFromClass([self class]);
|
||||
return self.className;
|
||||
}
|
||||
|
||||
- (NSString*)sonar_getDecoration {
|
||||
|
||||
@@ -98,7 +98,7 @@ static CKFlexboxComponentChild findFlexboxLayoutParams(
|
||||
_size = layout.size;
|
||||
_position = position;
|
||||
_identifier = [parentKey stringByAppendingString:layout.component
|
||||
? NSStringFromClass([layout.component class])
|
||||
? layout.component.className
|
||||
: @"(null)"];
|
||||
|
||||
if (_component && reuseWrapper) {
|
||||
|
||||
Reference in New Issue
Block a user