This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UnusedBeans { | |
private Map<String, Node> defs = new HashMap<String, Node>(); | |
private Set<String> refs = new HashSet<String>(); | |
public void read() throws Exception { | |
String content = new String(Files.readAllBytes(Paths.get("xml.txt"))); | |
for (String line : content.split("\n")) { | |
parse("../" + line.trim()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.StringWriter; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import java.util.Map; |