Skip to content

Commit cafcd6b

Browse files
committed
2464: Static fix again
1 parent cdfc33d commit cafcd6b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/main/java/com/magento/idea/magento2uct/execution/configurations/UctSettingsEditor.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@
4242
import org.jdesktop.swingx.JXHyperlink;
4343
import org.jetbrains.annotations.NotNull;
4444

45-
@SuppressWarnings({"PMD.TooManyFields", "PMD.ExcessiveImports"})
46-
public class UctSettingsEditor extends SettingsEditor<UctRunConfiguration> { //NOPMD - suppressed TooManyMethods
45+
@SuppressWarnings({
46+
"PMD.TooManyFields",
47+
"PMD.ExcessiveImports",
48+
"PMD.TooManyMethods"
49+
})
50+
public class UctSettingsEditor extends SettingsEditor<UctRunConfiguration> {
4751

4852
private static final String LEARN_MORE_URI =
4953
"https://docs.magento.com/user-guide/getting-started.html#product-editions";

src/main/java/com/magento/idea/magento2uct/packages/SupportedVersion.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ public static List<String> fetchSupportedVersions() throws IOException {
9696
) {
9797
final StringBuilder response = new StringBuilder();
9898
String line;
99-
while ((line = reader.readLine()) != null) {//NOPMD - suppressed AssignmentInOperand
99+
while (true) {
100+
line = reader.readLine();
101+
if (line == null) {
102+
break;
103+
}
100104
response.append(line);
101105
}
102106

0 commit comments

Comments
 (0)