diff --git a/engine/runtime-parser/src/main/java/org/enso/compiler/core/ir/IrPersistance.java b/engine/runtime-parser/src/main/java/org/enso/compiler/core/ir/IrPersistance.java index 073f0275bbc8..64db177f513b 100644 --- a/engine/runtime-parser/src/main/java/org/enso/compiler/core/ir/IrPersistance.java +++ b/engine/runtime-parser/src/main/java/org/enso/compiler/core/ir/IrPersistance.java @@ -129,6 +129,42 @@ protected String readObject(Input in) throws IOException, ClassNotFoundException } } + @ServiceProvider(service = Persistance.class) + public static final class PersistLong extends Persistance { + public PersistLong() { + super(Long.class, true, 4438); + } + + @Override + protected void writeObject(Long obj, Output out) throws IOException { + out.writeLong(obj); + } + + @Override + protected Long readObject(Input in) throws IOException, ClassNotFoundException { + var obj = in.readLong(); + return obj; + } + } + + @ServiceProvider(service = Persistance.class) + public static final class PersistDouble extends Persistance { + public PersistDouble() { + super(Double.class, true, 4439); + } + + @Override + protected void writeObject(Double obj, Output out) throws IOException { + out.writeDouble(obj); + } + + @Override + protected Double readObject(Input in) throws IOException, ClassNotFoundException { + var obj = in.readDouble(); + return obj; + } + } + @ServiceProvider(service = Persistance.class) public static final class PersistScalaList extends Persistance { public PersistScalaList() { @@ -263,7 +299,7 @@ protected scala.collection.immutable.Set readObject(Input in) @ServiceProvider(service = Persistance.class) public static final class PersistMap extends Persistance { public PersistMap() { - super(HashMap.class, true, 4439); + super(HashMap.class, true, 4440); } @Override