mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Remove unnecessary serialization code from java.util.regex.Pattern
This commit is contained in:
parent
d8a1983876
commit
c4bb803965
|
@ -131,8 +131,6 @@ public final class TPattern implements Serializable {
|
||||||
*/
|
*/
|
||||||
private int flags = 0;
|
private int flags = 0;
|
||||||
|
|
||||||
private String pattern = null;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* All backreferences that may be used in pattern.
|
* All backreferences that may be used in pattern.
|
||||||
*/
|
*/
|
||||||
|
@ -320,7 +318,6 @@ public final class TPattern implements Serializable {
|
||||||
private TPattern compileImpl(String pattern, int flags) throws TPatternSyntaxException {
|
private TPattern compileImpl(String pattern, int flags) throws TPatternSyntaxException {
|
||||||
this.lexemes = new TLexer(pattern, flags);
|
this.lexemes = new TLexer(pattern, flags);
|
||||||
this.flags = flags;
|
this.flags = flags;
|
||||||
this.pattern = pattern;
|
|
||||||
|
|
||||||
start = processExpression(-1, this.flags, null);
|
start = processExpression(-1, this.flags, null);
|
||||||
if (!lexemes.isEmpty()) {
|
if (!lexemes.isEmpty()) {
|
||||||
|
@ -1342,19 +1339,4 @@ public final class TPattern implements Serializable {
|
||||||
*/
|
*/
|
||||||
private TPattern() {
|
private TPattern() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Serialization support
|
|
||||||
*/
|
|
||||||
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
|
|
||||||
s.defaultReadObject();
|
|
||||||
TAbstractSet.counter = 1;
|
|
||||||
globalGroupIndex = -1;
|
|
||||||
compCount = -1;
|
|
||||||
consCount = -1;
|
|
||||||
backRefs = new TFSet[BACK_REF_NUMBER];
|
|
||||||
|
|
||||||
compileImpl(pattern, flags);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user