Skip to content

Fix warnings for Java 21 #876

Closed
Closed
@jenetics

Description

Fix compiler warnings for Java 20.

> Task :jenetics:compileJava
```java

``` jenetics/src/main/java/io/jenetics/internal/util/Lifecycle.java:779: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
                                } catch (VirtualMachineError|ThreadDeath|LinkageError e) {
                                                             ^
1 warning
jenetics/src/test/java/io/jenetics/internal/util/ConcurrencyTest.java:66: warning: [deprecation] getId() in Thread has been deprecated
                                        _task, Thread.currentThread().getId(), _sleep
                                                                     ^
1 warning
jenetics.incubator/src/main/java/io/jenetics/incubator/beans/property/Property.java:207: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
                                } catch (VirtualMachineError|ThreadDeath|LinkageError e) {
                                                             ^
1 warning
``

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions