Skip to content

Commit

Permalink
Fix typos in the javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitoy committed Sep 22, 2017
1 parent 99cc177 commit cee93c1
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions pcap4j-core/src/main/java/org/pcap4j/packet/DnsQuestion.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public String toString() {

/**
* @param indent indent
* @return String represantation of this object.
* @return String representation of this object.
*/
public String toString(String indent) {
return convertToString(indent, null);
Expand All @@ -187,7 +187,7 @@ public String toString(String indent) {
/**
* @param indent indent
* @param headerRawData the raw data of the DNS header including this question.
* @return String represantation of this object.
* @return String representation of this object.
*/
public String toString(String indent, byte[] headerRawData) {
if (headerRawData == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public String toString() {

/**
* @param indent indent
* @return String represantation of this object.
* @return String representation of this object.
*/
public String toString(String indent) {
return convertToString(indent, null);
Expand All @@ -308,7 +308,7 @@ public String toString(String indent) {
/**
* @param indent indent
* @param headerRawData the raw data of the DNS header including this resource record.
* @return String represantation of this object.
* @return String representation of this object.
*/
public String toString(String indent, byte[] headerRawData) {
if (headerRawData == null) {
Expand Down Expand Up @@ -488,7 +488,7 @@ public DnsResourceRecord build() {
/**
* The interface representing an RDATA.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV4Option newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public String toString() {

/**
* @param indent indent
* @return String represantation of this object.
* @return String representation of this object.
*/
public String toString(String indent) {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public String toString() {

/**
* @param indent indent
* @return String represantation of this object.
* @return String representation of this object.
*/
public String toString(String indent) {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ protected int calcHashCode() {
/**
* The interface representing an IPv6 neighbor discovery option.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV6NeighborDiscoveryOption newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public IpV4InternetTimestampOption build() {
/**
* The interface representing an IPv4 internet timestamp option data.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV4InternetTimestampData newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
4 changes: 2 additions & 2 deletions pcap4j-core/src/main/java/org/pcap4j/packet/IpV4Packet.java
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ protected int calcHashCode() {
/**
* The interface representing an IPv4 option.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV4Option newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down Expand Up @@ -1047,7 +1047,7 @@ public interface IpV4Option extends Serializable {
/**
* The interface representing an IPv4 TOS.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV4Tos newInstance(byte value)}
*
* @author Kaito Yamada
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ protected int calcHashCode() {
/**
* The interface representing an IPv6 option.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV6Option newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ protected int calcHashCode() {
/**
* The interface representing an IPv6 routing data.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV6RoutingData newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
4 changes: 2 additions & 2 deletions pcap4j-core/src/main/java/org/pcap4j/packet/IpV6Packet.java
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ protected int calcHashCode() {
/**
* The interface representing an IPv6 traffic class.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV6TrafficClass newInstance(byte value)}
*
* @author Kaito Yamada
Expand All @@ -631,7 +631,7 @@ public interface IpV6TrafficClass extends Serializable {
/**
* The interface representing an IPv6 flow label.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static IpV6FlowLabel newInstance(int value)}
*
* @author Kaito Yamada
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ protected int calcHashCode() {
/**
* The interface representing a Radiotap data field.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static RadiotapDataField newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ protected int calcHashCode() {
/**
* The interface representing an SCTP Chunk Field.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static SctpChunk newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
6 changes: 3 additions & 3 deletions pcap4j-core/src/main/java/org/pcap4j/packet/TcpPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public Packet getPayload() {

/**
*
* checksum varification is necessary for IPv6(i.e. acceptZero must be false)
* checksum verification is necessary for IPv6(i.e. acceptZero must be false)
*
* @param srcAddr srcAddr
* @param dstAddr dstAddr
Expand Down Expand Up @@ -434,7 +434,7 @@ public Builder srcAddr(InetAddress srcAddr) {
*
* used for checksum calculation
* If the lower-layer packet is a IPv6 packet and
* the extention headers including a routing header,
* the extension headers including a routing header,
* this parameter is that of the final destination.
* (i.e. the last element of the Routing header)
*
Expand Down Expand Up @@ -1154,7 +1154,7 @@ protected int calcHashCode() {
/**
* The interface representing a TCP option.
* If you use {@link org.pcap4j.packet.factory.PropertiesBasedPacketFactory PropertiesBasedPacketFactory},
* classes which imprement this interface must implement the following method:
* classes which implement this interface must implement the following method:
* {@code public static TcpOption newInstance(byte[] rawData, int offset, int length)
* throws IllegalRawDataException}
*
Expand Down
4 changes: 2 additions & 2 deletions pcap4j-core/src/main/java/org/pcap4j/packet/UdpPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public Packet getPayload() {

/**
*
* checksum varification is necessary for IPv6(i.e. acceptZero must be false)
* checksum verification is necessary for IPv6(i.e. acceptZero must be false)
*
* @param srcAddr srcAddr
* @param dstAddr dstAddr
Expand Down Expand Up @@ -281,7 +281,7 @@ public Builder srcAddr(InetAddress srcAddr) {
*
* used for checksum calculation
* If the lower-layer packet is a IPv6 packet and
* the extention headers including a routing header,
* the extension headers including a routing header,
* this parameter is that of the final destination.
* (i.e. the last element of the Routing header)
*
Expand Down

0 comments on commit cee93c1

Please sign in to comment.