google / google/styleguide

Java Style Guide: Line wrap at array declarator brackets

Open
#258 1 comment 4 reactions 0 assignees View on GitHub
lang:java
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

Google Style Guide does not explain how to wrap line at array declarator brackets.
Can you please answer, which of that cases is valid:
1.
```
int x = new int[
] {1, 2};
```


2.

```
int x = new int
[] {1, 2};
```

If possible, please update style guide to include that information.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.