Commit 94618a3c authored by amir.yosef's avatar amir.yosef

Make the factories final

parent 40e96001
...@@ -7,7 +7,7 @@ import server.SendToReplica; ...@@ -7,7 +7,7 @@ import server.SendToReplica;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List; import java.util.List;
public class CommandFactory implements Factory { public final class CommandFactory implements Factory {
private static final class FactoryHolder { private static final class FactoryHolder {
private static final CommandFactory factory = new CommandFactory(); private static final CommandFactory factory = new CommandFactory();
......
...@@ -9,7 +9,7 @@ import model.Command; ...@@ -9,7 +9,7 @@ import model.Command;
import java.util.List; import java.util.List;
public class ReplicaCommandFactory implements Factory { public final class ReplicaCommandFactory implements Factory {
private static final class ReplicaFactoryHolder { private static final class ReplicaFactoryHolder {
private static final ReplicaCommandFactory factory = new ReplicaCommandFactory(); private static final ReplicaCommandFactory factory = new ReplicaCommandFactory();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment