Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7d02325 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "aslgen fix coding conventions for unused result to allow it to build in...

Merge "aslgen fix coding conventions for unused result to allow it to build in Google3 for copybara." into main
parents 1aa48f9e 98d06c5b
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ public class AppInfoTest {
    @Test
    public void testAllFieldsValidV1() throws Exception {
        System.out.println("starting testAllFieldsValidV1.");
        var unused =
                new AppInfoFactory()
                        .createFromOdElement(
                                TestUtils.getElementFromResource(
@@ -133,7 +134,7 @@ public class AppInfoTest {
                    TestUtils.getElementFromResource(
                            Paths.get(APP_INFO_OD_PATH, ALL_FIELDS_VALID_V1_FILE_NAME));
            TestUtils.removeOdChildEleWithName(appInfoEle, optField);
            new AppInfoFactory().createFromOdElement(appInfoEle, 1L);
            var unused = new AppInfoFactory().createFromOdElement(appInfoEle, 1L);
        }
    }

@@ -202,7 +203,7 @@ public class AppInfoTest {
                            Paths.get(APP_INFO_HR_PATH, ALL_FIELDS_VALID_FILE_NAME));
            ele.removeAttribute(optField);
            AppInfo appInfo = new AppInfoFactory().createFromHrElement(ele, DEFAULT_VERSION);
            appInfo.toOdDomElement(TestUtils.document());
            var unused = appInfo.toOdDomElement(TestUtils.document());
        }

        for (String optField : OPTIONAL_FIELD_NAMES_OD) {
@@ -211,7 +212,7 @@ public class AppInfoTest {
                            Paths.get(APP_INFO_OD_PATH, ALL_FIELDS_VALID_FILE_NAME));
            TestUtils.removeOdChildEleWithName(ele, optField);
            AppInfo appInfo = new AppInfoFactory().createFromOdElement(ele, DEFAULT_VERSION);
            appInfo.toHrDomElement(TestUtils.document());
            var unused = appInfo.toHrDomElement(TestUtils.document());
        }
    }

+2 −2
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ public class DeveloperInfoTest {
            developerInfoEle.removeAttribute(optField);
            DeveloperInfo developerInfo =
                    new DeveloperInfoFactory().createFromHrElement(developerInfoEle);
            developerInfo.toOdDomElement(TestUtils.document());
            var unused = developerInfo.toOdDomElement(TestUtils.document());
        }

        for (String optField : OPTIONAL_FIELD_NAMES_OD) {
@@ -109,7 +109,7 @@ public class DeveloperInfoTest {
            TestUtils.removeOdChildEleWithName(developerInfoEle, optField);
            DeveloperInfo developerInfo =
                    new DeveloperInfoFactory().createFromOdElement(developerInfoEle);
            developerInfo.toHrDomElement(TestUtils.document());
            var unused = developerInfo.toHrDomElement(TestUtils.document());
        }
    }

+2 −2
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ public class SecurityLabelsTest {
                            Paths.get(SECURITY_LABELS_HR_PATH, ALL_FIELDS_VALID_FILE_NAME));
            ele.removeAttribute(optField);
            SecurityLabels securityLabels = new SecurityLabelsFactory().createFromHrElement(ele);
            securityLabels.toOdDomElement(TestUtils.document());
            var unused = securityLabels.toOdDomElement(TestUtils.document());
        }
        for (String optField : OPTIONAL_FIELD_NAMES_OD) {
            var ele =
@@ -72,7 +72,7 @@ public class SecurityLabelsTest {
                            Paths.get(SECURITY_LABELS_OD_PATH, ALL_FIELDS_VALID_FILE_NAME));
            TestUtils.removeOdChildEleWithName(ele, optField);
            SecurityLabels securityLabels = new SecurityLabelsFactory().createFromOdElement(ele);
            securityLabels.toHrDomElement(TestUtils.document());
            var unused = securityLabels.toHrDomElement(TestUtils.document());
        }
    }