Skip to content

Commit b072f54

Browse files
committed
One more getter
1 parent 8a51a73 commit b072f54

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

firebase-common/src/main/java/com/google/firebase/emulators/EmulatedServiceSettings.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,19 @@
2626
*/
2727
public final class EmulatedServiceSettings {
2828

29-
public final String host;
30-
public final int port;
29+
private final String host;
30+
private final int port;
3131

3232
public EmulatedServiceSettings(@NonNull String host, int port) {
3333
this.host = host;
3434
this.port = port;
3535
}
36+
37+
public String getHost() {
38+
return host;
39+
}
40+
41+
public int getPort() {
42+
return port;
43+
}
3644
}

firebase-database/src/main/java/com/google/firebase/database/core/utilities/Utilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static ParsedUrl parseUrl(
6262

6363
RepoInfo repoInfo = new RepoInfo();
6464
if (emulatorSettings != null) {
65-
repoInfo.host = emulatorSettings.host + ":" + emulatorSettings.port;
65+
repoInfo.host = emulatorSettings.getHost() + ":" + emulatorSettings.getPort();
6666
repoInfo.secure = false;
6767
} else {
6868
repoInfo.host = host.toLowerCase();

0 commit comments

Comments
 (0)