-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrewrite.yml
35 lines (35 loc) · 1.42 KB
/
rewrite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
type: specs.openrewrite.org/v1beta/recipe
name: org.elasticsearch.java.backport.ListOfBackport
displayName: Use `org.elasticsearch.core.Lists#of(..)` not java.util.List.of#(..)
description: Java 8 does not support the `java.util.List#of(..)`.
tags:
- backport
recipeList:
- org.elasticsearch.gradle.internal.rewrite.rules.ChangeMethodOwnerRecipe:
originFullQualifiedClassname: java.util.List
targetFullQualifiedClassname: org.elasticsearch.core.List
methodName: of
---
type: specs.openrewrite.org/v1beta/recipe
name: org.elasticsearch.java.backport.MapOfBackport
displayName: Use `org.elasticsearch.core.Maps#of(..)` not java.util.Map.of#(..)
description: Java 8 does not support the `java.util.Map#of(..)`.
tags:
- backport
recipeList:
- org.elasticsearch.gradle.internal.rewrite.rules.ChangeMethodOwnerRecipe:
originFullQualifiedClassname: java.util.Map
targetFullQualifiedClassname: org.elasticsearch.core.Map
methodName: of
---
type: specs.openrewrite.org/v1beta/recipe
name: org.elasticsearch.java.backport.SetOfBackport
displayName: Use `org.elasticsearch.core.Sets#of(..)` not java.util.Set.of#(..)
description: Java 8 does not support the `java.util.Set#of(..)`.
tags:
- backport
recipeList:
- org.elasticsearch.gradle.internal.rewrite.rules.ChangeMethodOwnerRecipe:
originFullQualifiedClassname: java.util.Set
targetFullQualifiedClassname: org.elasticsearch.core.Set
methodName: of