< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/ws/spi/db/BindingHelper.java

Print this page

        

*** 67,77 **** * <p> * In JAXB, a collision with a Java reserved word (such as "return") never happens. * Accordingly, this method may return an identifier that collides with reserved words. * * <p> ! * Use <tt>JJavaName.isJavaIdentifier(String)</tt> to check for such collision. * * @return * Typically, this method returns "nameLikeThis". */ public static @NotNull String mangleNameToVariableName(@NotNull String localName) { --- 67,77 ---- * <p> * In JAXB, a collision with a Java reserved word (such as "return") never happens. * Accordingly, this method may return an identifier that collides with reserved words. * * <p> ! * Use {@code JJavaName.isJavaIdentifier(String)} to check for such collision. * * @return * Typically, this method returns "nameLikeThis". */ public static @NotNull String mangleNameToVariableName(@NotNull String localName) {
*** 109,129 **** /** * Gets the parameterization of the given base type. * * <p> * For example, given the following ! * <pre><xmp> * interface Foo<T> extends List<List<T>> {} * interface Bar extends Foo<String> {} ! * </xmp></pre> * This method works like this: ! * <pre><xmp> * getBaseClass( Bar, List ) = List<List<String> * getBaseClass( Bar, Foo ) = Foo<String> * getBaseClass( Foo<? extends Number>, Collection ) = Collection<List<? extends Number>> * getBaseClass( ArrayList<? extends BigInteger>, List ) = List<? extends BigInteger> ! * </xmp></pre> * * @param type * The type that derives from {@code baseType} * @param baseType * The class whose parameterization we are interested in. --- 109,129 ---- /** * Gets the parameterization of the given base type. * * <p> * For example, given the following ! * <pre>{@code * interface Foo<T> extends List<List<T>> {} * interface Bar extends Foo<String> {} ! * }</pre> * This method works like this: ! * <pre>{@code * getBaseClass( Bar, List ) = List<List<String> * getBaseClass( Bar, Foo ) = Foo<String> * getBaseClass( Foo<? extends Number>, Collection ) = Collection<List<? extends Number>> * getBaseClass( ArrayList<? extends BigInteger>, List ) = List<? extends BigInteger> ! * }</pre> * * @param type * The type that derives from {@code baseType} * @param baseType * The class whose parameterization we are interested in.
< prev index next >