diff --git a/src/main/java/net/dreamlu/mica/auto/factories/FactoriesFiles.java b/src/main/java/net/dreamlu/mica/auto/factories/FactoriesFiles.java index ad802ac5411d040f193edf17cc36aab12e5a03da..ba0507609046791ddde2f2185368c887906593d4 100644 --- a/src/main/java/net/dreamlu/mica/auto/factories/FactoriesFiles.java +++ b/src/main/java/net/dreamlu/mica/auto/factories/FactoriesFiles.java @@ -43,7 +43,7 @@ class FactoriesFiles { * @param output 输出流 * @throws IOException 异常信息 */ - static void writeFactoriesFile(MultiSetMap factories, + protected static void writeFactoriesFile(MultiSetMap 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 diff --git a/src/main/java/net/dreamlu/mica/auto/service/ServicesFiles.java b/src/main/java/net/dreamlu/mica/auto/service/ServicesFiles.java index 46e12098692eaff8a6d91c5291e0a5624de50a66..b5de4149233e76c6b75eca0656e61e83fe56f892 100644 --- a/src/main/java/net/dreamlu/mica/auto/service/ServicesFiles.java +++ b/src/main/java/net/dreamlu/mica/auto/service/ServicesFiles.java @@ -41,7 +41,7 @@ class ServicesFiles { * @return a not {@code null Set} of service class names. * @throws IOException */ - static Set readServiceFile(InputStream input) throws IOException { + protected static Set readServiceFile(InputStream input) throws IOException { HashSet 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 services, OutputStream output) throws IOException { + protected static void writeServiceFile(Collection 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) {