Skip to content

Commit

Permalink
indent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Eno committed Oct 10, 2012
1 parent 6ac8591 commit ffa20e5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Start.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,24 +152,24 @@ public static void main (String[] args)
}

try {
Element root = doc.createElement ("api");
doc.appendChild (root);
for (JavaPackage pkg : jar.getPackages ())
pkg.appendToDocument (doc, root);
for (String ann : annotations) {
String pkg = ann.substring (0, ann.lastIndexOf ('.'));
NodeList nl = root.getChildNodes ();
for (int ind = 0; ind < nl.getLength (); ind++) {
Node n = nl.item (ind);
if (!(n instanceof Element))
continue;
Element el = (Element) n;
if (el.getAttribute ("name").equals (pkg)) {
String local = ann.substring (pkg.length () + 1);
el.appendChild (createAnnotationMock (doc, local.replace ("$", ".")));
Element root = doc.createElement ("api");
doc.appendChild (root);
for (JavaPackage pkg : jar.getPackages ())
pkg.appendToDocument (doc, root);
for (String ann : annotations) {
String pkg = ann.substring (0, ann.lastIndexOf ('.'));
NodeList nl = root.getChildNodes ();
for (int ind = 0; ind < nl.getLength (); ind++) {
Node n = nl.item (ind);
if (!(n instanceof Element))
continue;
Element el = (Element) n;
if (el.getAttribute ("name").equals (pkg)) {
String local = ann.substring (pkg.length () + 1);
el.appendChild (createAnnotationMock (doc, local.replace ("$", ".")));
}
}
}
}
} catch (Exception e) {
System.err.println (e);
System.err.println ("error J2X0002: API analyzer failed with java exception. See verbose output for details.");
Expand Down

0 comments on commit ffa20e5

Please sign in to comment.