1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/modeler/annotation/TypeModeler.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/modeler/annotation/TypeModeler.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, 2013, 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 @@ -63,8 +63,9 @@ 1.11 retClass = getDeclaringClassMethod(superClass, methodName, args); 1.12 } 1.13 if (retClass == null) { 1.14 - for (TypeMirror interfaceType : theClass.getInterfaces()) 1.15 + for (TypeMirror interfaceType : theClass.getInterfaces()) { 1.16 retClass = getDeclaringClassMethod(interfaceType, methodName, args); 1.17 + } 1.18 } 1.19 if (retClass == null) { 1.20 Collection<? extends ExecutableElement> methods = ElementFilter.methodsIn(theClass.getEnclosedElements()); 1.21 @@ -105,7 +106,7 @@ 1.22 Collection<? extends TypeMirror> argTypes = ((DeclaredType) type).getTypeArguments(); 1.23 if (argTypes.size() == 1) { 1.24 return argTypes.iterator().next(); 1.25 - } else if (argTypes.size() == 0) { 1.26 + } else if (argTypes.isEmpty()) { 1.27 VariableElement member = getValueMember(typeElement); 1.28 if (member != null) { 1.29 return member.asType();