projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace unnecessary type parameters with <>
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
freenet
/
wot
/
IdentityManagerImpl.java
diff --git
a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
index
a9f3613
..
7d8d1e4
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
+++ b/
src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
@@
-107,7
+107,7
@@
public class IdentityManagerImpl extends AbstractService implements IdentityMana
@Override
public Set<OwnIdentity> getAllOwnIdentities() {
synchronized (currentOwnIdentities) {
@Override
public Set<OwnIdentity> getAllOwnIdentities() {
synchronized (currentOwnIdentities) {
- return new HashSet<
OwnIdentity
>(currentOwnIdentities);
+ return new HashSet<>(currentOwnIdentities);
}
}
}
}
@@
-120,7
+120,7
@@
public class IdentityManagerImpl extends AbstractService implements IdentityMana
*/
@Override
protected void serviceRun() {
*/
@Override
protected void serviceRun() {
- Map<OwnIdentity, Collection<Identity>> oldIdentities = new HashMap<
OwnIdentity, Collection<Identity>
>();
+ Map<OwnIdentity, Collection<Identity>> oldIdentities = new HashMap<>();
while (!shouldStop()) {
try {
while (!shouldStop()) {
try {