Improve Javadoc, make wrapper properties final

This commit is contained in:
Kai S. K. Engelbart 2022-02-11 09:48:34 +01:00
parent 4872fd3db3
commit b30f806894
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
package dev.kske.undoredo.core; package dev.kske.undoredo.core;
/** /**
* Base interface for changes to be registered in an undo manager. * Base interface for changes to be registered in a change manager.
* *
* @author Maximilian Käfer * @author Maximilian Käfer
* @since 0.0.1 * @since 0.0.1

View File

@ -28,13 +28,13 @@ public class ChangeManagerWrapper<C extends Change, M extends ChangeManager<C>>
public static final String UNDO_AVAILABLE = "undoAvailable"; public static final String UNDO_AVAILABLE = "undoAvailable";
public static final String REDO_AVAILABLE = "redoAvailable"; public static final String REDO_AVAILABLE = "redoAvailable";
protected ReadOnlyObjectWrapper<C> lastChange = protected final ReadOnlyObjectWrapper<C> lastChange =
new ReadOnlyObjectWrapper<>(this, LAST_CHANGE); new ReadOnlyObjectWrapper<>(this, LAST_CHANGE);
protected ReadOnlyBooleanWrapper atMarkedChange = protected final ReadOnlyBooleanWrapper atMarkedChange =
new ReadOnlyBooleanWrapper(this, AT_MARKED_CHANGE); new ReadOnlyBooleanWrapper(this, AT_MARKED_CHANGE);
protected ReadOnlyBooleanWrapper undoAvailable = protected final ReadOnlyBooleanWrapper undoAvailable =
new ReadOnlyBooleanWrapper(this, UNDO_AVAILABLE); new ReadOnlyBooleanWrapper(this, UNDO_AVAILABLE);
protected ReadOnlyBooleanWrapper redoAvailable = protected final ReadOnlyBooleanWrapper redoAvailable =
new ReadOnlyBooleanWrapper(this, REDO_AVAILABLE); new ReadOnlyBooleanWrapper(this, REDO_AVAILABLE);
protected final M manager; protected final M manager;