From 9f15aad5489902d816d25c6c54be37dfbc61aad9 Mon Sep 17 00:00:00 2001
From: Vladislav Velichko <111522705+vlad8x8@users.noreply.github.com>
Date: Wed, 10 Jul 2024 01:16:46 -0400
Subject: [PATCH] Fix javadoc for internal/Utils.java (#3148)
* fix javadoc for internal/Utils.java
---
.../src/main/java/org/testng/annotations/Test.java | 4 ++--
testng-core-api/src/main/java/org/testng/internal/Utils.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
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);