Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toJSON (0.15 sec)

  1. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

        private
        fun formatChanges(changes: List<AbstractAcceptedApiChangesMaintenanceTask.AcceptedApiChange>): String {
            val gson: Gson = GsonBuilder().setPrettyPrinting().create()
            val initialString = gson.toJson(AcceptedApiChanges(changes))
            return adjustIndentation(initialString) + "\n"
        }
    
        /**
         * It appears there is no way to configure Gson to use 4 spaces instead of 2 for indentation.
         *
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 2.1K bytes
    - Viewed (0)
Back to top