mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Upgrade to spring javaformat 0.0.35
This commit is contained in:
@@ -164,22 +164,22 @@ public abstract class GradleBuildWriter {
|
||||
return "implementation";
|
||||
}
|
||||
switch (type) {
|
||||
case ANNOTATION_PROCESSOR:
|
||||
return "annotationProcessor";
|
||||
case COMPILE:
|
||||
return "implementation";
|
||||
case COMPILE_ONLY:
|
||||
return "compileOnly";
|
||||
case PROVIDED_RUNTIME:
|
||||
return "providedRuntime";
|
||||
case RUNTIME:
|
||||
return "runtimeOnly";
|
||||
case TEST_COMPILE:
|
||||
return "testImplementation";
|
||||
case TEST_RUNTIME:
|
||||
return "testRuntimeOnly";
|
||||
default:
|
||||
throw new IllegalStateException("Unrecognized dependency type '" + type + "'");
|
||||
case ANNOTATION_PROCESSOR:
|
||||
return "annotationProcessor";
|
||||
case COMPILE:
|
||||
return "implementation";
|
||||
case COMPILE_ONLY:
|
||||
return "compileOnly";
|
||||
case PROVIDED_RUNTIME:
|
||||
return "providedRuntime";
|
||||
case RUNTIME:
|
||||
return "runtimeOnly";
|
||||
case TEST_COMPILE:
|
||||
return "testImplementation";
|
||||
case TEST_RUNTIME:
|
||||
return "testRuntimeOnly";
|
||||
default:
|
||||
throw new IllegalStateException("Unrecognized dependency type '" + type + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -264,22 +264,22 @@ public class MavenBuildWriter {
|
||||
return null;
|
||||
}
|
||||
switch (type) {
|
||||
case ANNOTATION_PROCESSOR:
|
||||
return null;
|
||||
case COMPILE:
|
||||
return null;
|
||||
case COMPILE_ONLY:
|
||||
return null;
|
||||
case PROVIDED_RUNTIME:
|
||||
return "provided";
|
||||
case RUNTIME:
|
||||
return "runtime";
|
||||
case TEST_COMPILE:
|
||||
return "test";
|
||||
case TEST_RUNTIME:
|
||||
return "test";
|
||||
default:
|
||||
throw new IllegalStateException("Unrecognized dependency type '" + type + "'");
|
||||
case ANNOTATION_PROCESSOR:
|
||||
return null;
|
||||
case COMPILE:
|
||||
return null;
|
||||
case COMPILE_ONLY:
|
||||
return null;
|
||||
case PROVIDED_RUNTIME:
|
||||
return "provided";
|
||||
case RUNTIME:
|
||||
return "runtime";
|
||||
case TEST_COMPILE:
|
||||
return "test";
|
||||
case TEST_RUNTIME:
|
||||
return "test";
|
||||
default:
|
||||
throw new IllegalStateException("Unrecognized dependency type '" + type + "'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -613,23 +613,23 @@ public class MavenBuildWriter {
|
||||
for (int i = 0; i < text.length(); i++) {
|
||||
char character = text.charAt(i);
|
||||
switch (character) {
|
||||
case '\'':
|
||||
sb.append("'");
|
||||
break;
|
||||
case '\"':
|
||||
sb.append(""");
|
||||
break;
|
||||
case '<':
|
||||
sb.append("<");
|
||||
break;
|
||||
case '>':
|
||||
sb.append(">");
|
||||
break;
|
||||
case '&':
|
||||
sb.append("&");
|
||||
break;
|
||||
default:
|
||||
sb.append(character);
|
||||
case '\'':
|
||||
sb.append("'");
|
||||
break;
|
||||
case '\"':
|
||||
sb.append(""");
|
||||
break;
|
||||
case '<':
|
||||
sb.append("<");
|
||||
break;
|
||||
case '>':
|
||||
sb.append(">");
|
||||
break;
|
||||
case '&':
|
||||
sb.append("&");
|
||||
break;
|
||||
default:
|
||||
sb.append(character);
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
|
||||
Reference in New Issue
Block a user