Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sortChanges (0.07 sec)

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

     */
    @CacheableTask
    abstract class SortAcceptedApiChangesTask : AbstractAcceptedApiChangesMaintenanceTask() {
    
        @TaskAction
        fun execute() {
            loadChanges().mapValues {
                formatChanges(sortChanges(it.value))
            }.forEach {
                it.key.bufferedWriter().use { out -> out.write(it.value) }
            }
        }
    
        private
        fun formatChanges(changes: List<AcceptedApiChange>): String {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt

        @TaskAction
        fun execute() {
            val originalChanges = loadChanges()
            val sortedChanges = originalChanges.mapValues {
                sortChanges(it.value)
            }
    
            val mismatches = originalChanges.mapValues {
                findMismatches(it.value, sortedChanges[it.key]!!)
            }.filterValues {
                it.isNotEmpty()
            }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt

         * <p>
         * This sort ought to remain consistent with the sort used by the [EnrichedReportRenderer].
         */
        @Suppress("KDocUnresolvedReference")
        protected
        fun sortChanges(originalChanges: List<AcceptedApiChange>) = originalChanges.toMutableList().sortedBy { it.type + '#' + it.member }
    
        @VisibleForTesting
        data class AcceptedApiChange(
            val type: String?,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top