Arrays and type-use annotations have weird way of being written,
this adds the correct form.
JIRA: MDSAL-487
Change-Id: I2e31c90eca5b59250f0a9e33444fa8b3b8ae5e4c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
c03c60cc068b342582a2d54861719718c750a880)
* @throws NullPointerException if the list or any of its elements is null
* @throws VerifyException if the list has fewer than two elements
*/
- public static @NonNull Pattern[] compilePatterns(final @NonNull List<String> patterns) {
+ public static Pattern @NonNull[] compilePatterns(final @NonNull List<String> patterns) {
final int size = patterns.size();
verify(size > 1, "Patterns has to have at least 2 elements");
- final @NonNull Pattern[] result = new Pattern[size];
+ final Pattern[] result = new Pattern[size];
for (int i = 0; i < size; ++i) {
result[i] = Pattern.compile(patterns.get(i));
}