Browse Source

Java7 merge - in progress

tags/V1_7_0RC1
aclement 12 years ago
parent
commit
c09ff5a063
1 changed files with 8 additions and 7 deletions
  1. 8
    7
      org.aspectj.matcher/src/org/aspectj/weaver/World.java

+ 8
- 7
org.aspectj.matcher/src/org/aspectj/weaver/World.java View File

@@ -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) {

Loading…
Cancel
Save