commit | c42363ad309d523d65fe8b66d16786a1d372805e | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Mon Aug 10 14:06:07 2015 -0700 |
committer | Roozbeh Pournader <roozbeh@google.com> | Mon Aug 10 14:06:07 2015 -0700 |
tree | 393583a453600f15fd7893b23e20bcbbb5a017fc | |
parent | 0f9f0189822c6bee498b23c93512b6be0e9d1358 [diff] |
Avoid creating unnecessary builder objects in BidiFormatter. Previously, BidiFormatter.getInstance() created an unnecessary pass-through builder object, which was used to return a static already existing BidiFormatter. Now, we just return the same static BidiFormatter, without going through a builder, so we can save some extra allocations. Bug: 10022222 Change-Id: Ibcb6aac1c1e16d9ec00e93824fa063f8dccdf8cb