Skip to content

Commit f62c78b

Browse files
parloughCommit Queue
authored andcommitted
[analysis_server] Remove unused empty arrays from generated Java code
These aren't used by the IntelliJ plugins, outside of one usage that can be removed. Change-Id: I7827481a9e1d4d4e513e8e659ccc03c2bd3d9eae Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397141 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 9c18545 commit f62c78b

File tree

73 files changed

+0
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+0
-152
lines changed

pkg/analysis_server/tool/spec/codegen_java_types.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,6 @@ class CodegenJavaType extends CodegenJavaVisitor {
311311
//
312312
// fields
313313
//
314-
//
315-
// public static final "EMPTY_ARRAY" field
316-
//
317-
publicField(javaName('EMPTY_ARRAY'), () {
318-
writeln(
319-
'public static final $className[] EMPTY_ARRAY = new $className[0];',
320-
);
321-
});
322314

323315
//
324316
// public static final "EMPTY_LIST" field

pkg/analysis_server/tool/spec/generated/java/types/AddContentOverlay.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
@SuppressWarnings("unused")
3333
public class AddContentOverlay {
3434

35-
public static final AddContentOverlay[] EMPTY_ARRAY = new AddContentOverlay[0];
36-
3735
public static final List<AddContentOverlay> EMPTY_LIST = List.of();
3836

3937
private final String type;

pkg/analysis_server/tool/spec/generated/java/types/AnalysisError.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
@SuppressWarnings("unused")
2929
public class AnalysisError {
3030

31-
public static final AnalysisError[] EMPTY_ARRAY = new AnalysisError[0];
32-
3331
public static final List<AnalysisError> EMPTY_LIST = List.of();
3432

3533
/**

pkg/analysis_server/tool/spec/generated/java/types/AnalysisErrorFixes.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
@SuppressWarnings("unused")
2929
public class AnalysisErrorFixes {
3030

31-
public static final AnalysisErrorFixes[] EMPTY_ARRAY = new AnalysisErrorFixes[0];
32-
3331
public static final List<AnalysisErrorFixes> EMPTY_LIST = List.of();
3432

3533
/**

pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
@SuppressWarnings("unused")
3232
public class AnalysisOptions {
3333

34-
public static final AnalysisOptions[] EMPTY_ARRAY = new AnalysisOptions[0];
35-
3634
public static final List<AnalysisOptions> EMPTY_LIST = List.of();
3735

3836
/**

pkg/analysis_server/tool/spec/generated/java/types/AnalysisStatus.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
@SuppressWarnings("unused")
2929
public class AnalysisStatus {
3030

31-
public static final AnalysisStatus[] EMPTY_ARRAY = new AnalysisStatus[0];
32-
3331
public static final List<AnalysisStatus> EMPTY_LIST = List.of();
3432

3533
/**

pkg/analysis_server/tool/spec/generated/java/types/BulkFix.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
@SuppressWarnings("unused")
2929
public class BulkFix {
3030

31-
public static final BulkFix[] EMPTY_ARRAY = new BulkFix[0];
32-
3331
public static final List<BulkFix> EMPTY_LIST = List.of();
3432

3533
/**

pkg/analysis_server/tool/spec/generated/java/types/BulkFixDetail.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
@SuppressWarnings("unused")
2929
public class BulkFixDetail {
3030

31-
public static final BulkFixDetail[] EMPTY_ARRAY = new BulkFixDetail[0];
32-
3331
public static final List<BulkFixDetail> EMPTY_LIST = List.of();
3432

3533
/**

pkg/analysis_server/tool/spec/generated/java/types/ChangeContentOverlay.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
@SuppressWarnings("unused")
3939
public class ChangeContentOverlay {
4040

41-
public static final ChangeContentOverlay[] EMPTY_ARRAY = new ChangeContentOverlay[0];
42-
4341
public static final List<ChangeContentOverlay> EMPTY_LIST = List.of();
4442

4543
private final String type;

pkg/analysis_server/tool/spec/generated/java/types/ClosingLabel.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
@SuppressWarnings("unused")
3232
public class ClosingLabel {
3333

34-
public static final ClosingLabel[] EMPTY_ARRAY = new ClosingLabel[0];
35-
3634
public static final List<ClosingLabel> EMPTY_LIST = List.of();
3735

3836
/**

0 commit comments

Comments
 (0)