File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
firebase-common/src/main/java/com/google/firebase/emulators
firebase-database/src/main/java/com/google/firebase/database/core/utilities Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 26
26
*/
27
27
public final class EmulatedServiceSettings {
28
28
29
- public final String host ;
30
- public final int port ;
29
+ private final String host ;
30
+ private final int port ;
31
31
32
32
public EmulatedServiceSettings (@ NonNull String host , int port ) {
33
33
this .host = host ;
34
34
this .port = port ;
35
35
}
36
+
37
+ public String getHost () {
38
+ return host ;
39
+ }
40
+
41
+ public int getPort () {
42
+ return port ;
43
+ }
36
44
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public static ParsedUrl parseUrl(
62
62
63
63
RepoInfo repoInfo = new RepoInfo ();
64
64
if (emulatorSettings != null ) {
65
- repoInfo .host = emulatorSettings .host + ":" + emulatorSettings .port ;
65
+ repoInfo .host = emulatorSettings .getHost () + ":" + emulatorSettings .getPort () ;
66
66
repoInfo .secure = false ;
67
67
} else {
68
68
repoInfo .host = host .toLowerCase ();
You can’t perform that action at this time.
0 commit comments