From ffa20e569822bc3758c273101a0e77da47fba8f7 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Wed, 10 Oct 2012 17:13:35 +0900 Subject: [PATCH] indent. --- Start.java | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Start.java b/Start.java index 4764d17..e0ef6ee 100644 --- a/Start.java +++ b/Start.java @@ -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.");