Skip to content

Commit c07e5f1

Browse files
committed
feat(deprecation): Revert deprecation for count and numberValue methods at Var.java.
1 parent 88a7ad3 commit c07e5f1

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

AndroidSDK/src/com/leanplum/Var.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -516,17 +516,7 @@ public Object objectForKeyPath(Object... keys) {
516516
*
517517
* @return Elements count or 0 if Variable is not a List.
518518
*/
519-
@Deprecated
520519
public int count() {
521-
return countInternal();
522-
}
523-
524-
/**
525-
* Returns a number of elements contained in a List variable.
526-
*
527-
* @return Elements count or 0 if Variable is not a List.
528-
*/
529-
private int countInternal() {
530520
try {
531521
warnIfNotStarted();
532522
Object result = VarCache.getMergedValueFromComponentArray(nameComponents);
@@ -547,17 +537,7 @@ private int countInternal() {
547537
*
548538
* @return A Number value.
549539
*/
550-
@Deprecated
551540
public Number numberValue() {
552-
return numberValueInternal();
553-
}
554-
555-
/**
556-
* Gets a value from a variable initialized as Number.
557-
*
558-
* @return A Number value.
559-
*/
560-
private Number numberValueInternal() {
561541
warnIfNotStarted();
562542
return numberValue;
563543
}

0 commit comments

Comments
 (0)