[Git][java-team/intellij-annotations][upstream] New upstream version 20.1.0
Markus Koschany
gitlab at salsa.debian.org
Thu Sep 10 11:28:52 BST 2020
Markus Koschany pushed to branch upstream at Debian Java Maintainers / intellij-annotations
Commits:
6d9f3d78 by Markus Koschany at 2020-09-10T12:21:50+02:00
New upstream version 20.1.0
- - - - -
4 changed files:
- CHANGELOG.md
- README.md
- common/src/main/java/org/jetbrains/annotations/PropertyKey.java
- gradle.properties
Changes:
=====================================
CHANGELOG.md
=====================================
@@ -1,6 +1,10 @@
Changelog
===
+Version 20.1.0
+---
+* Added `TYPE_USE` target for `PropertyKey` annotation.
+
Version 20.0.0
---
* Added new annotation: `@MustBeInvokedByOverriders`.
=====================================
README.md
=====================================
@@ -11,7 +11,7 @@ The annotations are published on [Maven Central](https://repo1.maven.org/maven2/
using gradle write the following in the `build.gradle` file:
```
dependencies {
- compileOnly 'org.jetbrains:annotations:20.0.0'
+ compileOnly 'org.jetbrains:annotations:20.1.0'
}
```
@@ -20,7 +20,7 @@ To add a dependency using Maven, write the following in `pom.xml`:
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
- <version>20.0.0</version>
+ <version>20.1.0</version>
</dependency>
```
=====================================
common/src/main/java/org/jetbrains/annotations/PropertyKey.java
=====================================
@@ -19,15 +19,15 @@ package org.jetbrains.annotations;
import java.lang.annotation.*;
/**
- * Specifies that a method parameter accepts arguments which must be valid property
- * keys in a specific resource bundle. When a string literal which is not a property
- * key in the specified bundle is passed as a parameter, IntelliJ IDEA highlights
- * it as an error. The annotation is also used to provide completion in string literals
- * passed as parameters.
+ * Specifies that a method parameter, local variable, field or a method return value
+ * must be a valid property key in a specific resource bundle. When a string literal
+ * which is not a property key in the specified bundle is passed as a parameter,
+ * static analyzers may highlight it as an error. The annotation is also could be used
+ * by IDEs to provide completion in string literals passed as parameters.
*/
@Documented
@Retention(RetentionPolicy.CLASS)
- at Target({ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.FIELD})
+ at Target({ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.FIELD, ElementType.TYPE_USE})
public @interface PropertyKey {
/**
* The full-qualified name of the resource bundle in which the property keys must
=====================================
gradle.properties
=====================================
@@ -14,4 +14,4 @@
# limitations under the License.
#
-projectVersion=20.0.0
\ No newline at end of file
+projectVersion=20.1.0
\ No newline at end of file
View it on GitLab: https://salsa.debian.org/java-team/intellij-annotations/-/commit/6d9f3d78f0e43a8f9ac0d49456f076ed014f966f
--
View it on GitLab: https://salsa.debian.org/java-team/intellij-annotations/-/commit/6d9f3d78f0e43a8f9ac0d49456f076ed014f966f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20200910/f7532da2/attachment.html>
More information about the pkg-java-commits
mailing list