@@ -27,17 +27,17 @@ private GitHubNewIssueBodyBuilderUtil() {}
27
27
* @param project Project
28
28
* @param bugDescription String
29
29
* @param stackTrace String
30
- * @param maxAllowedBodyLength short
30
+ * @param maxAllowedBodyLength int
31
31
*
32
32
* @return String
33
33
*/
34
34
public static String buildNewBugReportBody (
35
35
final @ NotNull Project project ,
36
36
final @ NotNull String bugDescription ,
37
37
final @ NotNull String stackTrace ,
38
- final short maxAllowedBodyLength
38
+ final int maxAllowedBodyLength
39
39
) {
40
- final short maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
40
+ final int maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
41
41
project ,
42
42
bugDescription ,
43
43
maxAllowedBodyLength
@@ -91,16 +91,16 @@ private static String buildTemplate(
91
91
* @param bugDescription String
92
92
* @param maxAllowedBodyLength String
93
93
*
94
- * @return short
94
+ * @return int
95
95
*/
96
- private static short getMaxAllowedStackTraceLength (
96
+ private static int getMaxAllowedStackTraceLength (
97
97
final @ NotNull Project project ,
98
98
final @ NotNull String bugDescription ,
99
- final short maxAllowedBodyLength
99
+ final int maxAllowedBodyLength
100
100
) {
101
101
final String builtTemplateWithoutStackTrace = buildTemplate (project , bugDescription , "" );
102
102
103
- return ( short ) ( maxAllowedBodyLength - encode (builtTemplateWithoutStackTrace ).length () );
103
+ return maxAllowedBodyLength - encode (builtTemplateWithoutStackTrace ).length ();
104
104
}
105
105
106
106
/**
0 commit comments