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
@@ -2,13 +2,13 @@ package imgui;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class ImShort {
|
||||
short[] data = new short[]{0};
|
||||
public final class ImShort {
|
||||
final short[] data = new short[]{0};
|
||||
|
||||
public ImShort() {
|
||||
}
|
||||
|
||||
public ImShort(short value) {
|
||||
public ImShort(final short value) {
|
||||
set(value);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ public class ImShort {
|
||||
return this.data[0];
|
||||
}
|
||||
|
||||
public void set(short value) {
|
||||
public void set(final short value) {
|
||||
this.data[0] = value;
|
||||
}
|
||||
|
||||
@@ -26,10 +26,14 @@ public class ImShort {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
ImShort imShort = (ImShort) o;
|
||||
public boolean equals(final Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
final ImShort imShort = (ImShort) o;
|
||||
return data[0] == imShort.data[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user