You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2009/10/10 23:02:02 UTC
svn commit: r823936 -
/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java
Author: ndbeyer
Date: Sat Oct 10 21:02:02 2009
New Revision: 823936
URL: http://svn.apache.org/viewvc?rev=823936&view=rev
Log:
simplify not implemented impl, correct spelling in a few places
Modified:
harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java
Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java?rev=823936&r1=823935&r2=823936&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java Sat Oct 10 21:02:02 2009
@@ -31,6 +31,7 @@
import org.apache.harmony.awt.gl.MultiRectArea;
import org.apache.harmony.awt.state.MenuItemState;
import org.apache.harmony.awt.state.MenuState;
+import org.apache.harmony.luni.util.NotImplementedException;
public abstract class MenuComponent implements Serializable {
private static final long serialVersionUID = -4536902356223894379L;
@@ -434,27 +435,15 @@
}
}
- /**
- * @deprecated
- */
@Deprecated
- public MenuComponentPeer getPeer() throws org.apache.harmony.luni.util.NotImplementedException {
- toolkit.lockAWT();
- try {
- } finally {
- toolkit.unlockAWT();
- }
- if (true) {
- throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
- }
- return null;
+ public MenuComponentPeer getPeer() throws NotImplementedException {
+ throw new NotImplementedException();
}
protected final Object getTreeLock() {
return toolkit.awtTreeLock;
}
- @SuppressWarnings("deprecation")
@Deprecated
public boolean postEvent(Event e) {
toolkit.lockAWT();
@@ -633,7 +622,7 @@
}
/**
- * @return The sub-menu of currently selecetd item,
+ * @return The sub-menu of currently selected item,
* or null if such a sub-menu is not available
*/
Menu getSelectedSubmenu() {
@@ -720,7 +709,7 @@
}
/**
- * @return - the menu bar which is the root of crrent menu's hierarchy;
+ * @return - the menu bar which is the root of current menu's hierarchy;
* or null if the hierarchy root is not a menu bar
*/
MenuBar getMenuBar() {
@@ -745,7 +734,7 @@
/**
* Determine the clip region when menu selection is changed
* from index1 to index2
- * @param index1 - old selected intem
+ * @param index1 - old selected item
* @param index2 - new selected item
* @return - the region to repaint
*/