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

LearnLib / automatalib / 19566384231

21 Nov 2025 09:41AM UTC coverage: 92.565% (+0.4%) from 92.206%
19566384231

push

github

web-flow
Bump Java Version to 17/25 (#97)

* initial refactorings for Java 25 compatibility

spotbugs + pmd-plugin still need new releases that work on Java 25

* update CI config

* JDK builds pass

updates to the analysis plugins required some adjustments

* utilize Java 17 features

* fix documentation

* cleanups

* fix visibility issues

* potential fix for breaking GUI tests

* example: fix GUI tests

* cleanups

* jung: do not run GUI tests for now

* Revert "jung: do not run GUI tests for now"

This reverts commit 6a6645488.

* jung: found workaround for crashing JVM

* jacoco: correctly track coverage in GUI tests

* Revert "jung: found workaround for crashing JVM"

This reverts commit d99704042.

* Reapply "jung: do not run GUI tests for now"

This reverts commit 176cece7f.

* jung: add note

145 of 153 new or added lines in 51 files covered. (94.77%)

1 existing line in 1 file now uncovered.

16496 of 17821 relevant lines covered (92.56%)

1.72 hits per line

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

18.18
/commons/util/src/main/java/net/automatalib/common/util/WrapperUtil.java
1
/* Copyright (C) 2013-2025 TU Dortmund University
2
 * This file is part of AutomataLib <https://automatalib.net>.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package net.automatalib.common.util;
17

18
import org.checkerframework.checker.nullness.qual.Nullable;
19

20
public final class WrapperUtil {
21

22
    private WrapperUtil() {
23
        // prevent instantiation
24
    }
25

26
    public static boolean booleanValue(@Nullable Boolean b) {
27
        return booleanValue(b, false);
1✔
28
    }
29

30
    public static boolean booleanValue(@Nullable Boolean b, boolean def) {
31
        return (b != null) ? b : def;
1✔
32
    }
33

34
    public static short shortValue(@Nullable Short s, short def) {
UNCOV
35
        return (s != null) ? s : def;
×
36
    }
37

38
    public static int intValue(@Nullable Integer i) {
39
        return intValue(i, 0);
×
40
    }
41

42
    public static int intValue(@Nullable Integer i, int def) {
43
        return (i != null) ? i : def;
×
44
    }
45

46
    public static long longValue(@Nullable Long l) {
47
        return longValue(l, 0L);
×
48
    }
49

50
    public static long longValue(@Nullable Long l, long def) {
51
        return (l != null) ? l : def;
×
52
    }
53

54
    public static float floatValue(@Nullable Float f) {
55
        return floatValue(f, 0.0f);
×
56
    }
57

58
    public static float floatValue(@Nullable Float f, float def) {
59
        return (f != null) ? f : def;
×
60
    }
61

62
    public static double doubleValue(@Nullable Double d) {
63
        return doubleValue(d, 0.0);
×
64
    }
65

66
    public static double doubleValue(@Nullable Double d, double def) {
67
        return (d != null) ? d : def;
×
68
    }
69

70
}
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

© 2025 Coveralls, Inc