mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8193861: Typos in API documentation of File.toPath() and InetSocketAddress.getAddress()
Reviewed-by: chegar, rriggs, lancea
This commit is contained in:
parent
8918acdc7a
commit
1924909d78
2 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -2256,7 +2256,7 @@ public class File
|
||||||
private transient volatile Path filePath;
|
private transient volatile Path filePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a {@link Path java.nio.file.Path} object constructed from the
|
* Returns a {@link Path java.nio.file.Path} object constructed from
|
||||||
* this abstract path. The resulting {@code Path} is associated with the
|
* this abstract path. The resulting {@code Path} is associated with the
|
||||||
* {@link java.nio.file.FileSystems#getDefault default-filesystem}.
|
* {@link java.nio.file.FileSystems#getDefault default-filesystem}.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -317,10 +317,9 @@ public class InetSocketAddress
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* Gets the {@code InetAddress}.
|
* Gets the {@code InetAddress}.
|
||||||
*
|
*
|
||||||
* @return the InetAdress or {@code null} if it is unresolved.
|
* @return the InetAddress or {@code null} if it is unresolved.
|
||||||
*/
|
*/
|
||||||
public final InetAddress getAddress() {
|
public final InetAddress getAddress() {
|
||||||
return holder.getAddress();
|
return holder.getAddress();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue