Java
Locally used constants where used or at top of class

by Michael

class Clazz {
    private static final int LOCAL_CONSTANT_1 = 1;

    int method1() {
        return LOCAL_CONSTANT_1;
    }

    private static final int LOCAL_CONSTANT_2 = 2;

    int method2() {
        return LOCAL_CONSTANT_2;
    }
}

class Clazz {
    private static final int LOCAL_CONSTANT_1 = 1;
    private static final int LOCAL_CONSTANT_2 = 2;

    int method1() {
        return LOCAL_CONSTANT_1;
    }

    int method2() {
        return LOCAL_CONSTANT_2;
    }
}