cafejojo / schaapi

🐑 Safe Changes for APIs

Home Page:https://cafejojo.org/schaapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uninitialized variable in generated pattern

gandreadis opened this issue · comments

    public static void pattern16(Weigher var0, Weigher var1, CacheBuilder var2, long var3) {
        CacheBuilder var5;
        if (var0 != null) {
            var5 = var2.weigher(var1);
        }

        var5.maximumWeight(var3);
    }

var5 here doesn't have to be initialized at the last line of the method, causing a java.lang.VerifyError during the EvoSuite run.