multipart-message nevyn bengtsson's blog

featured articles 🦄, about, archive, tags

Software Archaeology Find #3: Another Kind of Object Orientation

public void login(Actor pactor) {
    mActor = pactor;

    ClientLogin loginActor = new ClientLogin();
    loginActor.setUsername(pactor.getUsername());
    loginActor.setPassword(pactor.getPassword());
    loginActor = (ClientLogin) pactor;

    Actor ac = new Actor();
    ac.setUsername(loginActor.getUsername());
    ac.setPassword(loginActor.getPassword());
    updateActor(ac);

    //TODO: This should be uncommented for the final version
    //mClient.clientLogin(loginActor);

}

< Previous archaeology find | Next archaeology find >

Tagged software-archaeology