package com.suse.saltstack.netapi.datatypes;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * Representation of args and kwargs.
 */
public class Arguments {

    private List<Object> args;
    private Map<String, Object> kwargs;

    public Arguments() {
        args = new ArrayList<>();
        kwargs = new LinkedHashMap<>();
    }

    public List<Object> getArgs() {
        return args;
    }

    public Map<String, Object> getKwargs() {
        return kwargs;
    }

    @Override
    public String toString() {
        return "Arguments{" +
                "args=" + args +
                ", kwargs=" + kwargs +
                '}';
    }
}

@@ -229,16 +229,22 @@
 private 
+final 
 List%3CObj
@@ -248,24 +248,44 @@
 Object%3E args
+ = new ArrayList%3C%3E()
 ;%0A    privat
@@ -286,16 +286,22 @@
 private 
+final 
 Map%3CStri
@@ -315,84 +315,8 @@
 ect%3E
- kwargs;%0A%0A    public Arguments() %7B%0A        args = new ArrayList%3C%3E();%0A       
  kwa
@@ -343,22 +343,16 @@
 Map%3C%3E();
-%0A    %7D
 %0A%0A    pu

Simplify datatypes.Arguments class