Add checkstyle to imgui-binding and make everything compliant to Java codestyle
This commit is contained in:
1 parent
3f7698fc67
commit
2b8828dda4
20 files changed
+1732
-1670
No files matched your search
@@ -9,24 +9,28 @@ public final class ImVec2 {
|
||||
public ImVec2() {
|
||||
}
|
||||
|
||||
public ImVec2(float x, float y) {
|
||||
public ImVec2(final float x, final float y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ImVec2{" +
|
||||
"x=" + x +
|
||||
", y=" + y +
|
||||
'}';
|
||||
return "ImVec2{"
|
||||
+ "x=" + x
|
||||
+ ", y=" + y
|
||||
+ '}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
ImVec2 imVec2 = (ImVec2) o;
|
||||
public boolean equals(final Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
final ImVec2 imVec2 = (ImVec2) o;
|
||||
return Float.compare(imVec2.x, x) == 0 && Float.compare(imVec2.y, y) == 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user