on demand static import -> on-demand static import (IDEA-221475)

GitOrigin-RevId: 3cdbe9a8fbad5b785934f8f6280e4140cb8aa75c
This commit is contained in:
Bas Leijdekkers
2019-10-01 17:39:08 +02:00
committed by intellij-monorepo-bot
parent d08953b2b4
commit 311f965f20
36 changed files with 49 additions and 49 deletions

View File

@@ -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.*;

View File

@@ -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.*;

View File

@@ -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.
}
}

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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.*;

View File

@@ -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.*;

View File

@@ -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;

View File

@@ -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.*;

View File

@@ -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.*;

View File

@@ -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.*;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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.*;

View File

@@ -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.
}
}

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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.
}
}

View File

@@ -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.
}
}

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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.*;

View File

@@ -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();

View File

@@ -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.*;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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.*;

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {