From ba97c04414e95e0deb152e690f3c2bcd2751d361 Mon Sep 17 00:00:00 2001 From: ahmad Date: Sat, 11 May 2024 17:15:14 +0200 Subject: [PATCH] Updated the ClassCanBeTyped --- src/main/resources/JavaTestfiles/ClassCanBeTyped.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/resources/JavaTestfiles/ClassCanBeTyped.java b/src/main/resources/JavaTestfiles/ClassCanBeTyped.java index 308a211..52e58ca 100644 --- a/src/main/resources/JavaTestfiles/ClassCanBeTyped.java +++ b/src/main/resources/JavaTestfiles/ClassCanBeTyped.java @@ -2,8 +2,6 @@ public class ClassCanBeTyped { int x; int y; - char z; - boolean a; ClassCanBeTyped b; public ClassCanBeTyped(int x) { this.x = x; @@ -12,8 +10,13 @@ public class ClassCanBeTyped { this.x = x; this.y = y; } - public ClassCanBeTyped initClassCanBeTyped(int x, int y) { - b = new ClassCanBeTyped(x, y); + public ClassCanBeTyped initClassCanBeTyped(int x) { + int a; + a = 10; + b = new ClassCanBeTyped(x); + b.x = 10 + a; + b.y = 20; + return b; } public ClassCanBeTyped init(int x, int y) {