commit | 8d0a35c80b628e7d354fdae2cf44c506d485da45 | [log] [tgz] |
---|---|---|
author | salsubaiee <salsubaiee@gmail.com> | Tue Jun 04 14:07:30 2013 -0700 |
committer | salsubaiee <salsubaiee@gmail.com> | Tue Jun 04 14:07:30 2013 -0700 |
tree | 765883c09ae2c46ee565b878a80f55351c8fc801 | |
parent | 99c77b9166cf229bfd36a7a56208a737e43ec75f [diff] |
Addressed Vinayak's comments
diff --git a/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadExecutor.java b/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadExecutor.java index ce2284c..14975ff 100644 --- a/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadExecutor.java +++ b/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadExecutor.java
@@ -18,7 +18,7 @@ import java.util.concurrent.Executors; public class AsterixThreadExecutor implements Executor { - public static AsterixThreadExecutor INSTANCE = new AsterixThreadExecutor(); + public final static AsterixThreadExecutor INSTANCE = new AsterixThreadExecutor(); private final Executor executor = Executors.newCachedThreadPool(AsterixThreadFactory.INSTANCE); private AsterixThreadExecutor() {
diff --git a/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadFactory.java b/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadFactory.java index 5d11d6d..7e4735f 100644 --- a/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadFactory.java +++ b/asterix-common/src/main/java/edu/uci/ics/asterix/common/api/AsterixThreadFactory.java
@@ -20,7 +20,7 @@ public class AsterixThreadFactory implements ThreadFactory { - public static AsterixThreadFactory INSTANCE = new AsterixThreadFactory(); + public final static AsterixThreadFactory INSTANCE = new AsterixThreadFactory(); private AsterixThreadFactory() {