Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/apuliasoft/j2se-js
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe-santoro committed Jul 17, 2017
2 parents 27f4c91 + ed07526 commit ada3c46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/java.lang.native.operator/src/jequality.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Jboolean } from '../../java.lang/src/jboolean_primitive';

export interface JEquality<T> {

/** Emulate the operator == */
eq(expr: T): Jboolean;

/** Emulate the operator != */
ne(expr: T): Jboolean;
}
}
4 changes: 2 additions & 2 deletions packages/java.lang/src/jboolean_primitive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export class Jboolean implements JEquality<Jboolean> {
}

public eq(expr: Jboolean): Jboolean {
return new Jboolean(this.value == expr.value);
return new Jboolean(this.value === expr.value);
}

public ne(expr: Jboolean): Jboolean {
return new Jboolean(this.value != expr.value);
return new Jboolean(this.value !== expr.value);
}

}
Expand Down
4 changes: 2 additions & 2 deletions packages/java.lang/src/jobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ export class JObject implements JEquality<JObject> {
}

public eq(expr: JObject): Jboolean {
return new Jboolean(this == expr);
return new Jboolean(this === expr);
}

public ne(expr: JObject): Jboolean {
return new Jboolean(this != expr);
return new Jboolean(this !== expr);
}
}

0 comments on commit ada3c46

Please sign in to comment.