• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / jmockit1 / 496

15 Nov 2025 05:33PM UTC coverage: 72.192% (-0.008%) from 72.2%
496

push

github

web-flow
Merge pull request #412 from hazendaz/renovate/major-spring-core

Update spring core to v7 (major)

5677 of 8360 branches covered (67.91%)

Branch coverage included in aggregate %.

11922 of 16018 relevant lines covered (74.43%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/main/src/main/java/mockit/asm/constantPool/MethodHandleItem.java
1
/*
2
 * MIT License
3
 * Copyright (c) 2006-2025 JMockit developers
4
 * See LICENSE file for full license text.
5
 */
6
package mockit.asm.constantPool;
7

8
import static mockit.asm.jvmConstants.ConstantPoolTypes.HANDLE_BASE;
9

10
import edu.umd.cs.findbugs.annotations.NonNull;
11

12
import mockit.asm.util.MethodHandle;
13

14
import org.checkerframework.checker.index.qual.NonNegative;
15

16
public final class MethodHandleItem extends Item {
17
    private MethodHandle methodHandle;
18

19
    public MethodHandleItem(@NonNegative int index) {
20
        super(index);
1✔
21
        type = HANDLE_BASE;
1✔
22
    }
1✔
23

24
    MethodHandleItem(@NonNegative int index, @NonNull MethodHandleItem item) {
25
        super(index, item);
×
26
        methodHandle = item.methodHandle;
×
27
    }
×
28

29
    /**
30
     * Sets the type and hash code of this method handle item.
31
     */
32
    public void set(@NonNull MethodHandle methodHandle) {
33
        this.methodHandle = methodHandle;
1✔
34
        type = HANDLE_BASE;
1✔
35
        setHashCode(methodHandle.hashCode());
1✔
36
        type = HANDLE_BASE + methodHandle.tag;
1✔
37
    }
1✔
38

39
    @Override
40
    boolean isEqualTo(@NonNull Item item) {
41
        return ((MethodHandleItem) item).methodHandle.equals(methodHandle);
1✔
42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc