Skip to content

Fixes for DM_DEFAULT_ENCODING spotbugs warnings#4501

Merged
shai-almog merged 1 commit intomasterfrom
fix-spotbugs-DM_DEFAULT_ENCODING
Feb 8, 2026
Merged

Fixes for DM_DEFAULT_ENCODING spotbugs warnings#4501
shai-almog merged 1 commit intomasterfrom
fix-spotbugs-DM_DEFAULT_ENCODING

Conversation

@shai-almog
Copy link
Collaborator

No description provided.

@shai-almog shai-almog force-pushed the fix-spotbugs-DM_DEFAULT_ENCODING branch from a711b7a to 746431d Compare February 7, 2026 15:18
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

✅ ByteCodeTranslator Quality Report

Test & Coverage

  • Tests: 146 total, 0 failed, 2 skipped

Benchmark Results

  • Execution Time: 10272 ms

  • Hotspots (Top 20 sampled methods):

    • 22.18% java.lang.String.indexOf (405 samples)
    • 17.31% com.codename1.tools.translator.Parser.isMethodUsed (316 samples)
    • 15.83% com.codename1.tools.translator.Parser.addToConstantPool (289 samples)
    • 10.62% java.util.ArrayList.indexOf (194 samples)
    • 4.44% java.lang.Object.hashCode (81 samples)
    • 3.50% com.codename1.tools.translator.ByteCodeClass.calcUsedByNative (64 samples)
    • 2.52% java.lang.System.identityHashCode (46 samples)
    • 2.46% com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable (45 samples)
    • 1.15% com.codename1.tools.translator.BytecodeMethod.optimize (21 samples)
    • 1.10% java.lang.Integer.getChars (20 samples)
    • 1.04% com.codename1.tools.translator.BytecodeMethod.appendCMethodPrefix (19 samples)
    • 1.04% java.lang.StringCoding.encode (19 samples)
    • 0.93% com.codename1.tools.translator.ByteCodeClass.markDependent (17 samples)
    • 0.88% java.lang.StringBuilder.append (16 samples)
    • 0.82% sun.nio.ch.FileDispatcherImpl.write0 (15 samples)
    • 0.77% sun.nio.fs.UnixNativeDispatcher.open0 (14 samples)
    • 0.71% com.codename1.tools.translator.Parser.generateClassAndMethodIndexHeader (13 samples)
    • 0.60% com.codename1.tools.translator.Parser.cullMethods (11 samples)
    • 0.60% java.io.UnixFileSystem.getBooleanAttributes0 (11 samples)
    • 0.55% com.codename1.tools.translator.BytecodeMethod.addToConstantPool (10 samples)
  • ⚠️ Coverage report not generated.

Static Analysis

  • ✅ SpotBugs: no findings (report was not generated by the build).
  • ⚠️ PMD report not generated.
  • ⚠️ Checkstyle report not generated.

Generated automatically by the PR CI workflow.

@shai-almog shai-almog force-pushed the fix-spotbugs-DM_DEFAULT_ENCODING branch 4 times, most recently from 8a9dc74 to 850898a Compare February 7, 2026 16:29
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog shai-almog force-pushed the fix-spotbugs-DM_DEFAULT_ENCODING branch from 850898a to 3f2e51b Compare February 7, 2026 18:16
@shai-almog
Copy link
Collaborator Author

shai-almog commented Feb 7, 2026

Compared 30 screenshots: 30 matched.

Native Android coverage

  • 📊 Line coverage: 7.14% (3622/50707 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 5.57% (17791/319371), branch 2.71% (842/31061), complexity 3.31% (983/29686), method 5.83% (806/13824), class 9.53% (174/1825)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/712 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 7.14% (3622/50707 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 5.57% (17791/319371), branch 2.71% (842/31061), complexity 3.31% (983/29686), method 5.83% (806/13824), class 9.53% (174/1825)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/712 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

@shai-almog shai-almog force-pushed the fix-spotbugs-DM_DEFAULT_ENCODING branch from 3f2e51b to 915e772 Compare February 7, 2026 18:43
@shai-almog shai-almog force-pushed the fix-spotbugs-DM_DEFAULT_ENCODING branch from 915e772 to 2d7905d Compare February 7, 2026 19:13
@shai-almog
Copy link
Collaborator Author

shai-almog commented Feb 7, 2026

Compared 30 screenshots: 30 matched.
✅ Native Android screenshot tests passed.

Benchmark Results

  • VM Translation Time: 289 seconds
  • Compilation Time: 261 seconds

Detailed Performance Metrics

Metric Duration
Build Time Statistics
Setup & Unzip 25915 ms
Extract Extensions 21 ms
Google Services Setup 3 ms
Scan Classes 551 ms
Extract Libs 1007 ms
Inject Build Hints 29 ms
Generate Unit Tests 2 ms
Generate Stubs 841 ms
Compile Stubs 1927 ms
Generate Icons 808 ms
Prepare ParparVM 191 ms
ParparVM Execution 168427 ms
Post-VM Setup 174 ms
CocoaPods 5023 ms
Finalize 30 ms
Total Time 204950 msMaven Overhead : 85000 ms
CocoaPods Install (Script) 1000 ms
Simulator Boot 183000 ms
Simulator Boot (Run) 2000 ms
App Install 58000 ms
App Launch 20000 ms
Test Execution 165000 ms

@shai-almog shai-almog merged commit 295efa9 into master Feb 8, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant