diff --git a/testng-core-api/src/main/java/org/testng/annotations/Test.java b/testng-core-api/src/main/java/org/testng/annotations/Test.java
index 62734d4ee..5c13d7e31 100644
--- a/testng-core-api/src/main/java/org/testng/annotations/Test.java
+++ b/testng-core-api/src/main/java/org/testng/annotations/Test.java
@@ -139,8 +139,8 @@
String expectedExceptionsMessageRegExp() default ".*";
/**
- * The name of the suite this test class should be placed in. This attribute is ignored if @Test is
- * not at the class level.
+ * The name of the suite this test class should be placed in. This attribute is ignored if @Test
+ * is not at the class level.
*
* @return the value (default empty)
*/
diff --git a/testng-core-api/src/main/java/org/testng/internal/Utils.java b/testng-core-api/src/main/java/org/testng/internal/Utils.java
index 174c8ef39..fbcf6cf91 100644
--- a/testng-core-api/src/main/java/org/testng/internal/Utils.java
+++ b/testng-core-api/src/main/java/org/testng/internal/Utils.java
@@ -311,7 +311,7 @@ public static boolean isStringNotEmpty(String s) {
*
* @param t - The {@link Throwable} exception
* @param toHtml - true
if the stacktrace should be translated to html as well
- * @return - A string that represents the short stack trace.
+ * @return - A string that represents the full stack trace.
*/
public static String longStackTrace(Throwable t, boolean toHtml) {
return buildStackTrace(t, toHtml, StackTraceType.FULL);
@@ -322,7 +322,7 @@ public static String longStackTrace(Throwable t, boolean toHtml) {
*
* @param t - The {@link Throwable} exception
* @param toHtml - true
if the stacktrace should be translated to html as well
- * @return - A string that represents the full stack trace.
+ * @return - A string that represents the short stack trace.
*/
public static String shortStackTrace(Throwable t, boolean toHtml) {
return buildStackTrace(t, toHtml, StackTraceType.SHORT);