Skip to content

Commit 1a40dfc

Browse files
author
huangwei
committed
代码备份
1 parent fca2626 commit 1a40dfc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

yellow-proceesor/src/main/java/com/yellow/anno/process/IdProcessor2.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package com.yellow.anno.process;
22

3+
import java.io.BufferedWriter;
4+
import java.io.FileWriter;
5+
import java.io.IOException;
36
import java.util.Set;
47

58
import javax.annotation.processing.AbstractProcessor;
@@ -91,6 +94,29 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
9194
// classString+="}";
9295
//System.out.println(classString);
9396

97+
FileWriter fileWriter = null;
98+
BufferedWriter bufferedWriter = null;
99+
100+
// try {
101+
// fileWriter = new FileWriter(path);
102+
// bufferedWriter = new BufferedWriter(fileWriter);
103+
//
104+
// for (String string : arrayList) {
105+
// bufferedWriter.write(string);
106+
//
107+
// bufferedWriter.newLine();
108+
// }
109+
//
110+
// } catch (IOException e1) {
111+
// e1.printStackTrace();
112+
// } finally {
113+
// try {
114+
// bufferedWriter.close();
115+
// } catch (IOException e) {
116+
// e.printStackTrace();
117+
// }
118+
// }
119+
94120
}
95121

96122
System.out.println("-------------------注解处理器第"+(r++)+"次循环处理结束...\n");

0 commit comments

Comments
 (0)