Remove usage of StringFactory

Code outside of the runtime should not use StringFactory.
The java.lang.String API works fine.

Bug: 113148576
Test: build only
Change-Id: I2912e02265306dcd5c5923de019b2c376349ea29
This commit is contained in:
Neil Fuller
2018-10-10 15:49:31 +01:00
parent 61b9b6c9eb
commit ce3ed5487f

View File

@@ -189,8 +189,7 @@ public class HomeSpTest {
Map<String, Long> homeNetworkIds = new HashMap<>();
byte[] rawSsidBytes = new byte[33];
Arrays.fill(rawSsidBytes, (byte) 'a');
homeNetworkIds.put(
StringFactory.newStringFromBytes(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L);
homeNetworkIds.put(new String(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L);
homeSp.setHomeNetworkIds(homeNetworkIds);
assertFalse(homeSp.validate());
}