Peter Lawrey - 2006-12-07

Logged In: YES
user_id=1610582
Originator: NO

If anything Emma should flag if an empty private constructor *is* called.
BTW: I have seen this unfortunately.

public class MyUtilityClass {
// DO NOT CALL THIS. (They actually explained why the private constructor has been added, and then called it anyway)
private MyUtilityClass() {
}

public static int square(int num) {
return num * num;
}

public static class MyInner {
public static int cube(int num) {
return new MyUtilityClass().square(num);
}
}
}