1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/model/Fault.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/model/Fault.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -26,7 +26,6 @@ 1.11 package com.sun.tools.internal.ws.processor.model; 1.12 1.13 import com.sun.codemodel.internal.JClass; 1.14 -import com.sun.tools.internal.ws.processor.generator.GeneratorUtil; 1.15 import com.sun.tools.internal.ws.processor.model.java.JavaException; 1.16 import com.sun.tools.internal.ws.wsdl.framework.Entity; 1.17 1.18 @@ -34,7 +33,6 @@ 1.19 import java.util.HashSet; 1.20 import java.util.Iterator; 1.21 import java.util.Set; 1.22 -import java.util.TreeSet; 1.23 1.24 /** 1.25 * 1.26 @@ -49,7 +47,6 @@ 1.27 public Fault(String name, Entity entity) { 1.28 super(entity); 1.29 this.name = name; 1.30 - parentFault = null; 1.31 } 1.32 1.33 public String getName() { 1.34 @@ -80,12 +77,8 @@ 1.35 visitor.visit(this); 1.36 } 1.37 1.38 - public Fault getParentFault() { 1.39 - return parentFault; 1.40 - } 1.41 - 1.42 public Iterator getSubfaults() { 1.43 - if (subfaults.size() == 0) { 1.44 + if (subfaults.isEmpty()) { 1.45 return null; 1.46 } 1.47 return subfaults.iterator(); 1.48 @@ -103,7 +96,7 @@ 1.49 1.50 public Iterator getAllFaults() { 1.51 Set allFaults = getAllFaultsSet(); 1.52 - if (allFaults.size() == 0) { 1.53 + if (allFaults.isEmpty()) { 1.54 return null; 1.55 } 1.56 return allFaults.iterator(); 1.57 @@ -160,7 +153,6 @@ 1.58 private String name; 1.59 private Block block; 1.60 private JavaException javaException; 1.61 - private Fault parentFault; 1.62 private Set subfaults = new HashSet(); 1.63 private QName elementName = null; 1.64 private String javaMemberName = null;