diff options
| author | abranson <andrew.branson@cern.ch> | 2011-08-04 16:08:49 +0200 |
|---|---|---|
| committer | abranson <andrew.branson@cern.ch> | 2011-08-04 16:08:49 +0200 |
| commit | 379ed8a0e133bee650e0acb24f6b743f657a50d0 (patch) | |
| tree | bdcac37cabe3f2f3d40715519b830469dc9e63ad /source/com/c2kernel/gui/tabs/outcome/form/OutcomePanel.java | |
| parent | 0ec8481c10cd8277d84c7c1a785483a0a739e5a0 (diff) | |
Last bit of cleanup honest
New castor and dependent commons libs
Diffstat (limited to 'source/com/c2kernel/gui/tabs/outcome/form/OutcomePanel.java')
| -rw-r--r-- | source/com/c2kernel/gui/tabs/outcome/form/OutcomePanel.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/com/c2kernel/gui/tabs/outcome/form/OutcomePanel.java b/source/com/c2kernel/gui/tabs/outcome/form/OutcomePanel.java index 6d20183..63c1d3d 100644 --- a/source/com/c2kernel/gui/tabs/outcome/form/OutcomePanel.java +++ b/source/com/c2kernel/gui/tabs/outcome/form/OutcomePanel.java @@ -6,7 +6,6 @@ import java.io.IOException; import java.io.StringReader;
import java.io.StringWriter;
import java.net.URL;
-import java.util.Enumeration;
import javax.swing.Box;
import javax.swing.JComponent;
@@ -275,9 +274,9 @@ public class OutcomePanel extends JPanel implements OutcomeHandler ElementDecl rootElementDecl = null;
docElement = (outcomeDOM == null) ? null : outcomeDOM.getDocumentElement();
- for (Enumeration<?> globalElements = schemaSOM.getElementDecls(); globalElements.hasMoreElements();)
+ for (ElementDecl elementDecl: schemaSOM.getElementDecls())
{
- rootElementDecl = (ElementDecl) globalElements.nextElement();
+ rootElementDecl = elementDecl;
// REVISIT: We don't detect which is the most likely root element if there is more than one root decl
// xmlspy looks for an element not referenced elsewhere. simple but hard
// if we already have a document then use its root element to find the right decl
|
