- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for AcceptedApiChange (0.21 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChange.groovy
* limitations under the License. */ package gradlebuild.binarycompatibility import groovy.transform.Immutable import groovy.transform.ToString @Immutable @ToString class AcceptedApiChange { String type String member String acceptation List<String> changes ApiChange toApiChange() { return new ApiChange(type, member, changes ?: []) }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 952 bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt
} } private fun findMismatches(originalChanges: List<AcceptedApiChange>, sortedChanges: List<AcceptedApiChange>): List<AcceptedApiChange> { return originalChanges.filterIndexed { index, acceptedApiChange -> sortedChanges[index] != acceptedApiChange } } private fun buildErrorMessage(formattedMismatches: Map<File, String>): String {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt
} /** * Sorts the given list of [AcceptedApiChange]s by type and member. * <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 }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2.9K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy
* limitations under the License. */ package gradlebuild.binarycompatibility.rules import com.google.gson.Gson import com.google.gson.stream.JsonWriter import gradlebuild.binarycompatibility.AcceptedApiChange import gradlebuild.binarycompatibility.AcceptedApiChanges import gradlebuild.binarycompatibility.ApiChange import gradlebuild.binarycompatibility.BinaryCompatibilityRepository
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:30:48 UTC 2024 - 10.4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChanges.groovy
acceptedApiChanges.acceptedChanges = [:] for (String jsonText : jsonTexts) { def json = new Gson().fromJson(jsonText, new TypeToken<Map<String, List<AcceptedApiChange>>>() {}.type) Map<ApiChange, String> acceptedChanges = json.acceptedApiChanges.collectEntries { jsonChange -> [(jsonChange.toApiChange()): jsonChange.acceptation] }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 1.9K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt
formatChanges(sortChanges(it.value)) }.forEach { it.key.bufferedWriter().use { out -> out.write(it.value) } } } private fun formatChanges(changes: List<AcceptedApiChange>): String { val gson: Gson = GsonBuilder().setPrettyPrinting().create() val initialString = gson.toJson(AcceptedApiChanges(changes)) return adjustIndentation(initialString) + "\n" }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2K bytes - Viewed (0)