]> git.uio.no Git - ifi-stolz-refaktor.git/blobdiff - software/no.uio.ifi.refaktor.examples/examples/src/searchBased/C.java
Adding checks for return statements. (A lot.)
[ifi-stolz-refaktor.git] / software / no.uio.ifi.refaktor.examples / examples / src / searchBased / C.java
index ffc8b2abce200e785c9511ed9abf37b58b00981a..d41cd1b583574158d9e197084d53cbfc45900fc5 100644 (file)
@@ -6,7 +6,7 @@ public class C {
        public C c;
        public D d;
        
-       public void crap() {
+       public String crap() {
                boolean f1 = true;
                if (f1) {
                        boolean f2 = false;
@@ -14,13 +14,18 @@ public class C {
                                System.out.println("crap");
                                while (f2) {
                                        f2 = false;
-                                       return;
+                                       return "testing";
                                }
                        } else {
-                               return;
+                               return "yep";
                        }
                } else {
                        System.out.println("more crap");
                }
+               return "test";
+       }
+       
+       public String moreCrap() {
+               return "More crap!";
        }
 }
\ No newline at end of file