Skip to content

Commit df82626

Browse files
committed
Fixing static tests
1 parent e34731a commit df82626

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/com/magento/idea/magento2plugin/actions/generation/generator/ModuleXmlGenerator.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected void fillAttributes(final Properties attributes) {
7676
attributes.setProperty("SETUP_VERSION", moduleXmlData.getSetupVersion());
7777
}
7878

79-
String sequences = this.getSequencesString(moduleXmlData.getModuleSequences());
79+
final String sequences = this.getSequencesString(moduleXmlData.getModuleSequences());
8080
if (!sequences.isEmpty()) {
8181
attributes.setProperty(
8282
"SEQUENCES",
@@ -87,18 +87,16 @@ protected void fillAttributes(final Properties attributes) {
8787

8888
private String getSequencesString(final List sequences) {
8989
String result = "";
90-
Object[] dependencies = sequences.toArray();
91-
boolean noDependency = dependencies.length == 1 && dependencies[0]
90+
final Object[] dependencies = sequences.toArray();
91+
final boolean noDependency = dependencies.length == 1 && dependencies[0]
9292
.equals(ModuleXml.NO_SEQUENCES_LABEL);
9393

9494
if (noDependency) {
9595
return result;
9696
}
9797

98-
for (Object o : dependencies) {
99-
String dependency = o.toString();
100-
String moduleSequence = "<module name=\"%s\"/>";
101-
result = result.concat(String.format(moduleSequence, dependency));
98+
for (final Object o : dependencies) {
99+
result = result.concat(String.format("<module name=\"%s\"/>", o.toString()));
102100
}
103101

104102
return result;

0 commit comments

Comments
 (0)