# HG changeset patch # User coffeys # Date 1546536593 0 # Node ID d976ee345d1112a6a3f9b7140a2bd868ce0036bb # Parent e412d5c096bcd2d8061e4c3090baecda8536932b 8182992: Typo in DatagramPacket constructor API doc Reviewed-by: coffeys Contributed-by: roger.calnan@oracle.com diff -r e412d5c096bc -r d976ee345d11 src/java.base/share/classes/java/net/DatagramPacket.java --- a/src/java.base/share/classes/java/net/DatagramPacket.java Thu Jan 03 17:27:29 2019 +0000 +++ b/src/java.base/share/classes/java/net/DatagramPacket.java Thu Jan 03 17:29:53 2019 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -102,7 +102,7 @@ /** * Constructs a datagram packet for sending packets of length - * {@code length} with offset {@code ioffset}to the + * {@code length} with offset {@code offset} to the * specified port number on the specified host. The * {@code length} argument must be less than or equal to * {@code buf.length}. @@ -125,7 +125,7 @@ /** * Constructs a datagram packet for sending packets of length - * {@code length} with offset {@code ioffset}to the + * {@code length} with offset {@code offset} to the * specified port number on the specified host. The * {@code length} argument must be less than or equal to * {@code buf.length}.