Generate warning for this code?

Compiler not generate any warning, code analysis not detect this unreasonable code:

final class MainFrame extends JFrame {

private static final Class CLASS = MainFrame.CLASS;

...there is a code which uses filed "CLASS"...

}


-- likeapear

Please sign in to leave a comment.