Skip to content

Commit

Permalink
Fix "non-transient instance field" javac warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Oct 4, 2022
1 parent 2090b22 commit 1e77c80
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public final class ProcessSwitch extends ControlFlowException {
private static final long serialVersionUID = 1L;
private final ContextObject newContext;
private final transient ContextObject newContext;

private ProcessSwitch(final ContextObject newContext) {
assert !newContext.isDead() : "Cannot switch to terminated context";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public final class Returns {
private abstract static class AbstractReturn extends ControlFlowException {
private static final long serialVersionUID = 1L;
protected final Object returnValue;
protected final transient Object returnValue;

private AbstractReturn(final Object result) {
assert result != null : "Unexpected `null` value";
Expand All @@ -29,7 +29,7 @@ public final Object getReturnValue() {

public static final class NonLocalReturn extends AbstractReturn {
private static final long serialVersionUID = 1L;
private final Object targetContextOrMarker;
private final transient Object targetContextOrMarker;

public NonLocalReturn(final Object returnValue, final Object targetContextOrMarker) {
super(returnValue);
Expand All @@ -54,8 +54,8 @@ public String toString() {

public static final class NonVirtualReturn extends AbstractReturn {
private static final long serialVersionUID = 1L;
private final ContextObject targetContext;
private final ContextObject currentContext;
private final transient ContextObject targetContext;
private final transient ContextObject currentContext;

public NonVirtualReturn(final Object returnValue, final ContextObject targetContext, final ContextObject currentContext) {
super(returnValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static SqueakException create(final Object... messageParts) {
@ExportLibrary(InteropLibrary.class)
public static final class SqueakSyntaxError extends AbstractSqueakException {
private static final long serialVersionUID = 1L;
private final SourceSection sourceSection;
private final transient SourceSection sourceSection;

public SqueakSyntaxError(final PointersObject syntaxErrorNotification) {
super(((NativeObject) syntaxErrorNotification.instVarAt0Slow(SYNTAX_ERROR_NOTIFICATION.ERROR_MESSAGE)).asStringUnsafe());
Expand Down Expand Up @@ -149,7 +149,7 @@ protected int getExceptionExitStatus() {
@ExportLibrary(value = InteropLibrary.class, delegateTo = "squeakException")
public static final class SqueakExceptionWrapper extends AbstractSqueakException {
private static final long serialVersionUID = 1L;
protected final PointersObject squeakException;
protected final transient PointersObject squeakException;

public SqueakExceptionWrapper(final PointersObject exception) {
squeakException = exception;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private static void tryToSetTaskbarIcon() {

private static final class SqueakDisplayCanvas extends Component {
private static final long serialVersionUID = 1L;
private BufferedImage bufferedImage;
private transient BufferedImage bufferedImage;

@Override
public boolean isOpaque() {
Expand Down

0 comments on commit 1e77c80

Please sign in to comment.