@@ -27,17 +27,17 @@ private GitHubNewIssueBodyBuilderUtil() {}
2727 * @param project Project
2828 * @param bugDescription String
2929 * @param stackTrace String
30- * @param maxAllowedBodyLength short
30+ * @param maxAllowedBodyLength int
3131 *
3232 * @return String
3333 */
3434 public static String buildNewBugReportBody (
3535 final @ NotNull Project project ,
3636 final @ NotNull String bugDescription ,
3737 final @ NotNull String stackTrace ,
38- final short maxAllowedBodyLength
38+ final int maxAllowedBodyLength
3939 ) {
40- final short maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
40+ final int maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
4141 project ,
4242 bugDescription ,
4343 maxAllowedBodyLength
@@ -91,16 +91,16 @@ private static String buildTemplate(
9191 * @param bugDescription String
9292 * @param maxAllowedBodyLength String
9393 *
94- * @return short
94+ * @return int
9595 */
96- private static short getMaxAllowedStackTraceLength (
96+ private static int getMaxAllowedStackTraceLength (
9797 final @ NotNull Project project ,
9898 final @ NotNull String bugDescription ,
99- final short maxAllowedBodyLength
99+ final int maxAllowedBodyLength
100100 ) {
101101 final String builtTemplateWithoutStackTrace = buildTemplate (project , bugDescription , "" );
102102
103- return ( short ) ( maxAllowedBodyLength - encode (builtTemplateWithoutStackTrace ).length () );
103+ return maxAllowedBodyLength - encode (builtTemplateWithoutStackTrace ).length ();
104104 }
105105
106106 /**
0 commit comments