Skip to content

Commit

Permalink
instrumentation of chained method calls (builder pattern)
Browse files Browse the repository at this point in the history
issue #58 : #58
  • Loading branch information
miho committed Aug 4, 2015
1 parent c6432d8 commit 065be15
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ package my.testpackage;
@eu.mihosoft.vrl.instrumentation.VRLVisualization
public class MyFileClass {

public MyFileClass() {
}

public MyFileClass(int param1, int param2) {
private MyFileClass m(int a) {
println("m: " + a);
return this;
}

public static void main(String[] args) {

int a = 2+3*2;
int b = 5-a;

//MyFileClass mfc = new MyFileClass(a,b+1);

if (a<b) {
println("a<b: " + (a < b));
if (b<a) {
println("a<b: " + (b < a));
}

MyFileClass mfc = new MyFileClass();

mfc.m(a).m(b)
}
}

0 comments on commit 065be15

Please sign in to comment.