package jfdi.logic.commands;

import jfdi.logic.events.ShowDirectoryEvent;
import jfdi.logic.interfaces.Command;
import jfdi.storage.apis.MainStorage;

/**
 * @author Liu Xinan
 */
public class DirectoryCommand extends Command {

    private DirectoryCommand(Builder builder) {}

    public static class Builder {

        public DirectoryCommand build() { return new DirectoryCommand(this); }

    }

    @Override
    public void execute() {
        String pwd = MainStorage.getInstance().getCurrentDirectory();
        eventBus.post(new ShowDirectoryEvent(pwd));
    }
}

package jfdi.logic.commands;

import jfdi.logic.events.ShowDirectoryEvent;
import jfdi.logic.interfaces.Command;
import jfdi.storage.apis.MainStorage;

/**
 * @author Liu Xinan
 */
public class DirectoryCommand extends Command {

    private DirectoryCommand(Builder builder) {}

    public static class Builder {

        public DirectoryCommand build() {
            return new DirectoryCommand(this);
        }

    }

    @Override
    public void execute() {
        String pwd = MainStorage.getInstance().getCurrentDirectory();
        eventBus.post(new ShowDirectoryEvent(pwd));
    }
}

Fix some style