|
42 | 42 | import com.google.javascript.rhino.IR;
|
43 | 43 | import com.google.javascript.rhino.Node;
|
44 | 44 | import com.google.javascript.rhino.SourcePosition;
|
45 |
| -import java.io.IOException; |
46 |
| -import java.io.ObjectInputStream; |
47 |
| -import java.io.ObjectOutputStream; |
48 |
| -import java.io.OutputStream; |
49 |
| -import java.io.Serializable; |
50 | 45 | import java.nio.charset.Charset;
|
51 | 46 | import java.nio.file.Path;
|
52 | 47 | import java.util.ArrayList;
|
|
58 | 53 | import org.jspecify.annotations.Nullable;
|
59 | 54 |
|
60 | 55 | /** Compiler options */
|
61 |
| -public class CompilerOptions implements Serializable { |
| 56 | +public class CompilerOptions { |
62 | 57 | // The number of characters after which we insert a line break in the code
|
63 | 58 | static final int DEFAULT_LINE_LENGTH_THRESHOLD = 500;
|
64 | 59 |
|
@@ -2777,11 +2772,6 @@ public void setChunkOutputType(ChunkOutputType chunkOutputType) {
|
2777 | 2772 | this.chunkOutputType = chunkOutputType;
|
2778 | 2773 | }
|
2779 | 2774 |
|
2780 |
| - /** Serializes compiler options to a stream. */ |
2781 |
| - public void serialize(OutputStream objectOutputStream) throws IOException { |
2782 |
| - new ObjectOutputStream(objectOutputStream).writeObject(this); |
2783 |
| - } |
2784 |
| - |
2785 | 2775 | public void setStrictMessageReplacement(boolean strictMessageReplacement) {
|
2786 | 2776 | this.strictMessageReplacement = strictMessageReplacement;
|
2787 | 2777 | }
|
@@ -3360,19 +3350,6 @@ public char[] getPropertyReservedNamingNonFirstChars() {
|
3360 | 3350 | return reservedChars;
|
3361 | 3351 | }
|
3362 | 3352 |
|
3363 |
| - private void writeObject(ObjectOutputStream out) throws IOException { |
3364 |
| - out.defaultWriteObject(); |
3365 |
| - out.writeObject(outputCharset == null ? null : outputCharset.name()); |
3366 |
| - } |
3367 |
| - |
3368 |
| - private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { |
3369 |
| - in.defaultReadObject(); |
3370 |
| - String outputCharsetName = (String) in.readObject(); |
3371 |
| - if (outputCharsetName != null) { |
3372 |
| - outputCharset = Charset.forName(outputCharsetName); |
3373 |
| - } |
3374 |
| - } |
3375 |
| - |
3376 | 3353 | boolean shouldOptimize() {
|
3377 | 3354 | return !skipNonTranspilationPasses
|
3378 | 3355 | && !checksOnly
|
|
0 commit comments