Skip to content

Commit 902c8e3

Browse files
committed
Adjust method visibility on internal class
1 parent 511209f commit 902c8e3

File tree

1 file changed

+2
-2
lines changed
  • firebase-functions/src/main/java/com/google/firebase/functions

1 file changed

+2
-2
lines changed

firebase-functions/src/main/java/com/google/firebase/functions/Serializer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal class Serializer {
3232
dateFormat.timeZone = TimeZone.getTimeZone("UTC")
3333
}
3434

35-
internal fun encode(obj: Any?): Any {
35+
public fun encode(obj: Any?): Any {
3636
if (obj == null || obj === JSONObject.NULL) {
3737
return JSONObject.NULL
3838
}
@@ -110,7 +110,7 @@ internal class Serializer {
110110
throw IllegalArgumentException("Object cannot be encoded in JSON: $obj")
111111
}
112112

113-
internal fun decode(obj: Any?): Any? {
113+
public fun decode(obj: Any?): Any? {
114114
// TODO: Maybe this should throw a FirebaseFunctionsException instead?
115115
if (obj == null) return null
116116
if (obj is Number) {

0 commit comments

Comments
 (0)