Skip to content

Address Functions compiler warnings #6544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 29, 2024
Merged

Address Functions compiler warnings #6544

merged 3 commits into from
Nov 29, 2024

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Nov 29, 2024

Improvements include:

  • Make overriden arguments have the same name as the original ones
  • Inline variable declarations
  • Remove unused lambda bodies

Improvements include:
- Make overriden arguments have the same name as the original ones
- Inline variable declarations
- Remove unused lambda bodies
@rlazo rlazo requested a review from VinayGuthal November 29, 2024 14:33
Copy link
Contributor

github-actions bot commented Nov 29, 2024

Javadoc Changes:
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/functions/Serializer.html	2024-11-29 14:57:31.411067285 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/functions/Serializer.html	2024-11-29 14:54:56.807108588 +0000
@@ -68,7 +68,7 @@
           <tr>
             <td><code>final <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a></code></td>
             <td>
-              <div><code><a href="/docs/reference/android/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;obj)</code></div>
+              <div><code><a href="/docs/reference/android/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;obj)</code></div>
             </td>
           </tr>
           <tr>
@@ -91,7 +91,7 @@
       <h2>Public methods</h2>
       <div class="api-item"><a name="decode-kotlin.Any-"></a><a name="decode"></a>
         <h3 class="api-name" id="decode(kotlin.Any)">decode</h3>
-        <pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;obj)</pre>
+        <pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;obj)</pre>
       </div>
       <div class="api-item"><a name="encode-kotlin.Any-"></a><a name="encode"></a>
         <h3 class="api-name" id="encode(kotlin.Any)">encode</h3>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/functions/Serializer.html	2024-11-29 14:57:31.379067293 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/functions/Serializer.html	2024-11-29 14:54:56.803108588 +0000
@@ -48,7 +48,7 @@
           <tr>
             <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</code></td>
             <td>
-              <div><code><a href="/docs/reference/kotlin/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(obj:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>)</code></div>
+              <div><code><a href="/docs/reference/kotlin/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(obj:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?)</code></div>
             </td>
           </tr>
           <tr>
@@ -71,7 +71,7 @@
       <h2>Public functions</h2>
       <div class="api-item"><a name="decode-kotlin.Any-"></a><a name="decode"></a>
         <h3 class="api-name" id="decode(kotlin.Any)">decode</h3>
-        <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(obj:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</pre>
+        <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/functions/Serializer.html#decode(kotlin.Any)">decode</a>(obj:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</pre>
       </div>
       <div class="api-item"><a name="encode-kotlin.Any-"></a><a name="encode"></a>
         <h3 class="api-name" id="encode(kotlin.Any)">encode</h3>

@rlazo rlazo enabled auto-merge (squash) November 29, 2024 14:34
Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_responses.sh should be updated to clone the latest version of the responses: v5.2

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 29, 2024

Coverage Report 1

Affected Products

  • firebase-functions

    Overall coverage changed from 34.62% (0743d5a) to 34.82% (a22dd43) by +0.20%.

    FilenameBase (0743d5a)Merge (a22dd43)Diff
    FirebaseContextProvider.kt27.78%27.03%-0.75%
    FirebaseFunctions.kt25.00%25.33%+0.33%
    Serializer.kt5.15%5.26%+0.11%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/z0AIE6bhkN.html

Copy link
Contributor

github-actions bot commented Nov 29, 2024

Test Results

20 files  +12  20 suites  +12   24s ⏱️ +5s
23 tests + 1  23 ✅ + 1  0 💤 ±0  0 ❌ ±0 
68 runs  +24  68 ✅ +24  0 💤 ±0  0 ❌ ±0 

Results for commit 8317dc0. ± Comparison against base commit 0743d5a.

This pull request removes 22 and adds 23 tests. Note that renamed tests count towards both.
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_disabledAnrs_doesNotPersistsAppExitInfo
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_enabledAnrs_doesNotPersistsAppExitInfoIfItDoesntExist
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_enabledAnrs_persistsAppExitInfoIfItExists
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testDefaultDataCollection_usedWhenNoOverrideOrManifestSetting
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testManifestMetadata_respectedWhenNoOverride
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testSetCrashlyticsDataCollectionEnabled_overridesOtherSettings
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_notPersistIfAnrBeforeSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_notPersistIfAppExitInfoNotAnrButWithinSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_persistIfAnrWithinSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_persistIfAnrWithinSession_multipleAppExitInfo
…
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should build callable with FAC settings (when false)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should build callable with FAC settings (when true)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should not use limited-use tokens by default
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl callable with FAC settings (when false)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl callable with FAC settings (when true)
com.google.firebase.functions.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl should not use limited-use tokens by default
com.google.firebase.functions.FunctionsRegistrarTest ‑ getComponents_publishesLibVersionComponent
com.google.firebase.functions.FunctionsTests ‑ Firebase#functions should delegate to FirebaseFunctions#getInstance(FirebaseApp, region)
com.google.firebase.functions.FunctionsTests ‑ Firebase#functions should delegate to FirebaseFunctions#getInstance(region)
com.google.firebase.functions.FunctionsTests ‑ FirebaseApp#functions should delegate to FirebaseFunctions#getInstance(FirebaseApp)
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 29, 2024

Size Report 1

Affected Products

  • firebase-functions

    TypeBase (0743d5a)Merge (a22dd43)Diff
    aar65.9 kB65.7 kB-189 B (-0.3%)
    apk (aggressive)440 kB439 kB-20 B (-0.0%)
    apk (release)5.44 MB5.44 MB-140 B (-0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/maPkj9Ut9H.html

@rlazo rlazo merged commit bae6706 into main Nov 29, 2024
33 checks passed
@rlazo rlazo deleted the rl.functions.warnings branch November 29, 2024 16:32
@firebase firebase locked and limited conversation to collaborators Dec 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants