Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockito/mockito
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.16.0
Choose a base ref
...
head repository: mockito/mockito
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.16.1
Choose a head ref
  • 3 commits
  • 22 files changed
  • 3 contributors

Commits on Mar 14, 2025

  1. Configuration menu
    Copy the full SHA
    d185035 View commit details
    Browse the repository at this point in the history
  2. Remove Arrays.asList from critical stubbing path in GenericMetadataSu…

    …pport (#3610)
    
    On Android, the implementation of `java.util.Arrays.ArrayList.toArray` has a
    non-trivial implementation that ends up calling into `android.os.Process.myUid()`.
    
    Consequently, attempting to stub static methods in `android.os.Process` with
    `doReturn` will end up calling into `myUid()` before the stubbing completes,
    triggering an infinite recursion.
    
    To work around that, replace the `addAll(asList(...))` call with `Collections.addAll`.
    As an added benefit this avoids an array copy.
    
    This upstreams https://r.android.com/3500336.
    adrianroos authored Mar 14, 2025
    Configuration menu
    Copy the full SHA
    0215884 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2025

  1. Rework of injection strategy in the context of modules (#3608)

    This fixes several reported issues with inaccessible classes and required
    extra reads and exports in module configuration.
    raphw authored Mar 15, 2025
    Configuration menu
    Copy the full SHA
    d000e63 View commit details
    Browse the repository at this point in the history
Loading