Merge "Framework: Avoid string allocations"

This commit is contained in:
TreeHugger Robot
2017-03-07 16:02:48 +00:00
committed by Android (Google) Code Review

View File

@@ -32,11 +32,10 @@ public final class SELinuxUtil {
/** @hide */
public static String assignSeinfoUser(PackageUserState userState) {
String seInfo = "";
if (userState.instantApp)
seInfo += INSTANT_APP_STR;
seInfo += COMPLETE_STR;
return seInfo;
if (userState.instantApp) {
return INSTANT_APP_STR + COMPLETE_STR;
}
return COMPLETE_STR;
}
}