/*
 * Copyright (c) 2004-2018, University of Oslo
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 * Neither the name of the HISP project nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package org.hisp.dhis.android.core.dataset;

import org.hisp.dhis.android.core.arch.fields.FieldsHelper;
import org.hisp.dhis.android.core.data.api.Fields;

public final class DataSetCompleteRegistrationFields {

    private DataSetCompleteRegistrationFields() {}

    static String PERIOD = "period";
    static String DATA_SET = "dataSet";
    static String ORGANISATION_UNIT = "organisationUnit";
    static String ATTRIBUTE_OPTION_COMBO = "attributeOptionCombo";
    static String DATE = "date";
    static String STORED_BY = "storedBy";

    private static FieldsHelper<DataSetCompleteRegistration> fieldsHelper = new FieldsHelper<>();
    static final Fields<DataSetCompleteRegistration> allFields = Fields.<DataSetCompleteRegistration>builder().fields(
            fieldsHelper.<String>field(PERIOD),
            fieldsHelper.<String>field(DATA_SET),
            fieldsHelper.<String>field(ORGANISATION_UNIT),
            fieldsHelper.<String>field(ATTRIBUTE_OPTION_COMBO),
            fieldsHelper.<String>field(DATE),
            fieldsHelper.<String>field(STORED_BY)
    ).build();

}

@@ -1772,66 +1772,20 @@
     
-private DataSetCompleteRegi
 st
-r
 ati
-onFields() %7B%7D%0A%0A    static
+c final
  Str
@@ -1810,32 +1810,38 @@
 od%22;%0A    static 
+final 
 String DATA_SET 
@@ -1860,24 +1860,30 @@
 %0A    static 
+final 
 String ORGAN
@@ -1924,24 +1924,30 @@
 %0A    static 
+final 
 String ATTRI
@@ -1997,24 +1997,30 @@
 %0A    static 
+final 
 String DATE 
@@ -2040,16 +2040,22 @@
  static 
+final 
 String S
@@ -2176,16 +2176,17 @@
 er%3C%3E();%0A
+%0A
     stat
@@ -2629,10 +2629,62 @@
 ild();%0A%0A
+    private DataSetCompleteRegistrationFields() %7B%7D%0A%0A
 %7D%0A

Add final modifier to DataSetCompleteRegistration fields