Skip to content

Commit

Permalink
[#78] fixed abstract memory context interface
Browse files Browse the repository at this point in the history
  • Loading branch information
vbmacher committed Apr 23, 2023
1 parent fe6339a commit 371c489
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package net.emustudio.emulib.plugins.memory;

import net.emustudio.emulib.plugins.memory.annotations.Annotations;
import net.emustudio.emulib.plugins.memory.annotations.MemoryContextAnnotations;
import net.jcip.annotations.ThreadSafe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -38,9 +38,9 @@ public abstract class AbstractMemoryContext<CellType> implements MemoryContext<C
private final static Logger LOGGER = LoggerFactory.getLogger(AbstractMemoryContext.class);

private volatile boolean notificationsEnabled = true;
protected final Annotations annotations;
protected final MemoryContextAnnotations annotations;

protected AbstractMemoryContext(Annotations annotations) {
protected AbstractMemoryContext(MemoryContextAnnotations annotations) {
this.annotations = Objects.requireNonNull(annotations);
}

Expand Down Expand Up @@ -128,7 +128,7 @@ public void notifyMemorySizeChanged() {
}

@Override
public Annotations annotations() {
public MemoryContextAnnotations annotations() {
return annotations;
}
}

0 comments on commit 371c489

Please sign in to comment.