forked from apache/netbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NETBEANS-4311]: Added support for auto-completion of Java Record
- Loading branch information
Arunava Sinha
committed
Jul 30, 2020
1 parent
08fb876
commit 84ed378
Showing
13 changed files
with
375 additions
and
29 deletions.
There are no files selected for viewing
Binary file added
BIN
+785 Bytes
ide/editor/src/org/netbeans/modules/editor/resources/completion/record.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
273 changes: 246 additions & 27 deletions
273
java/java.completion/src/org/netbeans/modules/java/completion/JavaCompletionTask.java
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...goldenfiles/org/netbeans/modules/java/completion/JavaCompletionTaskTest/1.8/override.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Override |
1 change: 1 addition & 0 deletions
1
...a/goldenfiles/org/netbeans/modules/java/completion/JavaCompletionTaskTest/1.8/record.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
record |
8 changes: 8 additions & 0 deletions
8
...ns/modules/java/completion/JavaCompletionTaskTest/1.8/typesRecordLocalMembersAndVars.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
R | ||
R1 | ||
Readable | ||
ReflectiveOperationException | ||
Runnable | ||
Runtime | ||
RuntimeException | ||
RuntimePermission |
8 changes: 8 additions & 0 deletions
8
...s/modules/java/completion/JavaCompletionTaskTest/1.8/typesRecordStaticMembersAndVars.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
R | ||
R1 | ||
Readable | ||
ReflectiveOperationException | ||
Runnable | ||
Runtime | ||
RuntimeException | ||
RuntimePermission |
7 changes: 7 additions & 0 deletions
7
...ans/modules/java/completion/JavaCompletionTaskTest/14/typesRecordLocalMembersAndVars.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Readable | ||
Record | ||
ReflectiveOperationException | ||
Runnable | ||
Runtime | ||
RuntimeException | ||
RuntimePermission |
7 changes: 7 additions & 0 deletions
7
...ns/modules/java/completion/JavaCompletionTaskTest/14/typesRecordStaticMembersAndVars.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Readable | ||
Record | ||
ReflectiveOperationException | ||
Runnable | ||
Runtime | ||
RuntimeException | ||
RuntimePermission |
34 changes: 34 additions & 0 deletions
34
java/java.completion/test/unit/data/org/netbeans/modules/java/completion/data/Records.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package test; | ||
|
||
public class Test { | ||
|
||
public record Records <R extends Number, R1 > ( ) { | ||
|
||
public static | ||
} | ||
|
||
public static void main(String args ) | ||
{ | ||
record Record1(@Ov ) {} | ||
|
||
record Rec( ) {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters