--- old/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/model/Fault.java 2013-04-04 15:26:08.404611852 +0200 +++ new/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/model/Fault.java 2013-04-04 15:26:08.348611851 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,7 +26,6 @@ package com.sun.tools.internal.ws.processor.model; import com.sun.codemodel.internal.JClass; -import com.sun.tools.internal.ws.processor.generator.GeneratorUtil; import com.sun.tools.internal.ws.processor.model.java.JavaException; import com.sun.tools.internal.ws.wsdl.framework.Entity; @@ -34,7 +33,6 @@ import java.util.HashSet; import java.util.Iterator; import java.util.Set; -import java.util.TreeSet; /** * @@ -49,7 +47,6 @@ public Fault(String name, Entity entity) { super(entity); this.name = name; - parentFault = null; } public String getName() { @@ -80,12 +77,8 @@ visitor.visit(this); } - public Fault getParentFault() { - return parentFault; - } - public Iterator getSubfaults() { - if (subfaults.size() == 0) { + if (subfaults.isEmpty()) { return null; } return subfaults.iterator(); @@ -103,7 +96,7 @@ public Iterator getAllFaults() { Set allFaults = getAllFaultsSet(); - if (allFaults.size() == 0) { + if (allFaults.isEmpty()) { return null; } return allFaults.iterator(); @@ -160,7 +153,6 @@ private String name; private Block block; private JavaException javaException; - private Fault parentFault; private Set subfaults = new HashSet(); private QName elementName = null; private String javaMemberName = null;