You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2008/11/24 15:28:50 UTC
svn commit: r720203 - in /harmony/enhanced/classlib/trunk/modules:
auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/
awt/src/main/java/common/java/awt/ sql/src/main/java/javax/sql/rowset/serial/
sql/src/main/java/org/apache/harmo...
Author: odeakin
Date: Mon Nov 24 06:28:47 2008
New Revision: 720203
URL: http://svn.apache.org/viewvc?rev=720203&view=rev
Log:
Add throws NotImplementedException to method signatures where required and remove unused imports.
Modified:
harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/KerberosToolboxImpl.java
harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java
harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java
harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java
harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java
harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/JoinRowSetImpl.java
harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/SyncResolverImpl.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/ImageIcon.java
Modified: harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/KerberosToolboxImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/KerberosToolboxImpl.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/KerberosToolboxImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/KerberosToolboxImpl.java Mon Nov 24 06:28:47 2008
@@ -33,22 +33,22 @@
this.kdc = kdc;
}
- public KerberosTicket getTGS(String serverPrincipalName, KerberosTicket TGT) {
+ public KerberosTicket getTGS(String serverPrincipalName, KerberosTicket TGT) throws NotImplementedException {
// TODO Auto-generated method stub
throw new NotImplementedException();
}
- public KerberosTicket getTGT(String clientPrincipalName, char[] password) {
+ public KerberosTicket getTGT(String clientPrincipalName, char[] password) throws NotImplementedException {
// TODO Auto-generated method stub
throw new NotImplementedException();
}
- public KerberosApplicationRequest decodeApplicationRequest(byte[] token) {
+ public KerberosApplicationRequest decodeApplicationRequest(byte[] token) throws NotImplementedException {
// TODO Auto-generated method stub
throw new NotImplementedException();
}
- public byte[] encodeApplicationRequest(KerberosApplicationRequest kerberosApplicationRequest) {
+ public byte[] encodeApplicationRequest(KerberosApplicationRequest kerberosApplicationRequest) throws NotImplementedException {
// TODO Auto-generated method stub
throw new NotImplementedException();
}
Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java Mon Nov 24 06:28:47 2008
@@ -86,6 +86,7 @@
import org.apache.harmony.awt.text.TextFieldKit;
import org.apache.harmony.awt.text.TextKit;
import org.apache.harmony.awt.wtk.NativeWindow;
+import org.apache.harmony.luni.util.NotImplementedException;
public abstract class Component implements ImageObserver, MenuContainer, Serializable {
private static final long serialVersionUID = -7644114512714619750L;
@@ -568,32 +569,22 @@
protected boolean validatedContents;
- protected BltBufferStrategy(int numBuffers, BufferCapabilities caps) throws org.apache.harmony.luni.util.NotImplementedException {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ protected BltBufferStrategy(int numBuffers, BufferCapabilities caps) throws NotImplementedException {
+ throw new NotImplementedException();
}
@Override
- public boolean contentsLost() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
- return false;
+ public boolean contentsLost() throws NotImplementedException {
+ throw new NotImplementedException();
}
@Override
- public boolean contentsRestored() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
- return false;
+ public boolean contentsRestored() throws NotImplementedException {
+ throw new NotImplementedException();
}
- protected void createBackBuffers(int numBuffers) {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ protected void createBackBuffers(int numBuffers) throws NotImplementedException {
+ throw new NotImplementedException();
}
@Override
@@ -602,24 +593,17 @@
}
@Override
- public Graphics getDrawGraphics() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
- return null;
+ public Graphics getDrawGraphics() throws NotImplementedException {
+ throw new NotImplementedException();
}
- protected void revalidate() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ protected void revalidate() throws NotImplementedException {
+ throw new NotImplementedException();
}
@Override
- public void show() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ public void show() throws NotImplementedException {
+ throw new NotImplementedException();
}
}
@@ -646,23 +630,17 @@
}
@Override
- public boolean contentsLost() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
- return false;
+ public boolean contentsLost() throws NotImplementedException {
+ throw new NotImplementedException();
}
@Override
- public boolean contentsRestored() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
- return false;
+ public boolean contentsRestored() throws NotImplementedException {
+ throw new NotImplementedException();
}
protected void createBuffers(int numBuffers, BufferCapabilities caps)
- throws AWTException {
+ throws AWTException,NotImplementedException {
if (numBuffers < 2) {
// awt.14C=Number of buffers must be greater than one
throw new IllegalArgumentException(Messages.getString("awt.14C")); //$NON-NLS-1$
@@ -676,28 +654,19 @@
throw new IllegalStateException(Messages.getString("awt.14E")); //$NON-NLS-1$
}
// TODO: throw new AWTException("Capabilities are not supported");
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ throw new NotImplementedException();
}
- protected void destroyBuffers() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ protected void destroyBuffers() throws NotImplementedException {
+ throw new NotImplementedException();
}
- protected void flip(BufferCapabilities.FlipContents flipAction) {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ protected void flip(BufferCapabilities.FlipContents flipAction) throws NotImplementedException {
+ throw new NotImplementedException();
}
- protected Image getBackBuffer() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
- return null;
+ protected Image getBackBuffer() throws NotImplementedException {
+ throw new NotImplementedException();
}
@Override
@@ -706,24 +675,17 @@
}
@Override
- public Graphics getDrawGraphics() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
- return null;
+ public Graphics getDrawGraphics() throws NotImplementedException {
+ throw new NotImplementedException();
}
- protected void revalidate() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ protected void revalidate() throws NotImplementedException {
+ throw new NotImplementedException();
}
@Override
- public void show() {
- if (true) {
- throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
- }
+ public void show() throws NotImplementedException {
+ throw new NotImplementedException();
}
}
Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java Mon Nov 24 06:28:47 2008
@@ -44,7 +44,6 @@
import org.apache.harmony.awt.gl.font.FontPeerImpl;
import org.apache.harmony.awt.gl.font.fontlib.FLFontManager;
import org.apache.harmony.awt.internal.nls.Messages;
-import org.apache.harmony.luni.util.NotImplementedException;
import org.apache.harmony.misc.HashCode;
Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java Mon Nov 24 06:28:47 2008
@@ -832,10 +832,7 @@
} finally {
unlockAWT();
}
- if (true) {
- throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
- }
- return null;
+ throw new org.apache.harmony.luni.util.NotImplementedException();
}
public Insets getScreenInsets(GraphicsConfiguration gc) throws HeadlessException {
Modified: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java Mon Nov 24 06:28:47 2008
@@ -34,7 +34,6 @@
import java.sql.Timestamp;
import java.util.Map;
-import org.apache.harmony.luni.util.NotImplementedException;
import org.apache.harmony.sql.internal.nls.Messages;
/**
Modified: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java Mon Nov 24 06:28:47 2008
@@ -39,7 +39,6 @@
import java.util.Map;
import java.util.Vector;
-import org.apache.harmony.luni.util.NotImplementedException;
import org.apache.harmony.sql.internal.nls.Messages;
public class SQLOutputImpl implements SQLOutput {
Modified: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/JoinRowSetImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/JoinRowSetImpl.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/JoinRowSetImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/JoinRowSetImpl.java Mon Nov 24 06:28:47 2008
@@ -37,7 +37,6 @@
import javax.sql.rowset.spi.SyncFactoryException;
import javax.sql.rowset.spi.SyncProviderException;
-import org.apache.harmony.luni.util.NotImplementedException;
import org.apache.harmony.sql.internal.nls.Messages;
public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
Modified: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/SyncResolverImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/SyncResolverImpl.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/SyncResolverImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/SyncResolverImpl.java Mon Nov 24 06:28:47 2008
@@ -137,7 +137,7 @@
return currentIndex >= 0 && currentIndex < conflictRows.size();
}
- public void setResolvedValue(int index, Object obj) throws SQLException {
+ public void setResolvedValue(int index, Object obj) throws SQLException,NotImplementedException {
// TODO not yet implemented
throw new NotImplementedException();
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/ImageIcon.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/ImageIcon.java?rev=720203&r1=720202&r2=720203&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/ImageIcon.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/ImageIcon.java Mon Nov 24 06:28:47 2008
@@ -33,7 +33,6 @@
import javax.accessibility.AccessibleIcon;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleStateSet;
-import org.apache.harmony.luni.util.NotImplementedException;
/**
* <p>