-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Cleanup code formatting #11726
Cleanup code formatting #11726
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,9 @@ public boolean equals(Object other) | |
} | ||
|
||
BingTile otherTile = (BingTile) other; | ||
return this.x == otherTile.x | ||
&& this.y == otherTile.y | ||
&& this.zoomLevel == otherTile.zoomLevel; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we write a style for that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we can: http://checkstyle.sourceforge.net/config_whitespace.html#OperatorWrap There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Filed airlift/airbase#158 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks |
||
return this.x == otherTile.x && | ||
this.y == otherTile.y && | ||
this.zoomLevel == otherTile.zoomLevel; | ||
} | ||
|
||
@Override | ||
|
@@ -66,10 +66,10 @@ public int hashCode() | |
public String toString() | ||
{ | ||
return toStringHelper(this) | ||
.add("x", x) | ||
.add("y", y) | ||
.add("zoom_level", zoomLevel) | ||
.toString(); | ||
.add("x", x) | ||
.add("y", y) | ||
.add("zoom_level", zoomLevel) | ||
.toString(); | ||
} | ||
|
||
@JsonCreator | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,6 @@ | |
public interface ParametricImplementation | ||
{ | ||
Signature getSignature(); | ||
|
||
boolean hasSpecializedTypeParameters(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we write a style for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been unable to find a Checkstyle rule for that. I wish it could do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be easy to write a regex for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed airlift/airbase#160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks