[#4209] refactor(DER): use StandardCharsets.UTF_8 instead of hardcoded "UTF-8" #2485
Annotations
3 errors
|
task ':server-common:spotlessJavaCheck'#L1
Execution failed for task ':server-common:spotlessJavaCheck':
The following files had format violations:
src/main/java/org/apache/gravitino/server/authentication/KerberosServerUtils.java
@@ -21,8 +21,8 @@
import·java.net.InetAddress;
import·java.net.UnknownHostException;
import·java.nio.ByteBuffer;
+import·java.nio.charset.IllegalCharsetNameException;
import·java.nio.charset.StandardCharsets;
-import·java.nio.charset.IllegalCharsetNameException;
import·java.util.ArrayList;
import·java.util.HashSet;
import·java.util.Iterator;
@@ -351,7 +351,8 @@
····String·getAsString()·{
······try·{
-········return·new·String(bb.array(),·bb.arrayOffset()·+·bb.position(),·bb.remaining(),·StandardCharsets.UTF_8);
+········return·new·String(
+············bb.array(),·bb.arrayOffset()·+·bb.position(),·bb.remaining(),·StandardCharsets.UTF_8);
······}·catch·(UnsupportedEncodingException·e)·{
········throw·new·IllegalCharsetNameException("UTF-8");·//·won't·happen.
······}
Run './gradlew :server-common:spotlessApply' to fix these violations.
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111)
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:233)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199)
at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)
at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunn
|
|
This job was cancelled
Loading