提交 36acddf8 编写于 作者: 如梦技术's avatar 如梦技术 🐛

优化 codacy 问题

上级 eba2f356
......@@ -43,7 +43,7 @@ class FactoriesFiles {
* @param output 输出流
* @throws IOException 异常信息
*/
static void writeFactoriesFile(MultiSetMap<String, String> factories,
protected static void writeFactoriesFile(MultiSetMap<String, String> factories,
OutputStream output) throws IOException {
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(output, UTF_8));
writer.write("# Generated by mica-auto www.dreamlu.net\n");
......@@ -72,7 +72,7 @@ class FactoriesFiles {
* @param output 输出流
* @throws IOException 异常信息
*/
static void writeDevToolsFile(String projectName,
protected static void writeDevToolsFile(String projectName,
OutputStream output) throws IOException {
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(output, UTF_8));
// restart.include.mica-cloud=/mica-cloud[\\w-]+\.jar
......
......@@ -41,7 +41,7 @@ class ServicesFiles {
* @return a not {@code null Set} of service class names.
* @throws IOException
*/
static Set<String> readServiceFile(InputStream input) throws IOException {
protected static Set<String> readServiceFile(InputStream input) throws IOException {
HashSet<String> serviceClasses = new HashSet<>();
try (
InputStreamReader isr = new InputStreamReader(input, UTF_8);
......@@ -69,7 +69,7 @@ class ServicesFiles {
* @param services a not {@code null Collection} of service class names.
* @throws IOException
*/
static void writeServiceFile(Collection<String> services, OutputStream output) throws IOException {
protected static void writeServiceFile(Collection<String> services, OutputStream output) throws IOException {
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(output, UTF_8));
writer.write("# Generated by mica-auto www.dreamlu.net\n");
for (String service : services) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册