Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 26, 2025
1 parent 1d55795 commit 9babcc3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public TFTPAckPacket(final InetAddress destination, final int port, final int bl
}

/**
* Returns the block number of the acknowledgement.
* Gets the block number of the acknowledgement.
*
* @return The block number of the acknowledgement.
*/
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/apache/commons/net/tftp/TFTPDataPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public TFTPDataPacket(final InetAddress destination, final int port, final int b
}

/**
* Returns the block number of the data packet.
* Gets the block number of the data packet.
*
* @return The block number of the data packet.
*/
Expand All @@ -122,7 +122,7 @@ public int getBlockNumber() {
}

/**
* Returns the byte array containing the packet data.
* Gets the byte array containing the packet data.
*
* @return The byte array containing the packet data.
*/
Expand All @@ -131,7 +131,7 @@ public byte[] getData() {
}

/**
* Returns the length of the data part of the data packet.
* Gets the length of the data part of the data packet.
*
* @return The length of the data part of the data packet.
*/
Expand All @@ -140,7 +140,7 @@ public int getDataLength() {
}

/**
* Returns the offset into the byte array where the packet data actually starts.
* Gets the offset into the byte array where the packet data actually starts.
*
* @return The offset into the byte array where the packet data actually starts.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public TFTPErrorPacket(final InetAddress destination, final int port, final int
}

/**
* Returns the error code of the packet.
* Gets the error code of the packet.
*
* @return The error code of the packet.
*/
Expand All @@ -130,7 +130,7 @@ public int getError() {
}

/**
* Returns the error message of the packet.
* Gets the error message of the packet.
*
* @return The error message of the packet.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/apache/commons/net/tftp/TFTPPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static final TFTPPacket newTFTPPacket(final DatagramPacket datagram) thro
}

/**
* Returns the address of the host where the packet is going to be sent or where it came from.
* Gets the address of the host where the packet is going to be sent or where it came from.
*
* @return The type of the packet.
*/
Expand All @@ -145,7 +145,7 @@ public final InetAddress getAddress() {
}

/**
* Returns the port where the packet is going to be sent or where it came from.
* Gets the port where the packet is going to be sent or where it came from.
*
* @return The port where the packet came from or where it is going.
*/
Expand All @@ -154,7 +154,7 @@ public final int getPort() {
}

/**
* Returns the type of the packet.
* Gets the type of the packet.
*
* @return The type of the packet.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public abstract class TFTPRequestPacket extends TFTPPacket {
}

/**
* Returns the requested file name.
* Gets the requested file name.
*
* @return The requested file name.
*/
Expand All @@ -143,7 +143,7 @@ public final String getFilename() {
}

/**
* Returns the transfer mode of the request.
* Gets the transfer mode of the request.
*
* @return The transfer mode of the request.
*/
Expand Down

0 comments on commit 9babcc3

Please sign in to comment.