@@ -115,7 +115,7 @@ public void newInstance() {
115
115
callStack .push (spanEvent1 );
116
116
117
117
SpanEvent spanEvent2 = callStack .newInstance ();
118
- assertTrue (callStack .getFactory (). isDisable (spanEvent2 ));
118
+ assertTrue (callStack .isDisable (spanEvent2 ));
119
119
}
120
120
121
121
@ Test
@@ -177,19 +177,19 @@ public void overflow2() {
177
177
// overflow by sequence
178
178
assertEquals (maxDepth - 1 , callStack .getIndex ());
179
179
assertTrue (callStack .isOverflow ());
180
- assertFalse (callStack .getFactory (). isDisable (callStack .peek ()));
180
+ assertFalse (callStack .isDisable (callStack .peek ()));
181
181
182
182
callStack .push (getSpanEvent ());
183
183
assertEquals (maxDepth , callStack .getIndex ());
184
- assertTrue (callStack .getFactory (). isDisable (callStack .peek ()));
185
- assertTrue (callStack .getFactory (). isDisable (callStack .pop ()));
184
+ assertTrue (callStack .isDisable (callStack .peek ()));
185
+ assertTrue (callStack .isDisable (callStack .pop ()));
186
186
187
187
for (int i = maxDepth - 1 ; i > 0 ; i --) {
188
188
assertNotNull (callStack .peek ());
189
- assertFalse (callStack .getFactory (). isDisable (callStack .peek ()));
189
+ assertFalse (callStack .isDisable (callStack .peek ()));
190
190
SpanEvent element = callStack .pop ();
191
191
assertNotNull (element );
192
- assertFalse (callStack .getFactory (). isDisable (element ));
192
+ assertFalse (callStack .isDisable (element ));
193
193
assertTrue (callStack .isOverflow ());
194
194
}
195
195
}
0 commit comments