--- old/src/share/classes/java/awt/MenuBar.java 2014-06-03 19:46:59.000000000 +0400 +++ new/src/share/classes/java/awt/MenuBar.java 2014-06-03 19:46:58.000000000 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -271,7 +271,8 @@ /** * Gets the number of menus on the menu bar. - * @return the number of menus on the menu bar. + * + * @return the number of menus on the menu bar * @since JDK1.1 */ public int getMenuCount() { @@ -279,6 +280,9 @@ } /** + * Gets the number of menus on the menu bar. + * + * @return the number of menus on the menu bar. * @deprecated As of JDK version 1.1, * replaced by getMenuCount(). */ @@ -338,10 +342,11 @@ * or null if none of the menu items being managed * by this menu bar is associated with the specified menu * shortcut. - * @param s the specified menu shortcut. - * @see java.awt.MenuItem - * @see java.awt.MenuShortcut - * @since JDK1.1 + * @param s the specified menu shortcut. + * @return the menu item for the specified shortcut. + * @see java.awt.MenuItem + * @see java.awt.MenuShortcut + * @since JDK1.1 */ public MenuItem getShortcutMenuItem(MenuShortcut s) { int nmenus = getMenuCount();