-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,22 @@ | |
|
||
import org.key_project.util.java.ArrayUtil; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
import org.jspecify.annotations.Nullable; | ||
|
||
/** | ||
* Implements the basic methods that a Java bean should have and is the default implementation of | ||
* {@link IBean}. | ||
* | ||
* @author Martin Hentschel | ||
* @see IBean | ||
*/ | ||
@SuppressWarnings("nullness") | ||
@NullMarked | ||
public class Bean implements IBean { | ||
/** | ||
* The used {@link PropertyChangeSupport}. | ||
*/ | ||
@SuppressWarnings("nullness") // TODO Check with Werner Dietl why this is so. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wmdietl
Contributor
|
||
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this); | ||
|
||
/** | ||
|
@@ -127,8 +131,8 @@ protected void fireIndexedPropertyChange(String propertyName, int index, int old | |
* @param oldValue The old value. | ||
* @param newValue The new value. | ||
*/ | ||
protected void fireIndexedPropertyChange(String propertyName, int index, Object oldValue, | ||
Object newValue) { | ||
protected void fireIndexedPropertyChange(String propertyName, int index, | ||
@Nullable Object oldValue, @Nullable Object newValue) { | ||
pcs.fireIndexedPropertyChange(propertyName, index, oldValue, newValue); | ||
} | ||
|
||
|
@wmdietl: I get a weird error here. How can I avoid it?