Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 44d6a38

Browse files
committed
Make compiled schemas fields transient
1 parent 89cd8b4 commit 44d6a38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/raml/model/MimeType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class MimeType implements Serializable
3636
@Scalar(rule = org.raml.parser.rule.SchemaRule.class, builder = SchemaTupleBuilder.class)
3737
private String schema;
3838

39-
private Object compiledSchema;
39+
private transient Object compiledSchema;
4040

4141
@Scalar
4242
private String example;

src/main/java/org/raml/model/Raml.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class Raml implements Serializable
5656
@Sequence(rule = org.raml.parser.rule.GlobalSchemasRule.class)
5757
private List<Map<String, String>> schemas = new ArrayList<Map<String, String>>();
5858

59-
private Map<String, Object> compiledSchemas;
59+
private transient Map<String, Object> compiledSchemas;
6060

6161
@Sequence
6262
private List<Map<String, Template>> resourceTypes = new ArrayList<Map<String, Template>>();

0 commit comments

Comments
 (0)