summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2018-10-10 15:49:31 +0100
committerNeil Fuller <nfuller@google.com>2018-10-10 15:49:31 +0100
commitce3ed5487f861f7efac3ab1814989cb82ba2e30e (patch)
treeee8e79f01452ae58ac9581bc51622389ba72c94b
parent61b9b6c9eb7acb7b5f260f43b04d31d17bb59557 (diff)
downloadbase-ce3ed5487f861f7efac3ab1814989cb82ba2e30e.tar.gz
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
-rw-r--r--wifi/tests/src/android/net/wifi/hotspot2/pps/HomeSpTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/wifi/tests/src/android/net/wifi/hotspot2/pps/HomeSpTest.java b/wifi/tests/src/android/net/wifi/hotspot2/pps/HomeSpTest.java
index 5c9df6a0186c..c7993e308d17 100644
--- a/wifi/tests/src/android/net/wifi/hotspot2/pps/HomeSpTest.java
+++ b/wifi/tests/src/android/net/wifi/hotspot2/pps/HomeSpTest.java
@@ -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());
}