dev
ehlxr 2017-11-17 17:12:57 +08:00
parent 99081e9fb4
commit ec9f154d68
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ import java.io.*;
/**
* Created by lixiangrong on 2017/11/17.
* <p>
* Java CopyRight
*/
public class ContentReplace {
private static int total = 0;
@ -39,7 +41,7 @@ public class ContentReplace {
byte[] buf = new byte[64];
int hasRead;
while ((hasRead = raf.read(buf)) > 0) {
if (new String(buf).startsWith("/*")) {
if (new String(buf).contains("Copyright")) {
++unDeal;
System.out.println("未处理文件:" + file.getPath());
return;