fixing build and check styles
*/
package org.wso2.siddhi.core.event.stream;
-import org.wso2.siddhi.core.config.SiddhiAppContext;
import org.wso2.siddhi.core.event.ComplexEvent;
import java.io.IOException;
@@ -215,11 +214,10 @@ public class StreamEvent implements ComplexEvent {
return toString(100);
}
- public String toString(int maxNoOfEventsToPrint) {
+ public String toString(long maxNoOfEventsToPrint) {
if (maxNoOfEventsToPrint == 0) {
return "...";
}
- maxNoOfEventsToPrint = --maxNoOfEventsToPrint;
return "StreamEvent{ timestamp=" + timestamp +
", beforeWindowData=" + (beforeWindowData == null ? "null" : Arrays.asList(beforeWindowData)
.toString()) +
@@ -227,7 +225,7 @@ public class StreamEvent implements ComplexEvent {
(onAfterWindowData).toString()) +
", outputData=" + (outputData == null ? "null" : Arrays.asList(outputData).toString()) +
", type=" + type +
- ", next=" + next.toString(maxNoOfEventsToPrint) +
+ ", next=" + next.toString(maxNoOfEventsToPrint - 1) +
'}';
}
