mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
[java-intentions] Rename 'Wrap using' fixes with 'Adapt using'.
Not everything is actually wrapping. E.g., converting 'long' to 'int' via 'Math.toIntExact' is definitely not wrapping. The 'adapt' word looks more abstract and suitable for all the cases. GitOrigin-RevId: 33e56b6e16a0362598ac8e3fc92ef2808a77dbe0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2d6d319d1e
commit
c81981ee75
@@ -332,9 +332,9 @@ insert.sam.method.call.fix.name=Insert ''.{0}'' to call functional interface met
|
||||
insert.sam.method.call.fix.family.name=Insert single abstract method call
|
||||
|
||||
wrap.with.adapter.call.family.name=Wrap using adapter call or object
|
||||
wrap.with.adapter.text=Wrap using ''{0}''
|
||||
wrap.with.adapter.parameter.single.text=Wrap argument using ''{0}''
|
||||
wrap.with.adapter.parameter.multiple.text=Wrap {0, choice, 1#1st|2#2nd|3#3rd|4#{0,number}th} argument using ''{1}''
|
||||
wrap.with.adapter.text=Adapt using ''{0}''
|
||||
wrap.with.adapter.parameter.single.text=Adapt argument using ''{0}''
|
||||
wrap.with.adapter.parameter.multiple.text=Adapt {0, choice, 1#1st|2#2nd|3#3rd|4#{0,number}th} argument using ''{1}''
|
||||
|
||||
java.9.merge.module.statements.fix.family.name=Merge with other ''{0}'' directive
|
||||
java.9.merge.module.statements.fix.name=Merge with other ''{0} {1}'' directive
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Arrays.stream()'" "false"
|
||||
// "Adapt argument using 'Arrays.stream()'" "false"
|
||||
import java.util.*;
|
||||
class a {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'new File()'" "true"
|
||||
// "Adapt argument using 'new File()'" "true"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'asIterator()'" "true"
|
||||
// "Adapt using 'asIterator()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'toPath()'" "true"
|
||||
// "Adapt argument using 'toPath()'" "true"
|
||||
import java.io.*;
|
||||
import java.nio.file.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'toFile()'" "true"
|
||||
// "Adapt using 'toFile()'" "true"
|
||||
import java.io.*;
|
||||
import java.nio.file.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'iterator()'" "true"
|
||||
// "Adapt using 'iterator()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'toCharArray()'" "true"
|
||||
// "Adapt using 'toCharArray()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 2nd argument using 'new File()'" "true"
|
||||
// "Adapt 2nd argument using 'new File()'" "true"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Paths.get()'" "true"
|
||||
// "Adapt using 'Paths.get()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 1st argument using 'Collections.singleton()'" "true"
|
||||
// "Adapt 1st argument using 'Collections.singleton()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'new File()'" "true"
|
||||
// "Adapt argument using 'new File()'" "true"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Arrays.stream()'" "true"
|
||||
// "Adapt using 'Arrays.stream()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'new File()'" "true"
|
||||
// "Adapt argument using 'new File()'" "true"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'asIterator()'" "true"
|
||||
// "Adapt using 'asIterator()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'toPath()'" "true"
|
||||
// "Adapt argument using 'toPath()'" "true"
|
||||
import java.io.*;
|
||||
import java.nio.file.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'toFile()'" "true"
|
||||
// "Adapt using 'toFile()'" "true"
|
||||
import java.io.*;
|
||||
import java.nio.file.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'iterator()'" "true"
|
||||
// "Adapt using 'iterator()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'toCharArray()'" "true"
|
||||
// "Adapt using 'toCharArray()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "false"
|
||||
// "Adapt using 'Collections.singletonList()'" "false"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "true"
|
||||
// "Adapt using 'Collections.singletonList()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Collections.singletonList()'" "false"
|
||||
// "Adapt using 'Collections.singletonList()'" "false"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 2nd argument using 'new File()'" "true"
|
||||
// "Adapt 2nd argument using 'new File()'" "true"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'new File()'" "false"
|
||||
// "Adapt argument using 'new File()'" "false"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Paths.get()'" "true"
|
||||
// "Adapt using 'Paths.get()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 1st argument using 'Collections.singleton()'" "true"
|
||||
// "Adapt 1st argument using 'Collections.singleton()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'new File()'" "true"
|
||||
// "Adapt argument using 'new File()'" "true"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Arrays.stream()'" "true"
|
||||
// "Adapt using 'Arrays.stream()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'new File()'" "false"
|
||||
// "Adapt argument using 'new File()'" "false"
|
||||
class Foo {
|
||||
private static Y[] parse(Iterable<String> ss) {
|
||||
return Y.toArray(X.from(ss).transform(s -> pa<caret>rse(s)));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Path.of()'" "true"
|
||||
// "Adapt argument using 'Path.of()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Path.of()'" "true"
|
||||
// "Adapt argument using 'Path.of()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Paths.get()'" "false"
|
||||
// "Adapt argument using 'Paths.get()'" "false"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 4th argument using 'Arrays.asList()'" "true"
|
||||
// "Adapt 4th argument using 'Arrays.asList()'" "true"
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Arrays.asList()'" "true"
|
||||
// "Adapt argument using 'Arrays.asList()'" "true"
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 4th argument using 'Arrays.asList()'" "true"
|
||||
// "Adapt 4th argument using 'Arrays.asList()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Arrays.asList()'" "false"
|
||||
// "Adapt argument using 'Arrays.asList()'" "false"
|
||||
import java.util.LinkedList;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Arrays.asList()'" "false"
|
||||
// "Adapt argument using 'Arrays.asList()'" "false"
|
||||
import java.util.LinkedList;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Arrays.asList()'" "true"
|
||||
// "Adapt argument using 'Arrays.asList()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 4th argument using 'List.of()'" "true"
|
||||
// "Adapt 4th argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'List.of()'" "true"
|
||||
// "Adapt argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 4th argument using 'List.of()'" "true"
|
||||
// "Adapt 4th argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'List.of()'" "true"
|
||||
// "Adapt argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
// "Adapt using 'Math.toIntExact()'" "true"
|
||||
public class Test {
|
||||
|
||||
void m(long l) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 2nd argument using 'Math.toIntExact()'" "true"
|
||||
// "Adapt 2nd argument using 'Math.toIntExact()'" "true"
|
||||
public class Test {
|
||||
|
||||
void longMethod(int k, int thisIsInt) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
// "Adapt using 'Math.toIntExact()'" "true"
|
||||
import java.util.function.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Math.toIntExact()'" "true"
|
||||
// "Adapt argument using 'Math.toIntExact()'" "true"
|
||||
|
||||
public class Test {
|
||||
void m(int i) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
// "Adapt using 'Math.toIntExact()'" "true"
|
||||
public class Test {
|
||||
|
||||
void m() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
// "Adapt using 'Math.toIntExact()'" "true"
|
||||
public class Test {
|
||||
|
||||
void m(long l) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap 2nd argument using 'Math.toIntExact()'" "true"
|
||||
// "Adapt 2nd argument using 'Math.toIntExact()'" "true"
|
||||
public class Test {
|
||||
|
||||
void longMethod(int k, int thisIsInt) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
// "Adapt using 'Math.toIntExact()'" "true"
|
||||
import java.util.function.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap argument using 'Math.toIntExact()'" "true"
|
||||
// "Adapt argument using 'Math.toIntExact()'" "true"
|
||||
|
||||
public class Test {
|
||||
void m(int i) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
// "Adapt using 'Math.toIntExact()'" "true"
|
||||
public class Test {
|
||||
|
||||
void m() {
|
||||
|
||||
Reference in New Issue
Block a user