projects
/
WoTNS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add method to return the first WoT identity.
[WoTNS.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
wotns
/
main
/
Resolver.java
diff --git
a/src/main/java/net/pterodactylus/wotns/main/Resolver.java
b/src/main/java/net/pterodactylus/wotns/main/Resolver.java
index
12eff7e
..
4e53528
100644
(file)
--- a/
src/main/java/net/pterodactylus/wotns/main/Resolver.java
+++ b/
src/main/java/net/pterodactylus/wotns/main/Resolver.java
@@
-133,4
+133,12
@@
public class Resolver {
return matchingIdentities.get(0);
}
return matchingIdentities.get(0);
}
+ private OwnIdentity getFirstOwnIdentity() {
+ Set<OwnIdentity> ownIdentities = identityManager.getAllOwnIdentities();
+ if (!ownIdentities.isEmpty()) {
+ return ownIdentities.iterator().next();
+ }
+ return null;
+ }
+
}
}