summaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/src/org
diff options
context:
space:
mode:
authoraclement <aclement>2011-12-02 00:56:52 +0000
committeraclement <aclement>2011-12-02 00:56:52 +0000
commitc09ff5a063238b1eaf241573506a88008f7a8a30 (patch)
tree218686e8b28ccf8e257996e028b6e5b61041763a /org.aspectj.matcher/src/org
parente077d061cf225611d8e5ad7de507d708611249b7 (diff)
downloadaspectj-c09ff5a063238b1eaf241573506a88008f7a8a30.tar.gz
aspectj-c09ff5a063238b1eaf241573506a88008f7a8a30.zip
Java7 merge - in progress
Diffstat (limited to 'org.aspectj.matcher/src/org')
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/World.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/World.java b/org.aspectj.matcher/src/org/aspectj/weaver/World.java
index 5f62695c1..9821f9ad5 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/World.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/World.java
@@ -157,8 +157,8 @@ public abstract class World implements Dump.INode {
private static Trace trace = TraceFactory.getTraceFactory().getTrace(World.class);
- private long errorThreshold;
- private long warningThreshold;
+ private boolean errorThreshold;
+ private boolean warningThreshold;
/**
* A list of RuntimeExceptions containing full stack information for every type we couldn't find.
@@ -864,7 +864,7 @@ public abstract class World implements Dump.INode {
* @param errorThreshold
* @param warningThreshold
*/
- public void setErrorAndWarningThreshold(long errorThreshold, long warningThreshold) {
+ public void setErrorAndWarningThreshold(boolean errorThreshold, boolean warningThreshold) {
this.errorThreshold = errorThreshold;
this.warningThreshold = warningThreshold;
}
@@ -875,10 +875,11 @@ public abstract class World implements Dump.INode {
public boolean isIgnoringUnusedDeclaredThrownException() {
// the 0x800000 is CompilerOptions.UnusedDeclaredThrownException
// which is ASTNode.bit24
- if ((errorThreshold & 0x800000) != 0 || (warningThreshold & 0x800000) != 0) {
- return false;
- }
- return true;
+ return errorThreshold||warningThreshold;
+// if ((errorThreshold & 0x800000) != 0 || (warningThreshold & 0x800000) != 0) {
+// return false;
+// }
+// return true;
}
public void performExtraConfiguration(String config) {