mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
fix deprecation warning
https://github.com/FasterXML/jackson-core/blob/jackson-core-2.8.4/src/main/java/com/fasterxml/jackson/core/JsonParseException.java#L31
This commit is contained in:
@@ -392,7 +392,7 @@ class JsonFormatSpec extends FunSuite {
|
||||
case e: com.fasterxml.jackson.core.JsonParseException => {
|
||||
val p = java.lang.Math.max(e.getLocation.getCharOffset() - 10, 0).toInt
|
||||
val message = json2.substring(p, java.lang.Math.min(p + 100, json2.length))
|
||||
throw new com.fasterxml.jackson.core.JsonParseException(message + e.getMessage, e.getLocation)
|
||||
throw new com.fasterxml.jackson.core.JsonParseException(e.getProcessor, message + e.getMessage)
|
||||
}
|
||||
}
|
||||
val js1 = parse(resultJson)
|
||||
|
||||
Reference in New Issue
Block a user