INRIA / INRIA/spoon

[Bug]: ModificationStatus throws exception for no good reason?

Open
#5,083 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

### Describe the bug

Consider revising `ModificationStatus` to `return false` instead of throwing an exception.

``` java
public boolean toBoolean() {
if (this == MODIFIED) {
return true;
}
if (this == NOT_MODIFIED) {
return false;
}
return false;
}
```

### Source code you are trying to analyze/transform

_No response_

### Source code for your Spoon processing

_No response_

### Actual output

_No response_

### Expected output

_No response_

### Spoon Version

Latest

### JVM Version

18

### What operating system are you using?

Arch Linux

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.