Skip to content

Commit 5783eed

Browse files
7903802: apidiff: minor doc and related updates
Reviewed-by: iris
1 parent f73e256 commit 5783eed

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

src/share/doc/README

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ API Comparison Utility: apidiff
33

44
Introduction
55

6-
...
7-
8-
Release Notes.
9-
10-
...
6+
APIDiff is a utility to compare two or more versions of an API, each as
7+
defined by a series of options similar to those supported by `javac`.
8+
For details on all the options, see the file 'doc/apidiff.html' in this
9+
distribution.
1110

1211

1312
System Requirements
@@ -17,7 +16,7 @@ apidiff.
1716

1817
- Java platform
1918
A platform equivalent to JDK 17 or later is required.
20-
19+
It should be at least as recent as that for each of the APIs to be compared.
2120

2221

2322
Files and Directories
@@ -27,8 +26,8 @@ README This file
2726
COPYRIGHT Copyright information
2827
LICENSE License file
2928
doc/ Documentation files
30-
legal/ Copyright and license files
29+
legal/ Additional copyright and license files
3130
lib/ Directory containing the JAR files needed to run apidiff
32-
bin/ Miscellaneous utility script for use on Linux, macOS, Solaris
31+
bin/ Miscellaneous utility script for use on Linux, macOS,
3332
and for Cygwin on Microsoft Windows platforms
3433

src/share/doc/apidiff.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
#
3-
# Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
#
66
# This code is free software; you can redistribute it and/or modify it
@@ -22,20 +22,17 @@
2222
# questions.
2323
#
2424

25-
title: 'APIDIFF(1) 0.1 | CodeTools'
26-
date: 2021
25+
title: 'APIDIFF(1) 1.0 | CodeTools'
26+
date: 2024
2727
lang: en
2828
---
2929

30-
<b style="color:red">WORK IN PROGRESS</b>
31-
3230
## Name
3331

3432
apidiff - compare different versions of an API
3533

3634
## Synopsis
3735

38-
3936
`apidiff` \[*options*\]
4037

4138
*options*
@@ -44,7 +41,7 @@ apidiff - compare different versions of an API
4441
## Description
4542

4643
The `apidiff` command reads source, class and HTML files that provide different versions
47-
of an API, compares corresponding files in the different versions and writes out
44+
of an API, compares corresponding declarations in the different versions and writes out
4845
an HTML report. The comparison includes:
4946

5047
* structural changes, such as whether an element was added, changed or removed,
@@ -339,7 +336,7 @@ of the API to be compared.
339336
If the API does not provide or is not part of a module, use the `--source-path`
340337
and `--class-path` options.
341338
If the API provides or is part of one or more modules, use the
342-
`--source-path`, `--module-source-path`, `--module-path` and related options.
339+
`--source-path`, `--module-source-path`, `--module-path`, and related options.
343340

344341
If you want to compare the content of documentation comments, you must provide
345342
source files for all the elements to be compared; any dependencies of those source
@@ -348,7 +345,9 @@ files can be specified as either source or class files.
348345
If you want to compare the API descriptions, you must provide the locations
349346
of the directories generated by the `javadoc` tool for each of the instances
350347
of the API being compared. This is often a directory whose path ends in `api`,
351-
although that is not a requirement.
348+
although that is not a requirement. To eliminate any false positive differences
349+
being introduced by changes to the `javadoc` tool itself, the same or equivalent
350+
versions of `javadoc` should be used for each API to be compared.
352351

353352
### Configuring instances of JDK to be compared
354353

0 commit comments

Comments
 (0)