Gangmax Blog

自由之思想,独立之精神

An Example of Coding Without Using Brain

| Comments

ExecutableMethods.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
private MSTVolume getMSTVolumeForGetVolume() {
    MSTVolume mstVolume = PoolManager.getVolumeForGetVolume();
    if (mstVolume == null) {
        return null;
    }

    return mstVolume;
}

private MSTVolume getMSTVolumeForGetSnapshot() {
    MSTVolume mstVolume = PoolManager.getVolumeForDeleteSnap();
    if (mstVolume == null) {
        return null;
    }

    return mstVolume;
}

private MSTVolume getMSTVolumeForGetExportGroup() {
    MSTVolume mstVolume = PoolManager.getVolumeForUnExport();
    if (mstVolume == null) {
        return null;
    }

    return mstVolume;
}

private MSTVolume getMSTVolumeForGetExports() {
    MSTVolume mstVolume = PoolManager.getVolumeForUnExport();
    if (mstVolume == null) {
        return null;
    }

    return mstVolume;
}

Actually none of the methods above should ever exist…

Comments