[Demonstration 1]

[Buggy Method]
@SuppressWarnings("unchecked")
private static <T> T getPlugin(String pluginName, String className) {
    Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin(pluginName);
    try {
        Class<?> testClass = Class.forName(className);
        if (testClass.isInstance(plugin) && plugin.isEnabled()) {
            LoggerUtil.getInstance().info("Found plugin: " + plugin.getDescription().getName());
            return (T) plugin;
        }
    } catch (ClassNotFoundException e) {
        LoggerUtil.getInstance().debug("Did not find plugin: " + pluginName);
    }
    return null;
}

[Buggy Hunk]
if (testClass.isInstance(plugin) && plugin.isEnabled()) {

[Patch]
if (testClass.isInstance(plugin)) {

[Demonstration 2]

[Buggy Method]
@Override
public void getGoldData(String type) {
    mType = type;
    currentPage = 0;
    totalList.clear();
    Observable<List<GoldListBean>> list = mRetrofitHelper.fetchGoldList(type, NUM_EACH_PAGE, currentPage++).compose(RxUtil.<GoldHttpResponse<List<GoldListBean>>>rxSchedulerHelper()).compose(RxUtil.<List<GoldListBean>>handleGoldResult());
    Calendar cal = Calendar.getInstance();
    cal.add(Calendar.DATE, -3);
    Observable<List<GoldListBean>> hotList = mRetrofitHelper.fetchGoldHotList(type, new SimpleDateFormat("yyyy-MM-dd").format(cal.getTime()), NUM_HOT_LIMIT).compose(RxUtil.<GoldHttpResponse<List<GoldListBean>>>rxSchedulerHelper()).compose(RxUtil.<List<GoldListBean>>handleGoldResult());
    Subscription rxSubscription = Observable.concat(hotList, list).subscribe(new Action1<List<GoldListBean>>() {

        @Override
        public void call(List<GoldListBean> goldListBean) {
            if (isHotList) {
                isHotList = false;
                totalList.addAll(goldListBean);
            } else {
                isHotList = true;
                totalList.addAll(goldListBean);
                mView.showContent(totalList);
            }
        }
    }, new Action1<Throwable>() {

        @Override
        public void call(Throwable throwable) {
            LogUtil.d(throwable.toString());
        }
    });
    addSubscrebe(rxSubscription);
}

[Buggy Hunk]
LogUtil.d(throwable.toString());

[Patch]
mView.showError("数据加载失败ヽ(≧Д≦)ノ");

[Demonstration 3]

[Buggy Method]
static MoneyFactory getInstance() {
    return factory;
}

[Buggy Hunk]
static MoneyFactory getInstance() {

[Patch]
public static MoneyFactory getInstance() {