projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create links to posts using an excerpt from the parsed post, not the raw text.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
TrustUpdater.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java
b/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java
index
be6f39c
..
3f347d5
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/TrustUpdater.java
+++ b/
src/main/java/net/pterodactylus/sone/core/TrustUpdater.java
@@
-132,7
+132,11
@@
public class TrustUpdater extends AbstractService {
if (shouldStop() || (updateJob == stopJob)) {
break;
}
if (shouldStop() || (updateJob == stopJob)) {
break;
}
+ logger.log(Level.FINE, "Running Trust Update Job: " + updateJob);
+ long startTime = System.currentTimeMillis();
updateJob.run();
updateJob.run();
+ long endTime = System.currentTimeMillis();
+ logger.log(Level.FINE, "Trust Update Job finished, took " + (endTime - startTime) + " ms.");
} catch (InterruptedException ie1) {
/* happens, ignore, loop. */
}
} catch (InterruptedException ie1) {
/* happens, ignore, loop. */
}
@@
-211,7
+215,7
@@
public class TrustUpdater extends AbstractService {
*/
@Override
public int hashCode() {
*/
@Override
public int hashCode() {
- return ((truster == null) ? 0 : truster.hashCode()) ^ ((trustee == null) ? 0 : trustee.hashCode());
+ return
getClass().hashCode() ^
((truster == null) ? 0 : truster.hashCode()) ^ ((trustee == null) ? 0 : trustee.hashCode());
}
/**
}
/**