SpoonLabs / npefix

Open-science code of the program repair tool described in "Dynamic Patch Generation for Null Pointer Exceptions Using Metaprogramming" (SANER'17)
https://hal.archives-ouvertes.fr/hal-01419861/document
14 stars 9 forks source link

duplicate patch with Boolean.TRUE #11

Open monperrus opened 6 years ago

monperrus commented 6 years ago

Repairnator just gave two identical patch:

+            if (documentation.getId() == null) {
+                return Boolean.TRUE;
+            }

...

+            if (documentation.getId() == null) {
+                return true;
+            }

I suggest to remove Boolean.TRUE and Boolean.FALSE from the variables.