projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use context objects and optionals in interfaces.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Sone.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Sone.java
b/src/main/java/net/pterodactylus/sone/data/Sone.java
index
d7a7dee
..
166591f
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Sone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Sone.java
@@
-144,7
+144,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
@Override
public boolean apply(Sone sone) {
@Override
public boolean apply(Sone sone) {
- return (sone
== null) ? false : sone.getTime() != 0
;
+ return (sone
!= null) && (sone.getTime() != 0)
;
}
};
}
};
@@
-153,7
+153,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
@Override
public boolean apply(Sone sone) {
@Override
public boolean apply(Sone sone) {
- return (sone
== null) ? false : sone.getIdentity() instanceof OwnIdentity
;
+ return (sone
!= null) && (sone.getIdentity() instanceof OwnIdentity)
;
}
};
}
};
@@
-163,7
+163,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
@Override
public boolean apply(Sone sone) {
@Override
public boolean apply(Sone sone) {
- return (sone
== null) ? false :
!sone.getRootAlbum().getAlbums().isEmpty();
+ return (sone
!= null) &&
!sone.getRootAlbum().getAlbums().isEmpty();
}
};
}
};