Skip to content

Java: Add ArrayTypeAccess C-style predicate #3624

Open
@Marcono1234

Description

@Marcono1234

Description of the issue
Would it be possible to add a predicate to ArrayTypeAccess which returns whether the type access uses the C-style notation?
C-style array declarations are discouraged and you can severly decrease readability:

int[] a, b[];

int[] test()[] {
  return null;
}

is equivalent to:

int[] a;
int[][] b;

int[][] test() {
  return null;
}

See also JLS 14 §10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions