Detector: | MuDetectOPAL_180301 |
Target: | project 'synthetic' version pack-2 |
Misuse: | misuse 'pack-2' |
Details about the known misuse from the MUBench dataset.
Description: | Calls JFrame.setVisible(true) without calling JFrame.pack(), such that the frame is not layouted before being shown. |
Fix Description: | Call JFrame.pack() before JFrame.setVisible(true). |
Violation Types: |
|
In File: | NoPackBeforeVisible.java |
In Method: | misuse(JFrame) |
Code with Misuse: |
|
Code with Pattern(s): |
|