diff --git a/packages/java.lang.native.operator/src/jequality.ts b/packages/java.lang.native.operator/src/jequality.ts index 8a5f866..2125399 100644 --- a/packages/java.lang.native.operator/src/jequality.ts +++ b/packages/java.lang.native.operator/src/jequality.ts @@ -1,10 +1,10 @@ import { Jboolean } from '../../java.lang/src/jboolean_primitive'; export interface JEquality { - + /** Emulate the operator == */ eq(expr: T): Jboolean; - + /** Emulate the operator != */ ne(expr: T): Jboolean; -} \ No newline at end of file +} diff --git a/packages/java.lang/src/jboolean_primitive.ts b/packages/java.lang/src/jboolean_primitive.ts index 8632bd4..5c55fdb 100644 --- a/packages/java.lang/src/jboolean_primitive.ts +++ b/packages/java.lang/src/jboolean_primitive.ts @@ -25,11 +25,11 @@ export class Jboolean implements JEquality { } 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); } } diff --git a/packages/java.lang/src/jobject.ts b/packages/java.lang/src/jobject.ts index 48558cf..1714223 100644 --- a/packages/java.lang/src/jobject.ts +++ b/packages/java.lang/src/jobject.ts @@ -228,10 +228,10 @@ export class JObject implements JEquality { } 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); } }