java: include parentheses () in text when referring to methods

GitOrigin-RevId: 1cfc8afb26b5db175d865f6bbdc752356040d8bb
This commit is contained in:
Bas Leijdekkers
2022-08-19 11:30:20 +02:00
committed by intellij-monorepo-bot
parent 46bc714501
commit 9addc5eaf7
285 changed files with 368 additions and 359 deletions

View File

@@ -1,6 +1,6 @@
import static java.lang.Integer.parseInt;
// "Import static method 'java.lang.Integer.parseInt'" "true-preview"
// "Import static method 'java.lang.Integer.parseInt()'" "true-preview"
public class X {
{
<caret>parseInt("",10);

View File

@@ -1,6 +1,6 @@
import static java.lang.String.format;
// "Import static method 'java.lang.String.format'" "true-preview"
// "Import static method 'java.lang.String.format()'" "true-preview"
public class X {
{
format("");

View File

@@ -1,4 +1,4 @@
// "Import static method 'foo.B.aaaaaaa'" "true-preview"
// "Import static method 'foo.B.aaaaaaa()'" "true-preview"
package foo;
import static foo.B.aaaaaaa;

View File

@@ -1,4 +1,4 @@
// "Import static method 'foo.B.aaaaaaa'" "true-preview"
// "Import static method 'foo.B.aaaaaaa()'" "true-preview"
package foo;
import static foo.B.aaaaaaa;

View File

@@ -1,4 +1,4 @@
// "Import static method 'java.lang.Integer.parseInt'" "true-preview"
// "Import static method 'java.lang.Integer.parseInt()'" "true-preview"
public class X {
{
<caret>parseInt("",10);

View File

@@ -1,4 +1,4 @@
// "Import static method 'foo.B.aaaaaaa'" "false"
// "Import static method 'foo.B.aaaaaaa()'" "false"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Import static method 'java.lang.Integer.parseInt'" "false"
// "Import static method 'java.lang.Integer.parseInt()'" "false"
public class X {
{
this.<caret>parseInt("",10);

View File

@@ -1,4 +1,4 @@
// "Import static method 'java.lang.String.format'" "true-preview"
// "Import static method 'java.lang.String.format()'" "true-preview"
public class X {
{
String.format("");

View File

@@ -1,4 +1,4 @@
// "Import static method 'foo.B.aaaaaaa'" "true-preview"
// "Import static method 'foo.B.aaaaaaa()'" "true-preview"
package foo;
public class X {
{

View File

@@ -1,4 +1,4 @@
// "Import static method 'foo.B.aaaaaaa'" "true-preview"
// "Import static method 'foo.B.aaaaaaa()'" "true-preview"
package foo;
public class X {