jdk/src/share/classes/sun/reflect/generics/reflectiveObjects/WildcardTypeImpl.java
changeset 17456 0f2c187cd188
parent 5506 202f599c92aa
equal deleted inserted replaced
17455:2b7c7aa53a38 17456:0f2c187cd188
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   201         for(Type bound: bounds) {
   201         for(Type bound: bounds) {
   202             if (!first)
   202             if (!first)
   203                 sb.append(" & ");
   203                 sb.append(" & ");
   204 
   204 
   205             first = false;
   205             first = false;
   206             if (bound instanceof Class)
   206             sb.append(bound.getTypeName());
   207                 sb.append(((Class)bound).getName() );
       
   208             else
       
   209                 sb.append(bound.toString());
       
   210         }
   207         }
   211         return sb.toString();
   208         return sb.toString();
   212     }
   209     }
   213 
   210 
   214     @Override
   211     @Override