Skip to content
Snippets Groups Projects
Commit d4037179 authored by Adam Welc's avatar Adam Welc
Browse files

Added final modifiers.

parent ed55017f
Branches
No related tags found
No related merge requests found
...@@ -204,7 +204,7 @@ public class RChannel { ...@@ -204,7 +204,7 @@ public class RChannel {
private static class TransmitterCommon extends RSerialize.RefCounter { private static class TransmitterCommon extends RSerialize.RefCounter {
protected static class SerializedRef { protected static class SerializedRef {
private int index; private final int index;
public SerializedRef(int index) { public SerializedRef(int index) {
this.index = index; this.index = index;
...@@ -217,7 +217,7 @@ public class RChannel { ...@@ -217,7 +217,7 @@ public class RChannel {
protected static class SerializedList { protected static class SerializedList {
private RList list; private final RList list;
SerializedList(RList list) { SerializedList(RList list) {
this.list = list; this.list = list;
...@@ -231,8 +231,8 @@ public class RChannel { ...@@ -231,8 +231,8 @@ public class RChannel {
protected static class SerializedEnv { protected static class SerializedEnv {
public static class Bindings { public static class Bindings {
private String[] names; private final String[] names;
private Object[] values; private final Object[] values;
Bindings(String[] names, Object[] values) { Bindings(String[] names, Object[] values) {
this.names = names; this.names = names;
...@@ -270,9 +270,9 @@ public class RChannel { ...@@ -270,9 +270,9 @@ public class RChannel {
protected static class SerializedPromise { protected static class SerializedPromise {
private Object env; private final Object env;
private Object value; private final Object value;
private byte[] serializedExpr; private final byte[] serializedExpr;
public SerializedPromise(Object env, Object value, byte[] serializedExpr) { public SerializedPromise(Object env, Object value, byte[] serializedExpr) {
this.env = env; this.env = env;
...@@ -295,9 +295,9 @@ public class RChannel { ...@@ -295,9 +295,9 @@ public class RChannel {
} }
protected static class SerializedFunction { protected static class SerializedFunction {
private RAttributes attributes; private final RAttributes attributes;
private Object env; private final Object env;
private byte[] serializedDef; private final byte[] serializedDef;
public SerializedFunction(RAttributes attributes, Object env, byte[] serializedDef) { public SerializedFunction(RAttributes attributes, Object env, byte[] serializedDef) {
this.attributes = attributes; this.attributes = attributes;
...@@ -320,8 +320,8 @@ public class RChannel { ...@@ -320,8 +320,8 @@ public class RChannel {
protected static class SerializedAttributable { protected static class SerializedAttributable {
private RAttributes attributes; private final RAttributes attributes;
private byte[] serializedAttributable; private final byte[] serializedAttributable;
public SerializedAttributable(RAttributes attributes, byte[] serializedAttributable) { public SerializedAttributable(RAttributes attributes, byte[] serializedAttributable) {
this.attributes = attributes; this.attributes = attributes;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment