Detector: | MuDetectOPAL_180312 |
Target: | project ' synthetic_survey ' versionjsl |
Misuse: | misuse ' pack-1 ' |
Tags: |
Details about the known misuse from the MUBench dataset.
Description: | Calls JFrame.setVisible(true) before JFrame.pack(). This may lead to undesired effects, such as the window being moved to the default plattform location. |
Fix Description: | Call JFrame.pack() before JFrame.setVisible(true). |
Violation Types: |
|
In File: | mubench/examples/survey/JFramePack.java |
In Method: | packAfterShowHasNoEffect(JFrame) |
Code with Misuse: |
|
Code with Pattern(s): |
|