Description: JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.
Keywords: diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet

Android Developers | Android.com

API Diff Specification
To Level: | 22.2.0
From Level: | 22.1.0
Generated | 2015.07.06 15:20

Top of Report

# API Change Statistics

The overall difference between API Levels 22.1.0 and 22.2.0 is approximately 17.16%.

## Total of Differences, by Number and Type

The table below lists the numbers of program elements (packages, classes, constructors, methods, and fields) that were added, changed, or removed. The table includes only the highest-level program elements — that is, if a class with two methods was added, the number of methods added does not include those two methods, but the number of classes added does include that class.

Type | Additions | Changes | Removals | Total
--- | --- | --- | --- | ---
Packages | 11 | 5 | 0 | 16
Classes and Interfaces | 0 | 13 | 0 | 13
Constructors | 0 | 0 | 0 | 0
Methods | 28 | 1 | 0 | 29
Fields | 6 | 0 | 0 | 6
Total | 45 | 19 | 0 | 64

## Changed Packages, Sorted by Percentage Difference

Percentage Difference* | Package
--- | ---
2 | android.support.v4.media.session
2 | android.support.v7.app
1 | android.support.v4.view.accessibility
1 | android.support.v7.util
<1 | android.support.v4.view

* See Calculation of Change Percentages, below.

## Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage Difference* | Class or Interface
--- | ---
20 | android.support.v4.media.session.PlaybackStateCompat.Builder
20 | android.support.v7.app.AppCompatCallback
13 | android.support.v4.view.accessibility.AccessibilityEventCompat
12 | android.support.v4.media.session.PlaybackStateCompat.CustomAction
6 | android.support.v4.view.ViewPager
6 | android.support.v4.media.session.PlaybackStateCompat
5 | android.support.v4.view.ViewParentCompat
5 | android.support.v7.app.AppCompatDialog
5 | android.support.v4.view.ViewPropertyAnimatorCompat
4 | android.support.v7.app.AppCompatDelegate
3 | android.support.v7.util.SortedList
2 | android.support.v7.app.AppCompatActivity
1 | android.support.v4.view.ViewCompat

* See Calculation of Change Percentages, below.

## Calculation of Change Percentages

The percent change statistic reported for all elements in the "to" API Level specification is defined recursively as follows:

    Percentage difference = 100 * (added + removed + 2*changed)
                            -----------------------------------
                            sum of public elements in BOTH APIs

where `added` is the number of packages added, `removed` is the number of packages removed, and `changed` is the number of packages changed. This definition is applied recursively for the classes and their program elements, so the value for a changed package will be less than 1, unless every class in that package has changed. The definition ensures that if all packages are removed and all new packages are added, the change will be 100%.