Permalink
Browse files

minor fixes - no functional change

  • Loading branch information...
ropalka authored and dmlloyd committed Feb 6, 2013
1 parent 05f5c74 commit 696b393ae4a7a66a5609da20e85efd4cd3eafcd6
@@ -473,7 +473,7 @@ private void writeObject(java.io.ObjectOutputStream s) throws IOException {
Object table[] = IdentityHashSet.this.table;
public boolean hasNext() {
- if (hasNext == true)
+ if (hasNext)
return true;
Object table[] = this.table;
@@ -514,17 +514,17 @@ void transition(final ArrayList<Runnable> tasks) {
}
case ON_DEMAND:
case PASSIVE: {
- if (demandedByCount > 0 && dependenciesDemanded == false) {
+ if (demandedByCount > 0 && !dependenciesDemanded) {
tasks.add(new DemandDependenciesTask());
dependenciesDemanded = true;
- } else if (demandedByCount == 0 && dependenciesDemanded == true) {
+ } else if (demandedByCount == 0 && dependenciesDemanded) {
tasks.add(new UndemandDependenciesTask());
dependenciesDemanded = false;
}
break;
}
case ACTIVE: {
- if (dependenciesDemanded == false) {
+ if (!dependenciesDemanded) {
tasks.add(new DemandDependenciesTask());
dependenciesDemanded = true;
}
@@ -586,7 +586,7 @@ void transition(final ArrayList<Runnable> tasks) {
}
case UP_to_STOP_REQUESTED: {
if (mode == Mode.LAZY && demandedByCount == 0) {
- assert dependenciesDemanded == true;
+ assert dependenciesDemanded;
tasks.add(new UndemandDependenciesTask());
dependenciesDemanded = false;
}

0 comments on commit 696b393

Please sign in to comment.