File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
firebase-firestore/src/test/java/com/google/firebase/firestore/spec Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 84
84
import com .google .protobuf .ByteString ;
85
85
import io .grpc .Status ;
86
86
import java .io .BufferedReader ;
87
+ import java .io .ByteArrayInputStream ;
87
88
import java .io .File ;
88
89
import java .io .FileReader ;
90
+ import java .nio .charset .StandardCharsets ;
89
91
import java .util .ArrayList ;
90
92
import java .util .Arrays ;
91
93
import java .util .Collections ;
100
102
import java .util .stream .Collectors ;
101
103
import java .util .stream .Stream ;
102
104
import javax .annotation .Nullable ;
103
- import org .apache .tools .ant .filters .StringInputStream ;
104
105
import org .json .JSONArray ;
105
106
import org .json .JSONException ;
106
107
import org .json .JSONObject ;
@@ -509,7 +510,7 @@ private void doLoadBundle(String json) throws Exception {
509
510
BundleReader bundleReader =
510
511
new BundleReader (
511
512
new BundleSerializer (new RemoteSerializer (databaseInfo .getDatabaseId ())),
512
- new StringInputStream (json ));
513
+ new ByteArrayInputStream (json . getBytes ( StandardCharsets . UTF_8 ) ));
513
514
LoadBundleTask bundleTask = new LoadBundleTask ();
514
515
queue .runSync (
515
516
() -> {
You can’t perform that action at this time.
0 commit comments