mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
on demand static import -> on-demand static import (IDEA-221475)
GitOrigin-RevId: 3cdbe9a8fbad5b785934f8f6280e4140cb8aa75c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d08953b2b4
commit
311f965f20
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.Thread'" "true"
|
||||
// "Add on-demand static import for 'java.lang.Thread'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Thread.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
// "Add on-demand static import for 'java.util.Arrays'" "true"
|
||||
import java.util.*;
|
||||
|
||||
import static java.util.Arrays.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Bar'" "true"
|
||||
// "Add on-demand static import for 'test.Bar'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.*;
|
||||
@@ -10,7 +10,7 @@ class Bar {
|
||||
|
||||
public class Foo {
|
||||
{
|
||||
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
|
||||
static class D {
|
||||
@@ -18,19 +18,19 @@ public class Foo {
|
||||
}
|
||||
|
||||
{
|
||||
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
|
||||
{
|
||||
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
|
||||
{
|
||||
f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.annotation.ElementType'" "true"
|
||||
// "Add on-demand static import for 'java.lang.annotation.ElementType'" "true"
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'pkg.F'" "true"
|
||||
// "Add on-demand static import for 'pkg.F'" "true"
|
||||
package pkg;
|
||||
|
||||
class F {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.Math'" "true"
|
||||
// "Add on-demand static import for 'java.lang.Math'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.Math'" "true"
|
||||
// "Add on-demand static import for 'java.lang.Math'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Map'" "true"
|
||||
// "Add on-demand static import for 'java.util.Map'" "true"
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
// "Add on-demand static import for 'java.util.Arrays'" "true"
|
||||
package test;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Bar'" "true"
|
||||
// "Add on-demand static import for 'test.Bar'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
// "Add on-demand static import for 'java.util.Arrays'" "true"
|
||||
import java.util.Arrays;
|
||||
|
||||
import static java.util.Arrays.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Foo'" "true"
|
||||
// "Add on-demand static import for 'test.Foo'" "true"
|
||||
package test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Foo'" "true"
|
||||
// "Add on-demand static import for 'test.Foo'" "true"
|
||||
package test;
|
||||
|
||||
class Foo {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.GregorianCalendar'" "true"
|
||||
// "Add on-demand static import for 'test.GregorianCalendar'" "true"
|
||||
package test;
|
||||
|
||||
import static test.GregorianCalendar.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Bar'" "false"
|
||||
// "Add on-demand static import for 'test.Bar'" "false"
|
||||
package test;
|
||||
import static test.Bar.*;
|
||||
|
||||
@@ -9,6 +9,6 @@ public class Foo {
|
||||
public static final void f(int i) {}
|
||||
|
||||
{
|
||||
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
<caret>Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.Thread'" "true"
|
||||
// "Add on-demand static import for 'java.lang.Thread'" "true"
|
||||
package test;
|
||||
|
||||
public class Foo {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
// "Add on-demand static import for 'java.util.Arrays'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Foo {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Bar'" "false"
|
||||
// "Add on-demand static import for 'test.Bar'" "false"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
@@ -8,6 +8,6 @@ public class Foo {
|
||||
public static final void f(int i) {}
|
||||
|
||||
{
|
||||
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
<caret>Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Bar'" "true"
|
||||
// "Add on-demand static import for 'test.Bar'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
@@ -8,7 +8,7 @@ class Bar {
|
||||
|
||||
public class Foo {
|
||||
{
|
||||
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
|
||||
static class D {
|
||||
@@ -16,19 +16,19 @@ public class Foo {
|
||||
}
|
||||
|
||||
{
|
||||
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
|
||||
{
|
||||
Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
|
||||
{
|
||||
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
<caret>Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.annotation.ElementType'" "true"
|
||||
// "Add on-demand static import for 'java.lang.annotation.ElementType'" "true"
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'pkg.F'" "true"
|
||||
// "Add on-demand static import for 'pkg.F'" "true"
|
||||
package pkg;
|
||||
|
||||
class F {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.Math'" "true"
|
||||
// "Add on-demand static import for 'java.lang.Math'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.abs;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.lang.Math'" "true"
|
||||
// "Add on-demand static import for 'java.lang.Math'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Foo'" "false"
|
||||
// "Add on-demand static import for 'test.Foo'" "false"
|
||||
class Foo {
|
||||
{
|
||||
final Stri<caret>ng. s = toString();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Collections'" "false"
|
||||
// "Add on-demand static import for 'java.util.Collections'" "false"
|
||||
package test;
|
||||
|
||||
import static java.util.Collections.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Map'" "true"
|
||||
// "Add on-demand static import for 'java.util.Map'" "true"
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.SomeClass'" "false"
|
||||
// "Add on-demand static import for 'test.SomeClass'" "false"
|
||||
package test;
|
||||
|
||||
public class SomeClass {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
// "Add on-demand static import for 'java.util.Arrays'" "true"
|
||||
package test;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Bar'" "true"
|
||||
// "Add on-demand static import for 'test.Bar'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
// "Add on-demand static import for 'java.util.Arrays'" "true"
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MyFile {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Foo'" "true"
|
||||
// "Add on-demand static import for 'test.Foo'" "true"
|
||||
package test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Foo.Bar'" "false"
|
||||
// "Add on-demand static import for 'test.Foo.Bar'" "false"
|
||||
package test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Foo'" "true"
|
||||
// "Add on-demand static import for 'test.Foo'" "true"
|
||||
package test;
|
||||
|
||||
class Foo {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Outer.State'" "false"
|
||||
// "Add on-demand static import for 'test.Outer.State'" "false"
|
||||
package test;
|
||||
|
||||
public class Outer {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.GregorianCalendar'" "true"
|
||||
// "Add on-demand static import for 'test.GregorianCalendar'" "true"
|
||||
package test;
|
||||
|
||||
public class Foo {
|
||||
|
||||
Reference in New Issue
Block a user