Skip to content

Commit 26ab5b3

Browse files
committed
chore: remove dependency on commons-lang3
1 parent b7cca0b commit 26ab5b3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ dependencies {
2323
implementation("org.springframework.boot:spring-boot-starter-web")
2424
implementation("org.springframework.boot:spring-boot-starter-validation")
2525
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
26-
implementation("org.apache.commons:commons-lang3")
2726

2827
compileOnly("org.jetbrains.kotlin:kotlin-reflect")
2928
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

src/main/kotlin/com/ekino/oss/errors/handler/HandlerHelper.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.ekino.oss.errors.handler
33
import com.ekino.oss.errors.ErrorBody
44
import com.ekino.oss.errors.ValidationErrorBody
55
import com.fasterxml.jackson.databind.exc.InvalidFormatException
6-
import org.apache.commons.lang3.exception.ExceptionUtils
76
import org.springframework.http.HttpHeaders
87
import org.springframework.http.HttpStatus
98
import org.springframework.http.ResponseEntity
@@ -108,7 +107,7 @@ fun String.camelToSnakeCase(): String {
108107
}
109108

110109
fun Throwable.toStacktrace(displayFullStacktrace: Boolean): String {
111-
return if (displayFullStacktrace) ExceptionUtils.getStackTrace(this) else ""
110+
return if (displayFullStacktrace) this.stackTraceToString() else ""
112111
}
113112

114113
fun HttpServletRequest.toServiceName(applicationName: String): String {

0 commit comments

Comments
 (0)