Skip to content

Commit

Permalink
change the output display
Browse files Browse the repository at this point in the history
Signed-off-by: lotay <[email protected]>
  • Loading branch information
lotay committed Sep 8, 2015
1 parent 8ba082d commit b7053ef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void execute() {
Map<String, List<GitSourceFile>> gitChangeSourceFiles = ChangeSourceFileLoader
.loadSourceFiles();
int size = gitChangeSourceFiles.size();
int i = 0,base = 200;
int i = 0,base = 100;
for (String fileName : gitChangeSourceFiles.keySet()) {
System.out.println((i++) + "/" + size + ":" + fileName);
if (i<base) {
Expand Down Expand Up @@ -156,7 +156,7 @@ private void executeFile(List<GitSourceFile> sourceFiles) {
System.out.println("\n\n");
}

System.out.println();
System.exit(0);
}

} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public String toTypeString() {

@Override
public String toSimpleTypeString() {
return super.toSimpleTypeString() + "+/-";
return preSimpleNameType+"->"+super.toSimpleTypeString() + "+/-";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ public String toWholeString(CodeTreeNode node, int depth) {
for (int i = 0; i < depth; i++) {
toString += " ";
}
toString += node.toNormalString() + "\n";
for (CodeTreeNode treeNodeTest : node.children) {
toString += this.toWholeString(treeNodeTest, depth + 1);
toString += node.toSimpleTypeString() + "\n";
for (CodeTreeNode childNode : node.children) {
toString += this.toWholeString(childNode, depth + 1);
}
return toString;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public String toString() {
}
resultString.append("patternInstance:\n");
for (TreeNode treeNode : patternInstances.keySet()) {
resultString.append(treeNode);
resultString.append(treeNode+"\n");
for (TreePatternInstance instanceNode : patternInstances.get(treeNode)) {
resultString.append("\t"+instanceNode);
resultString.append("\t"+instanceNode+"\n");
}
}
return resultString.toString()+ "\n\n";
Expand Down

0 comments on commit b7053ef

Please sign in to comment.