mirror of
https://github.com/revanced/smali.git
synced 2025-05-28 11:50: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");
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
AnnotationEndpoint endPoint = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user