-package org.simantics.scl.compiler.internal.codegen.utils;\r
-\r
-public class MethodSizeCounter {\r
- public String maxMethodName;\r
- public int methodSizeLower;\r
- public int methodSizeUpper;\r
- \r
- public void update(String methodName, int lower, int upper) {\r
- if(upper > methodSizeUpper) {\r
- maxMethodName = methodName;\r
- methodSizeLower = lower;\r
- methodSizeUpper = upper;\r
- }\r
- }\r
- \r
- @Override\r
- public String toString() {\r
- if(methodSizeLower == methodSizeUpper)\r
- return maxMethodName + " " + methodSizeLower;\r
- else\r
- return maxMethodName + " [" + methodSizeLower + "," + methodSizeUpper + "]";\r
- }\r
-}\r
+package org.simantics.scl.compiler.internal.codegen.utils;
+
+public class MethodSizeCounter {
+ public String maxMethodName;
+ public int methodSizeLower;
+ public int methodSizeUpper;
+
+ public void update(String methodName, int lower, int upper) {
+ if(upper > methodSizeUpper) {
+ maxMethodName = methodName;
+ methodSizeLower = lower;
+ methodSizeUpper = upper;
+ }
+ }
+
+ @Override
+ public String toString() {
+ if(methodSizeLower == methodSizeUpper)
+ return maxMethodName + " " + methodSizeLower;
+ else
+ return maxMethodName + " [" + methodSizeLower + "," + methodSizeUpper + "]";
+ }
+}