mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 20:20:12 +02:00
Skip the call to String.format when annotating, if there are no values
This commit is contained in:
parent
fce4cc0c42
commit
029ad25c66
@ -124,7 +124,12 @@ public class AnnotatedBytes {
|
|||||||
throw new ExceptionWithContext("Annotating outside the parent bounds");
|
throw new ExceptionWithContext("Annotating outside the parent bounds");
|
||||||
}
|
}
|
||||||
|
|
||||||
String formattedMsg = String.format(msg, formatArgs);
|
String formattedMsg;
|
||||||
|
if (formatArgs != null && formatArgs.length > 0) {
|
||||||
|
formattedMsg = String.format(msg, formatArgs);
|
||||||
|
} else {
|
||||||
|
formattedMsg = msg;
|
||||||
|
}
|
||||||
int exclusiveEndOffset = cursor + length;
|
int exclusiveEndOffset = cursor + length;
|
||||||
|
|
||||||
AnnotationEndpoint endPoint = null;
|
AnnotationEndpoint endPoint = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user