Skip to content

Commit

Permalink
Update copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
amaembo committed Apr 14, 2021
1 parent 6fbe019 commit 3a16968
Show file tree
Hide file tree
Showing 19 changed files with 60 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
12 changes: 6 additions & 6 deletions common/src/main/java/org/intellij/lang/annotations/Language.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,22 +30,22 @@
* inside the literals that assigned to the annotated variables, passed as arguments to the annotated parameters,
* or returned from the annotated methods.
* <p>
* This annotation also could be used as a meta-annotation, to define derived annotations for convenience.
* This annotation also could be used as a meta-annotation, to define derived annotations for convenience.
* E.g. the following annotation could be defined to annotate the strings that represent Java methods:
*
*
* <pre>
* &#64;Language(value = "JAVA", prefix = "class X{", suffix = "}")
* &#64;interface JavaMethod {}
* </pre>
* <p>
* Note that using the derived annotation as meta-annotation is not supported.
* Note that using the derived annotation as meta-annotation is not supported.
* Meta-annotation works only one level deep.
*/
@Retention(RetentionPolicy.CLASS)
@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE, ANNOTATION_TYPE })
public @interface Language {
/**
* Language name like "JAVA", "HTML", "XML", "RegExp", etc.
* Language name like "JAVA", "HTML", "XML", "RegExp", etc.
* The complete list of supported languages is not specified. However, at least the following languages should be
* recognized:
* <ul>
Expand All @@ -58,7 +58,7 @@
@NonNls String value();

/**
* A constant prefix that is assumed to be implicitly added before the literal.
* A constant prefix that is assumed to be implicitly added before the literal.
* This helps to apply proper highlighting when the program element represents only a part of the valid program.
* E.g. if the method parameter accepts a Java method, it could be annotated as
* {@code void methodProcessor(@Language(value="JAVA", prefix="class X {", suffix="}")}.
Expand Down
12 changes: 6 additions & 6 deletions common/src/main/java/org/intellij/lang/annotations/Pattern.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,19 +25,19 @@

/**
* Specifies that an element of the program represents a string that must completely match given regular expression.
* Code editors may use this annotation to report errors if the literals that assigned to the annotated variables,
* Code editors may use this annotation to report errors if the literals that assigned to the annotated variables,
* passed as arguments to the annotated parameters, or returned from the annotated methods, do not match the supplied
* pattern.
* <p>
* This annotation also could be used as a meta-annotation, to define other annotations for convenience.
* This annotation also could be used as a meta-annotation, to define other annotations for convenience.
* E.g. the following annotation could be defined to annotate the strings that represent UUIDs:
*
*
* <pre>
* &#64;Pattern("[\\dA-Fa-f]{8}-[\\dA-Fa-f]{4}-[\\dA-Fa-f]{4}-[\\dA-Fa-f]{4}-[\\dA-Fa-f]{12}")
* &#64;interface UUID {}
* </pre>
* <p>
* Note that using the derived annotation as meta-annotation is not supported.
* Note that using the derived annotation as meta-annotation is not supported.
* Meta-annotation works only one level deep.
*
* @see RegExp
Expand All @@ -46,7 +46,7 @@
@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE, ANNOTATION_TYPE })
public @interface Pattern {
/**
* A regular expression that matches all the valid string literals that assigned to the annotated variables,
* A regular expression that matches all the valid string literals that assigned to the annotated variables,
* passed as arguments to the annotated parameters, or returned from the annotated methods.
*/
@Language("RegExp")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +28,7 @@
* Code editors may use this annotation to enable syntax highlighting, code completion and other features
* inside the literals that assigned to the annotated variables, passed as arguments to the annotated parameters,
* or returned from the annotated methods.
*
*
* @see Language
*/
@Retention(RetentionPolicy.CLASS)
Expand Down
8 changes: 4 additions & 4 deletions common/src/main/java/org/intellij/lang/annotations/Subst.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,16 +27,16 @@
* <pre>
* &#64;Subst("Tahoma")
* final String font = new JLabel().getFont().getName();
*
*
* &#64;Language("HTML")
* String message = "&lt;html&gt;&lt;span style='font: " + font + "; font-size:smaller'&gt;"
* String message = "&lt;html&gt;&lt;span style='font: " + font + "; font-size:smaller'&gt;"
* + ... + "&lt;/span&gt;&lt;/html&gt;";
* </pre>
* <p>
* Here the parser assumes that when {@code font} appears in the concatenation it's value is {@code "Tahoma"},
* so it can continue parsing the concatenation.
* </p>
*
*
* @see Language
* @see Pattern
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/org/jetbrains/annotations/Async.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/org/jetbrains/annotations/Debug.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,10 +20,10 @@

/**
* The annotation should be applied to overridable non-abstract method
* and indicates that all the overriders must invoke this method via
* superclass method invocation expression. The static analysis tools
* and indicates that all the overriders must invoke this method via
* superclass method invocation expression. The static analysis tools
* may report a warning if overrider fails to invoke this method.
*
*
* @since 20.0.0
*/
@Documented
Expand Down
6 changes: 3 additions & 3 deletions common/src/main/java/org/jetbrains/annotations/Nls.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,15 +28,15 @@
* detecting strings which should be reported as requiring localization.
*
* <p>
* This annotation also could be used as a meta-annotation, to define derived annotations for convenience.
* This annotation also could be used as a meta-annotation, to define derived annotations for convenience.
* E.g. the following annotation could be defined to annotate the strings that represent dialog titles:
*
* <pre>
* &#64;Nls(capitalization = Capitalization.Title)
* &#64;interface DialogTitle {}
* </pre>
* <p>
* Note that using the derived annotation as meta-annotation is not supported.
* Note that using the derived annotation as meta-annotation is not supported.
* Meta-annotation works only one level deep.
*
* @see NonNls
Expand Down
8 changes: 4 additions & 4 deletions common/src/main/java/org/jetbrains/annotations/NonNls.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -46,16 +46,16 @@
* </ul>
*
* <p>
* This annotation also could be used as a meta-annotation, to define derived annotations for convenience.
* E.g. the following annotation could be defined to annotate the strings that represent UUIDs,
* This annotation also could be used as a meta-annotation, to define derived annotations for convenience.
* E.g. the following annotation could be defined to annotate the strings that represent UUIDs,
* thus should not be localized:
*
* <pre>
* &#64;NonNls
* &#64;interface UUID {}
* </pre>
* <p>
* Note that using the derived annotation as meta-annotation is not supported.
* Note that using the derived annotation as meta-annotation is not supported.
* Meta-annotation works only one level deep.
*/
@Documented
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
10 changes: 5 additions & 5 deletions common/src/main/java/org/jetbrains/annotations/PropertyKey.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,10 +19,10 @@
import java.lang.annotation.*;

/**
* 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
* 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
Expand Down
8 changes: 4 additions & 4 deletions common/src/main/java/org/jetbrains/annotations/TestOnly.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,9 +23,9 @@
* Apart from documentation purposes this annotation is intended to be used by static analysis tools
* to validate against element contract violations.
* <p>
* This annotation means that the annotated element exposes internal data and breaks encapsulation
* of the containing class; the annotation won't prevent its use from production code, developers
* even won't see warnings if their IDE doesn't support the annotation. It's better to provide
* This annotation means that the annotated element exposes internal data and breaks encapsulation
* of the containing class; the annotation won't prevent its use from production code, developers
* even won't see warnings if their IDE doesn't support the annotation. It's better to provide
* proper API which can be used in production as well as in tests.
*/
@Documented
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,18 +25,18 @@
* A member or type annotated with VisibleForTesting claims that its visibility is higher than necessary,
* only for testing purposes. In particular:
* <ul>
* <li>If public or protected member/type is annotated with VisibleForTesting,
* <li>If public or protected member/type is annotated with VisibleForTesting,
* it's assumed that package-private access is enough for production code.</li>
* <li>If package-private member/type is annotated with VisibleForTesting,
* it's assumed that private access is enough for production code.</li>
* <li>It's illegal to annotate private member/type as VisibleForTesting.</li>
* </ul>
* <p>
* This annotation means that the annotated element exposes internal data and breaks encapsulation
* of the containing class; the annotation won't prevent its use from production code, developers
* even won't see warnings if their IDE doesn't support the annotation. It's better to provide
* This annotation means that the annotated element exposes internal data and breaks encapsulation
* of the containing class; the annotation won't prevent its use from production code, developers
* even won't see warnings if their IDE doesn't support the annotation. It's better to provide
* proper API which can be used in production as well as in tests.
*
*
* @since 20.0.0
*/
@Documented
Expand Down
4 changes: 2 additions & 2 deletions java8/src/main/java/org/jetbrains/annotations/Range.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@
* Applying this annotation to other types is not correct.
* <p>
* Example:
* <pre>{@code public @Range(from = 0, to = Integer.MAX_VALUE) int length() {
* <pre>{@code public @Range(from = 0, to = Integer.MAX_VALUE) int length() {
* return this.length; // returns a non-negative integer
* }}</pre>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,10 +21,10 @@
* An annotation which marks a {@link java.util.Collection} or {@link java.util.Map} type
* as unmodifiable. A collection or a map is unmodifiable if any mutator methods
* (e.g. {@link java.util.Collection#add(Object)}) throw exception or have no effect,
* and the object references stored as collection elements, map keys, and map values
* and the object references stored as collection elements, map keys, and map values
* are never changed. The referenced objects themselves still could be changed if they
* are mutable.
*
* are mutable.
*
* @see UnmodifiableView
* @since 19.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,9 +20,9 @@
/**
* An annotation which marks a {@link java.util.Collection} or {@link java.util.Map} type
* as unmodifiable view. A collection or a map is unmodifiable view if any mutator methods
* (e.g. {@link java.util.Collection#add(Object)}) throw exception or have no effect.
* However, the content of the collection or the map may still be updated by other code.
*
* (e.g. {@link java.util.Collection#add(Object)}) throw exception or have no effect.
* However, the content of the collection or the map may still be updated by other code.
*
* @see Unmodifiable
* @since 19.0.0
*/
Expand Down

0 comments on commit 3a16968

Please sign in to comment.