@@ -94,7 +94,7 @@ public FormatterStep applyWithin(List<FormatterStep> steps) {
94
94
return new ApplyWithin (name , regex , steps );
95
95
}
96
96
97
- static class ApplyWithin extends Apply implements FormatterFunc . Closeable . ResourceFuncNeedsFile < Formatter > {
97
+ static class ApplyWithin extends BaseStep {
98
98
private static final long serialVersionUID = 17061466531957339L ;
99
99
100
100
ApplyWithin (String name , Pattern regex , List <FormatterStep > steps ) {
@@ -114,7 +114,7 @@ public String apply(Formatter formatter, String unix, File file) throws Exceptio
114
114
}
115
115
}
116
116
117
- static class PreserveWithin extends Apply implements FormatterFunc . Closeable . ResourceFuncNeedsFile < Formatter > {
117
+ static class PreserveWithin extends BaseStep {
118
118
private static final long serialVersionUID = -8676786492305178343L ;
119
119
120
120
PreserveWithin (String name , Pattern regex , List <FormatterStep > steps ) {
@@ -139,7 +139,7 @@ public String apply(Formatter formatter, String unix, File file) throws Exceptio
139
139
}
140
140
141
141
@ SuppressFBWarnings ("SE_TRANSIENT_FIELD_NOT_RESTORED" )
142
- public static abstract class Apply implements Serializable , FormatterStep , FormatterFunc .Closeable .ResourceFuncNeedsFile <Formatter > {
142
+ public static abstract class BaseStep implements Serializable , FormatterStep , FormatterFunc .Closeable .ResourceFuncNeedsFile <Formatter > {
143
143
final String name ;
144
144
private static final long serialVersionUID = -2301848328356559915L ;
145
145
final Pattern regex ;
@@ -148,7 +148,7 @@ public static abstract class Apply implements Serializable, FormatterStep, Forma
148
148
transient ArrayList <String > groups = new ArrayList <>();
149
149
transient StringBuilder builderInternal ;
150
150
151
- public Apply (String name , Pattern regex , List <FormatterStep > steps ) {
151
+ public BaseStep (String name , Pattern regex , List <FormatterStep > steps ) {
152
152
this .name = name ;
153
153
this .regex = regex ;
154
154
this .steps = steps ;
@@ -238,7 +238,7 @@ public boolean equals(Object o) {
238
238
return true ;
239
239
if (o == null || getClass () != o .getClass ())
240
240
return false ;
241
- Apply step = (Apply ) o ;
241
+ BaseStep step = (BaseStep ) o ;
242
242
return name .equals (step .name ) && regex .pattern ().equals (step .regex .pattern ()) && regex .flags () == step .regex .flags () && steps .equals (step .steps );
243
243
}
244
244
0 commit comments