File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/com/magento/idea/magento2plugin/actions/generation/generator Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ protected void fillAttributes(final Properties attributes) {
76
76
attributes .setProperty ("SETUP_VERSION" , moduleXmlData .getSetupVersion ());
77
77
}
78
78
79
- String sequences = this .getSequencesString (moduleXmlData .getModuleSequences ());
79
+ final String sequences = this .getSequencesString (moduleXmlData .getModuleSequences ());
80
80
if (!sequences .isEmpty ()) {
81
81
attributes .setProperty (
82
82
"SEQUENCES" ,
@@ -87,18 +87,16 @@ protected void fillAttributes(final Properties attributes) {
87
87
88
88
private String getSequencesString (final List sequences ) {
89
89
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 ]
92
92
.equals (ModuleXml .NO_SEQUENCES_LABEL );
93
93
94
94
if (noDependency ) {
95
95
return result ;
96
96
}
97
97
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 ()));
102
100
}
103
101
104
102
return result ;
You can’t perform that action at this time.
0 commit comments