Skip to content
Snippets Groups Projects
Commit c3c4af1b authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

prefer using ellipses to arrays

parent 10d3c0de
Branches
Tags 1.55.0
No related merge requests found
...@@ -82,11 +82,12 @@ public class ConfigParser { ...@@ -82,11 +82,12 @@ public class ConfigParser {
/** /**
* Parse a config file * Parse a config file
* *
* @param content String * @param configName
* @return Configuration * @param content
* @return
* @throws FSParsingException * @throws FSParsingException
*/ */
public static Configuration parse(String configName, String[] content) throws FSParsingException { public static Configuration parse(String configName, String... content) throws FSParsingException {
configName = configName.replace(ParsingUtil.UTF8_BOM, ObjectUtils.EMPTY_STRING); configName = configName.replace(ParsingUtil.UTF8_BOM, ObjectUtils.EMPTY_STRING);
Configuration configuration = new Configuration(configName); Configuration configuration = new Configuration(configName);
Section currentSection = null; Section currentSection = null;
......
...@@ -46,7 +46,7 @@ public class AcquisitionSection extends Section { ...@@ -46,7 +46,7 @@ public class AcquisitionSection extends Section {
* *
* @param scanDimensions int[] * @param scanDimensions int[]
*/ */
public void setScanDimensions(int[] scanDimensions) { public void setScanDimensions(int... scanDimensions) {
StringBuilder val = new StringBuilder(ParsingUtil.BRACKET_OPENNING); StringBuilder val = new StringBuilder(ParsingUtil.BRACKET_OPENNING);
for (int i = 0; i < scanDimensions.length; i++) { for (int i = 0; i < scanDimensions.length; i++) {
val.append(scanDimensions[i]); val.append(scanDimensions[i]);
......
...@@ -33,7 +33,7 @@ public class PluginParser { ...@@ -33,7 +33,7 @@ public class PluginParser {
* @return List<Plugin> * @return List<Plugin>
* @throws FSParsingException * @throws FSParsingException
*/ */
public static Collection<Plugin> parse(String[] content) throws FSParsingException { public static Collection<Plugin> parse(String... content) throws FSParsingException {
Collection<Plugin> plugins = new ArrayList<>(); Collection<Plugin> plugins = new ArrayList<>();
if (content != null) { if (content != null) {
PluginBuffer buffer = new PluginBuffer(); PluginBuffer buffer = new PluginBuffer();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment