Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkstyle plugin to check code style #193

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Add checkstyle plugin to check code style #193

merged 1 commit into from
Dec 16, 2020

Conversation

Linary
Copy link
Contributor

@Linary Linary commented Dec 15, 2020

Change-Id: Ieb294cbe7d9fafa4ed468b965abe61135cafd50d

@Linary Linary force-pushed the check-style branch 3 times, most recently from 94bc3e5 to b974573 Compare December 15, 2020 10:10
@@ -82,8 +82,10 @@ public EdgeMapping mapping() {
int size = Math.max(sources.size(), targets.size());
List<Edge> edges = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
Vertex source = i < sources.size() ? sources.get(i) : sources.get(0);
Vertex target = i < targets.size() ? targets.get(i) : targets.get(0);
Vertex source = i < sources.size() ? sources.get(i) :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer to wrap line after "?"

Vertex target = i < targets.size() ? targets.get(i) : targets.get(0);
Vertex source = i < sources.size() ? sources.get(i) :
sources.get(0);
Vertex target = i < targets.size() ? targets.get(i) :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

this.timeZone = timeZone != null ? timeZone : Constants.TIME_ZONE;
this.skippedLine = skippedLine != null ? skippedLine : new SkippedLine();
this.skippedLine = skippedLine != null ? skippedLine :
new SkippedLine();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Change-Id: Ieb294cbe7d9fafa4ed468b965abe61135cafd50d
@Linary Linary merged commit 1b1b780 into master Dec 16, 2020
@Linary Linary deleted the check-style branch December 16, 2020 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants