Index: src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java
===================================================================
--- src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java (revision 488283)
+++ src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java (working copy)
@@ -161,7 +161,7 @@
/**
- * Auxilary empty class.
+ * Auxiliary empty class.
*/
static class TestClass implements Serializable {
}
Index: src/main/java/java/rmi/activation/ActivationID.java
===================================================================
--- src/main/java/java/rmi/activation/ActivationID.java (revision 488283)
+++ src/main/java/java/rmi/activation/ActivationID.java (working copy)
@@ -68,10 +68,10 @@
rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.03")); //$NON-NLS-1$
return deserialized_stub;
} catch (IOException ioe) {
- // rmi.0E=An IOException occured while deserializing the object from its internal representation.
+ // rmi.0E=An IOException occurred while deserializing the object from its internal representation.
throw new RemoteException(Messages.getString("rmi.0E")); //$NON-NLS-1$
} catch (ClassNotFoundException cnfe) {
- // rmi.0F=A ClassNotFoundException occured while deserializing the object from its internal representation.
+ // rmi.0F=A ClassNotFoundException occurred while deserializing the object from its internal representation.
throw new RemoteException(Messages.getString("rmi.0F")); //$NON-NLS-1$
}
}
Index: src/main/java/java/rmi/server/RMIClassLoader.java
===================================================================
--- src/main/java/java/rmi/server/RMIClassLoader.java (revision 488283)
+++ src/main/java/java/rmi/server/RMIClassLoader.java (working copy)
@@ -201,7 +201,7 @@
*
* @return provider obtained from default resource
*
- * @throws IOException if any I/O error occured while trying to read
+ * @throws IOException if any I/O error occurred while trying to read
* provider name from default resource
*/
private static String getSpiFromResource() throws IOException {
Index: src/main/java/java/rmi/server/UnicastRemoteObject.java
===================================================================
--- src/main/java/java/rmi/server/UnicastRemoteObject.java (revision 488283)
+++ src/main/java/java/rmi/server/UnicastRemoteObject.java (working copy)
@@ -128,9 +128,9 @@
* method because it returns RemoteStub class (but Proxy class could
* not be casted to it)
*
- * @return stub for exportec object
+ * @return stub for exported object
*
- * @throws RemoteException if any error occured while exporting object
+ * @throws RemoteException if any error occurred while exporting object
*/
private static Remote exportObject(Remote obj,
int port,
Index: src/main/java/java/rmi/server/RemoteStub.java
===================================================================
--- src/main/java/java/rmi/server/RemoteStub.java (revision 488283)
+++ src/main/java/java/rmi/server/RemoteStub.java (working copy)
@@ -49,7 +49,7 @@
/**
* @com.intel.drl.spec_ref
- * @deprecated This method is depreacted since Java v1.2. The constructor
+ * @deprecated This method is deprecated since Java v1.2. The constructor
* {@link #RemoteStub(java.rmi.server.RemoteRef)} should be used instead.
*/
@Deprecated
Index: src/main/java/org/apache/harmony/rmi/MarshalledObjectInputStream.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/MarshalledObjectInputStream.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/MarshalledObjectInputStream.java (working copy)
@@ -48,7 +48,7 @@
* @param objBytes serialized objects array
* @param locBytes annotations for serialized objects
*
- * @throws IOException if an I/O error occured during streams initialization
+ * @throws IOException if an I/O error occurred during streams initialization
*/
public MarshalledObjectInputStream(byte[] objBytes, byte[] locBytes)
throws IOException {
Index: src/main/java/org/apache/harmony/rmi/MarshalledObjectOutputStream.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/MarshalledObjectOutputStream.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/MarshalledObjectOutputStream.java (working copy)
@@ -52,7 +52,7 @@
*
* @param out underlying OutputStream
*
- * @throws IOException if an I/O error occured during stream initialization
+ * @throws IOException if an I/O error occurred during stream initialization
*/
public MarshalledObjectOutputStream(OutputStream out) throws IOException {
super(out);
Index: src/main/java/org/apache/harmony/rmi/activation/ActivationGroupImpl.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/activation/ActivationGroupImpl.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/activation/ActivationGroupImpl.java (working copy)
@@ -76,7 +76,7 @@
* ActivationGroupID
* ActivationGroupDesc
* incarnation The parameters needed to create ActivationGroup correctly are
- * passed through the stardard input stream in the following order:
+ * passed through the standard input stream in the following order:
* ActivationGroupID -> ActivationGroupDesc -> incarnation
*/
public static void main(String args[]) {
Index: src/main/java/org/apache/harmony/rmi/activation/Rmid.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/activation/Rmid.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/activation/Rmid.java (working copy)
@@ -97,7 +97,7 @@
* files: snapshot.rmid and delta.rmid. snapshot.rmid contains the
* snapshot of the structure that contains information about Activation
* Groups and Activatable Objects registered in this RMID and delta.rmid
- * reflects the changes occured since last snapshot.
+ * reflects the changes occurred since last snapshot.
*
* The objects that are saved in Snapshot:
*
-depend).
*/
private final boolean depend;
@@ -144,7 +144,7 @@
*
* We use {@link Object} array to store either {@link String}
* or {@link Class} objects because we don't want to resolve all the class
- * names in the beginning - to avoid one incorrecly spelled class name
+ * names in the beginning - to avoid one incorrectly spelled class name
* preventing generation of stubs for other specified classes.
*/
private Object[] classes;
@@ -349,7 +349,7 @@
javacOptionsList.add(optionNoWarnings);
// Parse arguments, adjust values of option fields,
- // add neccessary options to javacOptionsList.
+ // add necessary options to javacOptionsList.
for (int i = 0; i < numArgs; i++) {
String arg = args[i].intern();
@@ -676,7 +676,7 @@
}
} finally {
- // Remove generated stub and skeleton files even if exception arised
+ // Remove generated stub and skeleton files even if exception arose
if (!keepSources) {
for (int i = 0; i < filesNum; i++) {
stubFiles[i].delete();
@@ -764,7 +764,7 @@
* by %s substrings.
*
* @param arg
- * Argument. Each occurence of %s
+ * Argument. Each occurrence of %s
* in message is replaced with this string.
*
* @throws RMICompilerException
@@ -780,7 +780,7 @@
* Produces warning message.
*
* @param tag
- * Warning tag. Used to track warnings. Also, each occurence
+ * Warning tag. Used to track warnings. Also, each occurrence
* of %s in message is replaced
* with this string.
*
Index: src/main/java/org/apache/harmony/rmi/compiler/ClassStub.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/compiler/ClassStub.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/compiler/ClassStub.java (working copy)
@@ -891,10 +891,10 @@
}
/**
- * Returns stub imlementation for this method
+ * Returns stub implementation for this method
* (Stub v1.1/v1.2/vCompat).
*
- * @return Stub imlementation for this method.
+ * @return Stub implementation for this method.
*/
String getStubImpl() {
return (getStubImplHeader()
@@ -910,10 +910,10 @@
}
/**
- * Returns header for the stub implementaton for this method
+ * Returns header for the stub implementation for this method
* (Stub v1.1/v1.2/vCompat).
*
- * @return Stub imlementation header for this method.
+ * @return Stub implementation header for this method.
*/
private String getStubImplHeader() {
StringBuffer buffer = new StringBuffer(indenter.indent()
@@ -943,10 +943,10 @@
}
/**
- * Returns the stub implementaton code section source for this method
+ * Returns the stub implementation code section source for this method
* (Stub v1.1/vCompat).
*
- * @return Stub imlementation code for this method.
+ * @return Stub implementation code for this method.
*/
private String getStubImplCodeV11() {
StringBuffer buffer = new StringBuffer(indenter.indent()
@@ -1010,10 +1010,10 @@
}
/**
- * Returns the stub implementaton code section source for this method
+ * Returns the stub implementation code section source for this method
* (Stub v1.2/vCompat).
*
- * @return Stub imlementation code for this method.
+ * @return Stub implementation code for this method.
*/
private String getStubImplCodeV12() {
StringBuffer buffer = new StringBuffer(indenter.indent());
@@ -1051,10 +1051,10 @@
}
/**
- * Returns the stub implementaton catch block for this method
+ * Returns the stub implementation catch block for this method
* (Stub v1.1/v1.2/vCompat).
*
- * @return Stub imlementation catch block for this method.
+ * @return Stub implementation catch block for this method.
*/
private String getStubImplCatchBlock() {
StringBuffer buffer = new StringBuffer();
Index: src/main/java/org/apache/harmony/rmi/compiler/RmicUtil.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/compiler/RmicUtil.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/compiler/RmicUtil.java (working copy)
@@ -231,7 +231,7 @@
* @param packageName
* Package name (for subdirectory).
*
- * @return File object for a directoty like this:
+ * @return File object for a directory like this:
* baseDir/my/java/package.
*
* @throws RMICompilerException
Index: src/main/java/org/apache/harmony/rmi/internal/nls/messages.properties
===================================================================
--- src/main/java/org/apache/harmony/rmi/internal/nls/messages.properties (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/internal/nls/messages.properties (working copy)
@@ -29,8 +29,8 @@
rmi.0B=Stub class initialization failed: java.rmi.activation.ActivationGroup_Stub
rmi.0C=Undeclared checked exception
rmi.0D=The default group for this JVM is inactive.
-rmi.0E=An IOException occured while deserializing the object from its internal representation.
-rmi.0F=A ClassNotFoundException occured while deserializing the object from its internal representation.
+rmi.0E=An IOException occurred while deserializing the object from its internal representation.
+rmi.0F=A ClassNotFoundException occurred while deserializing the object from its internal representation.
rmi.10=The groupID can't be null.
rmi.11=The ActivationGroup for this VM already exists.
rmi.12=Unable to create group.
@@ -75,8 +75,8 @@
rmi.39=Unknown call status response: {0}
rmi.3A=Unable to read call return header:
rmi.3B=Unknown call result response: {0}
-rmi.3C=IOException occured while unmarshalling returned exception
-rmi.3D=ClassNotFoundException occured while unmarshalling returned exception
+rmi.3C=IOException occurred while unmarshalling returned exception
+rmi.3D=ClassNotFoundException occurred while unmarshalling returned exception
rmi.3E=Remote method threw unexpected exception
rmi.3F=Not Exception type thrown: {0}
rmi.40=Unable to establish connection to server
@@ -118,17 +118,17 @@
rmi.64=Unable to export object on port {0}
rmi.65=Skeleton class not found.
rmi.66=Method with hash = {0} not found.
-rmi.67=Error occured while marshalling return value
+rmi.67=Error occurred while marshalling return value
rmi.68=Stub {0} not found.
-rmi.69=RemoteException occured while unmarshalling arguments
-rmi.6A=IOException occured while unmarshalling arguments
-rmi.6B=ClassNotFoundException occured while unmarshalling arguments
-rmi.6C=Error occured while unmarshalling arguments
-rmi.6D=Error occured while remote method invocation
-rmi.6E=RemoteException occured while remote method invocation
-rmi.6F=I/O error occured while marshalling arguments
-rmi.70=IOException occured while unmarshalling return value
-rmi.71=ClassNotFoundException occured while unmarshalling return value
+rmi.69=RemoteException occurred while unmarshalling arguments
+rmi.6A=IOException occurred while unmarshalling arguments
+rmi.6B=ClassNotFoundException occurred while unmarshalling arguments
+rmi.6C=Error occurred while unmarshalling arguments
+rmi.6D=Error occurred while remote method invocation
+rmi.6E=RemoteException occurred while remote method invocation
+rmi.6F=I/O error occurred while marshalling arguments
+rmi.70=IOException occurred while unmarshalling return value
+rmi.71=ClassNotFoundException occurred while unmarshalling return value
rmi.72=Unable to marshal call header
rmi.73=Instantiation failed.
rmi.74=Unable to read Object ID
Index: src/main/java/org/apache/harmony/rmi/transport/Endpoint.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/Endpoint.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/Endpoint.java (working copy)
@@ -267,7 +267,7 @@
* @param out ObjectOutput to write this Endpoint to
* @param writeCsf do we need to write client-side factory or not
*
- * @throws IOException if any I/O error occured during writing
+ * @throws IOException if any I/O error occurred during writing
*/
public void writeExternal(ObjectOutput out, boolean writeCsf)
throws IOException {
@@ -294,7 +294,7 @@
*
* @return created Endpoint
*
- * @throws IOException if any I/O error occured
+ * @throws IOException if any I/O error occurred
* @throws ClassNotFoundException if class could not be loaded by current
* class loader
*/
Index: src/main/java/org/apache/harmony/rmi/transport/proxy/HttpConnection.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/proxy/HttpConnection.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/proxy/HttpConnection.java (working copy)
@@ -55,7 +55,7 @@
*
* @return acknowledged protocol number
*
- * @throws RemoteException if any I/O exception occured during protocol
+ * @throws RemoteException if any I/O exception occurred during protocol
* acknowledgement
*/
protected int serverProtocolAck() throws RemoteException {
Index: src/main/java/org/apache/harmony/rmi/transport/proxy/Proxy.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/proxy/Proxy.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/proxy/Proxy.java (working copy)
@@ -161,7 +161,7 @@
/**
* Accesses {@link #PROXY_HOST_PROP} system property
- * and retrives the proxy host name.
+ * and retrieves the proxy host name.
*
* @return Proxy host name or null if proxy host is not set.
*/
@@ -180,7 +180,7 @@
/**
* Accesses {@link #PROXY_PORT_PROP} system property
- * and retrives the proxy port number.
+ * and retrieves the proxy port number.
*
* @return Proxy port number or {@link #HTTP_DEFAULT_PORT}
* if proxy port is not set.
Index: src/main/java/org/apache/harmony/rmi/transport/proxy/HttpServerConnection.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/proxy/HttpServerConnection.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/proxy/HttpServerConnection.java (working copy)
@@ -54,7 +54,7 @@
* @param s Socket connected to the client
* @param mgr ConnectionManager managing this connection
*
- * @throws IOException if an I/O error occured during getting
+ * @throws IOException if an I/O error occurred during getting
* input/output streams from specified socket
*/
public HttpServerConnection(Socket s, ServerConnectionManager mgr)
Index: src/main/java/org/apache/harmony/rmi/transport/tcp/TcpConnection.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/tcp/TcpConnection.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/tcp/TcpConnection.java (working copy)
@@ -50,7 +50,7 @@
// status of availability for remote calls
private boolean available;
- // lock object for synchtonization
+ // lock object for synchronization
private class Lock {}
private Object lock = new Lock();
@@ -82,7 +82,7 @@
*
* @return acknowledged protocol number
*
- * @throws RemoteException if any I/O exception occured during protocol
+ * @throws RemoteException if any I/O exception occurred during protocol
* acknowledgement
*/
protected int serverProtocolAck() throws RemoteException {
@@ -110,7 +110,7 @@
} catch (Exception ex) {
}
- // read protocol acknoledgement
+ // read protocol acknowledgement
DataInputStream din = new DataInputStream(in);
int ack = din.readByte();
Index: src/main/java/org/apache/harmony/rmi/transport/tcp/TcpServerConnection.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/tcp/TcpServerConnection.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/tcp/TcpServerConnection.java (working copy)
@@ -51,7 +51,7 @@
protected static final RMILog tcpTransportLog = RMILog.getTcpTransportLog();
/*
- * The time used as an idle timeout for incomping connections (in ms).
+ * The time used as an idle timeout for incoming connections (in ms).
* Default value is 2 * 3600 * 1000 ms (2 hours).
*/
private static int readTimeout = ((Long) AccessController.doPrivileged(
@@ -64,7 +64,7 @@
* @param s Socket connected to the client
* @param mgr ConnectionManager managing this connection
*
- * @throws IOException if an I/O error occured during getting
+ * @throws IOException if an I/O error occurred during getting
* input/output streams from specified socket
*/
public TcpServerConnection(Socket s, ServerConnectionManager mgr)
Index: src/main/java/org/apache/harmony/rmi/transport/RMIObjectInputStream.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/RMIObjectInputStream.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/RMIObjectInputStream.java (working copy)
@@ -70,7 +70,7 @@
*
* @param in underlying InputStream
*
- * @throws IOException if an I/O error occured during stream initialization
+ * @throws IOException if an I/O error occurred during stream initialization
*/
public RMIObjectInputStream(InputStream in) throws IOException {
this (in, false);
@@ -84,7 +84,7 @@
* @param isRCallStream true if this stream was created for handling
* a RemoteCall and false otherwise
*
- * @throws IOException if an I/O error occured during stream initialization
+ * @throws IOException if an I/O error occurred during stream initialization
*/
public RMIObjectInputStream(InputStream in, boolean isRCallStream)
throws IOException {
@@ -106,7 +106,7 @@
*
* @param streamCl annotated class
*
- * @throws IOException if an I/O exception occured
+ * @throws IOException if an I/O exception occurred
* @throws ClassNotFoundException if class of a serialized object
* could not be found
*/
@@ -128,7 +128,7 @@
*
* @param interf array of interfaces which proxy class should implement
*
- * @throws IOException if an I/O exception occured
+ * @throws IOException if an I/O exception occurred
* @throws ClassNotFoundException if class of a serialized object
* could not be found
*/
@@ -165,7 +165,7 @@
*
* @return object read from the stream
*
- * @throws IOException if an I/O error occured during deserialization
+ * @throws IOException if an I/O error occurred during deserialization
* @throws ClassNotFoundException if class of a serialized object
* could not be found
*/
Index: src/main/java/org/apache/harmony/rmi/transport/RMIObjectOutputStream.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/RMIObjectOutputStream.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/RMIObjectOutputStream.java (working copy)
@@ -69,7 +69,7 @@
*
* @param out underlying OutputStream
*
- * @throws IOException if an I/O error occured during stream initialization
+ * @throws IOException if an I/O error occurred during stream initialization
*/
public RMIObjectOutputStream(OutputStream out) throws IOException {
this(out, false);
@@ -83,7 +83,7 @@
* @param isResultStream true if this stream was created
* in RemoteCall.getResultStream() method
*
- * @throws IOException if an I/O error occured during stream initialization
+ * @throws IOException if an I/O error occurred during stream initialization
*/
public RMIObjectOutputStream(OutputStream out, boolean isResultStream)
throws IOException {
@@ -173,7 +173,7 @@
* @param obj object (possibly primitive) to be written to the stream
* @param cl type of object to be written to the stream
*
- * @throws IOException if an I/O error occured during serialization
+ * @throws IOException if an I/O error occurred during serialization
*/
public void writeRMIObject(Object obj, Class cl) throws IOException {
if (cl.isPrimitive()) {
@@ -217,7 +217,7 @@
/**
* Writes DGC ack UID to this stream.
*
- * @throws IOException if any I/O error occured while writing
+ * @throws IOException if any I/O error occurred while writing
*/
public void writeUID() throws IOException {
uid.write(this);
Index: src/main/java/org/apache/harmony/rmi/transport/DefaultRMISocketFactory.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/transport/DefaultRMISocketFactory.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/transport/DefaultRMISocketFactory.java (working copy)
@@ -214,7 +214,7 @@
* Helper method: returns non-null RMIClientSocketFactory.
* Returns specified RMIClientSocketFactory if it is not null; otherwise
* returns result of getSocketFactory method call if it is not null;
- * ottherwise returns result of getDefaultSocketFactory method call.
+ * otherwise returns result of getDefaultSocketFactory method call.
*
* @param csf RMIClientSocketFactory to check
*
@@ -231,7 +231,7 @@
* Helper method: returns non-null RMIServerSocketFactory.
* Returns specified RMIServerSocketFactory if it is not null; otherwise
* returns result of getSocketFactory method call if it is not null;
- * ottherwise returns result of getDefaultSocketFactory method call.
+ * otherwise returns result of getDefaultSocketFactory method call.
*
* @param ssf RMIServerSocketFactory to check
*
Index: src/main/java/org/apache/harmony/rmi/client/ClientRemoteCall.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/client/ClientRemoteCall.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/client/ClientRemoteCall.java (working copy)
@@ -83,7 +83,7 @@
*
* @return ObjectInputStream to read objects from
*
- * @throws IOException if an I/O error occured during stream construction
+ * @throws IOException if an I/O error occurred during stream construction
*/
public ObjectInput getInputStream() throws IOException {
if (oin == null) {
@@ -98,7 +98,7 @@
*
* @return ObjectOutputStream to write objects to
*
- * @throws IOException if an I/O error occured during stream construction
+ * @throws IOException if an I/O error occurred during stream construction
*/
public ObjectOutput getOutputStream() throws IOException {
@@ -223,11 +223,11 @@
try {
obj = oin.readObject();
} catch (IOException ioe) {
- // rmi.3C=IOException occured while unmarshalling returned exception
+ // rmi.3C=IOException occurred while unmarshalling returned exception
throw new UnmarshalException(Messages.getString("rmi.3C"), ioe); //$NON-NLS-1$
} catch (ClassNotFoundException cnfe) {
- // rmi.3D=ClassNotFoundException occured while unmarshalling returned exception
+ // rmi.3D=ClassNotFoundException occurred while unmarshalling returned exception
throw new UnmarshalException(Messages.getString("rmi.3D"), cnfe); //$NON-NLS-1$
}
Index: src/main/java/org/apache/harmony/rmi/client/ClientConnectionManager.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/client/ClientConnectionManager.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/client/ClientConnectionManager.java (working copy)
@@ -82,7 +82,7 @@
*
* @return opened connection
*
- * @throws RemoteException if any error occured while obtaining connection
+ * @throws RemoteException if any error occurred while obtaining connection
*/
public static ClientConnection getConnection(Endpoint ep)
throws RemoteException {
Index: src/main/java/org/apache/harmony/rmi/client/ClientConnection.java
===================================================================
--- src/main/java/org/apache/harmony/rmi/client/ClientConnection.java (revision 488283)
+++ src/main/java/org/apache/harmony/rmi/client/ClientConnection.java (working copy)
@@ -75,7 +75,7 @@
* @param s Connected socket
* @param ep server's endpoint
*
- * @throws RemoteException if any I/O error occured during connection
+ * @throws RemoteException if any I/O error occurred during connection
* creation
*/
public ClientConnection(Socket s, Endpoint ep) throws RemoteException {
@@ -125,18 +125,18 @@
*
* @return acknowledged protocol number
*
- * @throws RemoteException if any I/O exception occured during protocol
+ * @throws RemoteException if any I/O exception occurred during protocol
* acknowledgement
*/
protected abstract int serverProtocolAck() throws RemoteException;
/**
- * Writes RMI protocol header and RMI protocol vertion to the open
+ * Writes RMI protocol header and RMI protocol version to the open
* OutputStream.
*
* @param dout DataOutputStream to write header to
*
- * @throws RemoteException if any I/O error occured while writing header
+ * @throws RemoteException if any I/O error occurred while writing header
*/
protected void writeHeader(DataOutputStream dout) throws RemoteException {
try {
@@ -207,7 +207,7 @@
/**
* By default flushes output stream of this connection.
*
- * @throws IOException if any I/O error occured
+ * @throws IOException if any I/O error occurred
*/
public void releaseOutputStream() throws IOException {
out.flush();