--- a/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java Sat Sep 29 15:44:06 2012 +0400
+++ b/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java Mon Oct 01 15:36:57 2012 +0100
@@ -99,7 +99,7 @@
/**
* Sends a datagram packet. The packet contains the data and the
* destination address to send the packet to.
- * @param packet to be sent.
+ * @param p the packet to be sent.
*/
protected abstract void send(DatagramPacket p) throws IOException;
@@ -130,13 +130,13 @@
/**
* Peek at the packet to see who it is from.
- * @param return the address which the packet came from.
+ * @param i the address to populate with the sender address
*/
protected abstract int peek(InetAddress i) throws IOException;
protected abstract int peekData(DatagramPacket p) throws IOException;
/**
* Receive the datagram packet.
- * @param Packet Received.
+ * @param p the packet to receive into
*/
protected synchronized void receive(DatagramPacket p)
throws IOException {
@@ -148,7 +148,7 @@
/**
* Set the TTL (time-to-live) option.
- * @param TTL to be set.
+ * @param ttl TTL to be set.
*/
protected abstract void setTimeToLive(int ttl) throws IOException;
@@ -159,7 +159,7 @@
/**
* Set the TTL (time-to-live) option.
- * @param TTL to be set.
+ * @param ttl TTL to be set.
*/
@Deprecated
protected abstract void setTTL(byte ttl) throws IOException;
@@ -172,7 +172,7 @@
/**
* Join the multicast group.
- * @param multicast address to join.
+ * @param inetaddr multicast address to join.
*/
protected void join(InetAddress inetaddr) throws IOException {
join(inetaddr, null);
@@ -180,14 +180,14 @@
/**
* Leave the multicast group.
- * @param multicast address to leave.
+ * @param inetaddr multicast address to leave.
*/
protected void leave(InetAddress inetaddr) throws IOException {
leave(inetaddr, null);
}
/**
* Join the multicast group.
- * @param multicast address to join.
+ * @param mcastaddr multicast address to join.
* @param netIf specifies the local interface to receive multicast
* datagram packets
* @throws IllegalArgumentException if mcastaddr is null or is a
@@ -207,7 +207,7 @@
/**
* Leave the multicast group.
- * @param multicast address to leave.
+ * @param mcastaddr multicast address to leave.
* @param netIf specified the local interface to leave the group at
* @throws IllegalArgumentException if mcastaddr is null or is a
* SocketAddress subclass not supported by this socket