Skip navigation links

Introduction

This document lists changes made to the Common Annotations API.


Index of APIs

Incompatible changes by date

Fuller descriptions of all changes can be found below (follow links).

Not all deprecations are listed here, assuming that the deprecated APIs continue to essentially work. For a full deprecation list, please consult the Javadoc.

All changes by date

Changes by version

These API specification versions may be used to indicate that a module requires a certain API feature in order to function. For example, if you see here a feature you need which is labelled 1.20, your manifest should contain in its main attributes the line:

OpenIDE-Module-Module-Dependencies: org.netbeans.api.annotations.common > 1.20

Changes by affected class

org.netbeans.api.annotations.common.StaticResource

org.netbeans.api.annotations.common.SuppressWarnings


Details of all changes by API and date


Common Annotations API

Exposing necessary javax.annotation elements

Apr 1 '21; API spec. version: 1.40; made by: jtulach

In order to enable -Werror to treat warnings as errors, we need to get rid of annotation errors caused by missing When constants as PR-2835 explains. This is done by exposing transitively needed, but previously missing javax.annotation elements. Javadoc for the javax isn't generated and they aren't recommended to be used directly.

Added justification attribute to SuppressWarnings

Feb 1 '13; API spec. version: 1.19; affected top-level classes: SuppressWarnings; made by: phejl; issues: #221381

Introduced justification attribute to specify why it is ok to suppress a warning.

Added StaticResource

Nov 28 '11; API spec. version: 1.13; affected top-level classes: StaticResource; made by: jglick; issues: #205377

Introduced an annotation for validating the existence of static resources.

Initial version released

Jan 22 '09; API spec. version: 1.0; made by: phejl
First initial release of the Common Annotations API.