--- old/src/java.base/share/classes/java/lang/Shutdown.java 2015-08-18 15:42:19.816799863 +0400 +++ new/src/java.base/share/classes/java/lang/Shutdown.java 2015-08-18 15:42:19.416799881 +0400 @@ -86,10 +86,10 @@ * to be registered even if the shutdown is in progress. * @params hook the hook to be registered * - * @throw IllegalStateException - * if registerShutdownInProgress is false and shutdown is in progress; or - * if registerShutdownInProgress is true and the shutdown process - * already passes the given slot + * @throws IllegalStateException + * if registerShutdownInProgress is false and shutdown is in progress; or + * if registerShutdownInProgress is true and the shutdown process + * already passes the given slot */ static void add(int slot, boolean registerShutdownInProgress, Runnable hook) { synchronized (lock) { --- old/src/java.base/share/classes/java/net/ContentHandler.java 2015-08-18 15:42:20.492799833 +0400 +++ new/src/java.base/share/classes/java/net/ContentHandler.java 2015-08-18 15:42:20.276799843 +0400 @@ -47,7 +47,7 @@ * If no content handler could be {@linkplain URLConnection#getContent() found}, * URLConnection will look for a content handler in a user-definable set of places. * Users can define a vertical-bar delimited set of class prefixes - * to search through by defining the {@value java.net.URLConnection#contentPathProp} + * to search through by defining the {@link java.net.URLConnection#contentPathProp} * property. The class name must be of the form: *
* {package-prefix}.{major}.{minor} --- old/src/java.base/share/classes/java/nio/Buffer.java 2015-08-18 15:42:21.216799800 +0400 +++ new/src/java.base/share/classes/java/nio/Buffer.java 2015-08-18 15:42:20.996799810 +0400 @@ -215,8 +215,8 @@ * {@code put(src)} when the parameter is the {@code Buffer} on which the * method is being invoked. * - * @returns IllegalArgumentException - * With a message indicating equal source and target buffers + * @return IllegalArgumentException + * With a message indicating equal source and target buffers */ static IllegalArgumentException createSameBufferException() { return new IllegalArgumentException("The source buffer is this buffer"); --- old/src/java.base/share/classes/sun/net/www/protocol/http/NegotiateAuthentication.java 2015-08-18 15:42:21.928799768 +0400 +++ new/src/java.base/share/classes/sun/net/www/protocol/http/NegotiateAuthentication.java 2015-08-18 15:42:21.712799778 +0400 @@ -191,7 +191,7 @@ /** * return the first token. - * @returns the token + * @return the token * @throws IOException if Negotiator.getNegotiator() or * Negotiator.firstToken() failed. */ @@ -219,7 +219,7 @@ /** * return more tokens * @param token the token to be fed into negotiator.nextToken() - * @returns the token + * @return the token * @throws IOException if negotiator.nextToken() throws Exception. * May happen if the input token is invalid. */ --- old/src/java.base/share/classes/sun/reflect/annotation/AnnotationType.java 2015-08-18 15:42:22.500799743 +0400 +++ new/src/java.base/share/classes/sun/reflect/annotation/AnnotationType.java 2015-08-18 15:42:22.284799752 +0400 @@ -98,8 +98,8 @@ * Sole constructor. * * @param annotationClass the class object for the annotation type - * @throw IllegalArgumentException if the specified class object for - * does not represent a valid annotation type + * @throws IllegalArgumentException if the specified class object for + * does not represent a valid annotation type */ private AnnotationType(final Class annotationClass) { if (!annotationClass.isAnnotation()) --- old/src/java.base/share/classes/sun/util/CoreResourceBundleControl-XLocales.java.template 2015-08-18 15:42:23.080799717 +0400 +++ new/src/java.base/share/classes/sun/util/CoreResourceBundleControl-XLocales.java.template 2015-08-18 15:42:22.864799726 +0400 @@ -92,7 +92,7 @@ } /** - * @returns a list of candidate locales to search from. + * @return a list of candidate locales to search from. * @exception NullPointerException if baseName or locale is null. */ @Override --- old/src/java.base/share/classes/sun/util/resources/LocaleData.java 2015-08-18 15:42:23.676799690 +0400 +++ new/src/java.base/share/classes/sun/util/resources/LocaleData.java 2015-08-18 15:42:23.456799700 +0400 @@ -201,7 +201,7 @@ * * @param baseName the resource bundle base name. * locale the requested locale for the resource bundle. - * @returns a list of candidate locales to search from. + * @return a list of candidate locales to search from. * @exception NullPointerException if baseName or locale is null. */ @Override --- old/src/java.management/share/classes/javax/management/InstanceOfQueryExp.java 2015-08-18 15:42:24.288799662 +0400 +++ new/src/java.management/share/classes/javax/management/InstanceOfQueryExp.java 2015-08-18 15:42:24.060799673 +0400 @@ -65,7 +65,7 @@ /** * Returns the class name. - * @returns The {@link StringValueExp} returning the name of + * @return The {@link StringValueExp} returning the name of * the class of which selected MBeans should be instances. */ public StringValueExp getClassNameValue() { --- old/src/java.naming/share/classes/com/sun/jndi/ldap/LdapCtx.java 2015-08-18 15:42:24.888799636 +0400 +++ new/src/java.naming/share/classes/com/sun/jndi/ldap/LdapCtx.java 2015-08-18 15:42:24.656799646 +0400 @@ -909,7 +909,7 @@ * @param dn The non-null DN of the entry to add * @param attrs The non-null attributes of entry to add * @param directUpdate Whether attrs can be updated directly - * @returns Non-null attributes with attributes from the RDN added + * @return Non-null attributes with attributes from the RDN added */ private static Attributes addRdnAttributes(String dn, Attributes attrs, boolean directUpdate) throws NamingException { --- old/src/java.naming/share/classes/com/sun/jndi/ldap/ServiceLocator.java 2015-08-18 15:42:25.528799607 +0400 +++ new/src/java.naming/share/classes/com/sun/jndi/ldap/ServiceLocator.java 2015-08-18 15:42:25.304799617 +0400 @@ -62,7 +62,7 @@ * * @param dn A string distinguished name (RFC 2253). * @return A domain name or null if none can be derived. - * @throw InvalidNameException If the distinguished name is invalid. + * @throws InvalidNameException If the distinguished name is invalid. */ static String mapDnToDomainName(String dn) throws InvalidNameException { if (dn == null) { --- old/src/java.naming/share/classes/com/sun/jndi/ldap/ext/StartTlsResponseImpl.java 2015-08-18 15:42:26.128799580 +0400 +++ new/src/java.naming/share/classes/com/sun/jndi/ldap/ext/StartTlsResponseImpl.java 2015-08-18 15:42:25.904799590 +0400 @@ -297,7 +297,7 @@ * Returns the default SSL socket factory. * * @return The default SSL socket factory. - * @throw IOException If TLS is not supported. + * @throws IOException If TLS is not supported. */ private SSLSocketFactory getDefaultFactory() throws IOException { @@ -314,7 +314,7 @@ * * @param factory The SSL socket factory to use. * @return The SSL socket. - * @throw IOException If an exception occurred while performing the + * @throws IOException If an exception occurred while performing the * TLS handshake. */ private SSLSocket startHandshake(SSLSocketFactory factory) --- old/src/java.prefs/share/classes/java/util/prefs/Base64.java 2015-08-18 15:42:26.720799553 +0400 +++ new/src/java.prefs/share/classes/java/util/prefs/Base64.java 2015-08-18 15:42:26.488799564 +0400 @@ -124,8 +124,8 @@ * Translates the specified Base64 string (as per Preferences.get(byte[])) * into a byte array. * - * @throw IllegalArgumentException if {@code s} is not a valid Base64 - * string. + * @throws IllegalArgumentException if {@code s} is not a valid Base64 + * string. */ static byte[] base64ToByteArray(String s) { return base64ToByteArray(s, false); @@ -135,9 +135,9 @@ * Translates the specified "alternate representation" Base64 string * into a byte array. * - * @throw IllegalArgumentException or ArrayOutOfBoundsException - * if {@code s} is not a valid alternate representation - * Base64 string. + * @throws IllegalArgumentException or ArrayOutOfBoundsException + * if {@code s} is not a valid alternate representation + * Base64 string. */ static byte[] altBase64ToByteArray(String s) { return base64ToByteArray(s, true); @@ -194,8 +194,8 @@ * Translates the specified character, which is assumed to be in the * "Base 64 Alphabet" into its equivalent 6-bit positive integer. * - * @throw IllegalArgumentException or ArrayOutOfBoundsException if - * c is not in the Base64 Alphabet. + * @throws IllegalArgumentException or ArrayOutOfBoundsException if + * c is not in the Base64 Alphabet. */ private static int base64toInt(char c, byte[] alphaToInt) { int result = alphaToInt[c];