// Path: app/src/main/java/com/noprestige/kanaquiz/questions/Question.java
// public static final Question[] EMPTY_QUESTION_ARRAY = new Question[0];


import java.util.Map;
import java.util.TreeMap;
import static androidx.room.util.StringUtil.EMPTY_STRING_ARRAY;
import static com.noprestige.kanaquiz.questions.Question.EMPTY_QUESTION_ARRAY;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.util.AttributeSet;
import com.noprestige.kanaquiz.R;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
        {
            switch (parser.getAttributeName(i))
            {
                case "diacritics":
                    diacritics = QuestionManagement.Diacritic.valueOf(parser.getAttributeValue(i));
                    break;
                case "digraphs":
                    digraphs = parser.getAttributeValue(i);
            }
        }

        if (diacritics == null)
            throw new ParseException("Missing diacritics attribute in Section tag", parser.getLineNumber());

        int lineNumber = parser.getLineNumber();

        List<Question> currentSet = new ArrayList<>();

        for (int eventType = parser.getEventType();
                !((eventType == XmlPullParser.END_TAG) && "Section".equalsIgnoreCase(parser.getName()));
                eventType = parser.next())
        {
            if ((eventType == XmlPullParser.START_TAG) && "KanaQuestion".equalsIgnoreCase(parser.getName()))
                currentSet.add(parseXmlKanaQuestion(parser, resources));

            else if (eventType == XmlPullParser.END_DOCUMENT)
                throw new ParseException("Missing Section closing tag", lineNumber);
        }

        questionSetList.put(new QuestionManagement.SetCode(indexPoint, diacritics, digraphs),
// Path: app/src/main/java/com/noprestige/kanaquiz/questions/Question.java
// public static final Question[] EMPTY_QUESTION_ARRAY = new Question[0];


// Path: app/src/main/java/com/noprestige/kanaquiz/questions/XmlParser.java
import java.util.Map;
import java.util.TreeMap;
import static androidx.room.util.StringUtil.EMPTY_STRING_ARRAY;
import static com.noprestige.kanaquiz.questions.Question.EMPTY_QUESTION_ARRAY;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.util.AttributeSet;
import com.noprestige.kanaquiz.R;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

        {
            switch (parser.getAttributeName(i))
            {
                case "diacritics":
                    diacritics = QuestionManagement.Diacritic.valueOf(parser.getAttributeValue(i));
                    break;
                case "digraphs":
                    digraphs = parser.getAttributeValue(i);
            }
        }

        if (diacritics == null)
            throw new ParseException("Missing diacritics attribute in Section tag", parser.getLineNumber());

        int lineNumber = parser.getLineNumber();

        List<Question> currentSet = new ArrayList<>();

        for (int eventType = parser.getEventType();
                !((eventType == XmlPullParser.END_TAG) && "Section".equalsIgnoreCase(parser.getName()));
                eventType = parser.next())
        {
            if ((eventType == XmlPullParser.START_TAG) && "KanaQuestion".equalsIgnoreCase(parser.getName()))
                currentSet.add(parseXmlKanaQuestion(parser, resources));

            else if (eventType == XmlPullParser.END_DOCUMENT)
                throw new ParseException("Missing Section closing tag", lineNumber);
        }

        questionSetList.put(new QuestionManagement.SetCode(indexPoint, diacritics, digraphs),
                currentSet.toArray(EMPTY_QUESTION_ARRAY));