src/share/classes/java/net/DatagramPacket.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:

@@ -35,11 +35,11 @@
  * differently, and might arrive in any order. Packet delivery is
  * not guaranteed.
  *
  * @author  Pavani Diwanji
  * @author  Benjamin Renaud
- * @since   JDK1.0
+ * @since   1.0
  */
 public final
 class DatagramPacket {
 
     /**

@@ -274,22 +274,22 @@
 
     /**
      * Sets the IP address of the machine to which this datagram
      * is being sent.
      * @param iaddr the {@code InetAddress}
-     * @since   JDK1.1
+     * @since   1.1
      * @see #getAddress()
      */
     public synchronized void setAddress(InetAddress iaddr) {
         address = iaddr;
     }
 
     /**
      * Sets the port number on the remote host to which this datagram
      * is being sent.
      * @param iport the port number
-     * @since   JDK1.1
+     * @since   1.1
      * @see #getPort()
      */
     public synchronized void setPort(int iport) {
         if (iport < 0 || iport > 0xFFFF) {
             throw new IllegalArgumentException("Port out of range:"+ iport);

@@ -340,11 +340,11 @@
      * @exception NullPointerException if the argument is null.
      *
      * @see #getLength
      * @see #getData
      *
-     * @since JDK1.1
+     * @since 1.1
      */
     public synchronized void setData(byte[] buf) {
         if (buf == null) {
             throw new NullPointerException("null packet buffer");
         }

@@ -368,11 +368,11 @@
      * length.
      *
      * @see #getLength
      * @see #setData
      *
-     * @since JDK1.1
+     * @since 1.1
      */
     public synchronized void setLength(int length) {
         if ((length + offset) > buf.length || length < 0 ||
             (length + offset) < 0) {
             throw new IllegalArgumentException("illegal length");