- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for fromJson (0.1 sec)
-
samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java
try (Response response = client.newCall(request).execute()) { // Deserialize HTTP response to concrete type. ResponseBody body = response.body(); List<Contributor> contributors = CONTRIBUTORS_JSON_ADAPTER.fromJson(body.source()); // Sort list by the most contributions. Collections.sort(contributors, (c1, c2) -> c2.contributions - c1.contributions); // Output list of contributors.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 2.2K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateReleasedVersions.kt
private fun updateReleasedVersionFile(releasedVersionsFile: File, currentReleasedVersion: ReleasedVersion) { val releasedVersions = releasedVersionsFile.reader().use { Gson().fromJson(it, ReleasedVersions::class.java) } val newReleasedVersions = updateReleasedVersions(currentReleasedVersion, releasedVersions)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jul 07 13:12:26 UTC 2021 - 3.5K bytes - Viewed (0) -
.github/workflows/contributor-pr.yml
unit-test: name: "${{ matrix.bucket.name }} (Unit Test)" permissions: contents: read runs-on: ubuntu-latest needs: build strategy: matrix: bucket: ${{ fromJson(needs.build.outputs.matrix) }} fail-fast: false steps: - name: git clone uses: actions/checkout@v4 - name: setup java uses: actions/setup-java@v4 with:
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Oct 11 18:32:33 UTC 2024 - 3.9K bytes - Viewed (0) -
.github/workflows/build-docs.yml
build-docs: needs: - changes - langs if: ${{ needs.changes.outputs.docs == 'true' }} runs-on: ubuntu-latest strategy: matrix: lang: ${{ fromJson(needs.langs.outputs.langs) }} steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v4
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 12:27:19 UTC 2024 - 4.1K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/FunctionalTest.kt
} class TeamCityParallelTests(val numberOfBatches: Int) : ParallelizationMethod() companion object { fun fromJson(jsonObject: JSONObject): ParallelizationMethod { val methodJsonObject = jsonObject.getJSONObject("parallelizationMethod") ?: return None return when (methodJsonObject.getString("name")) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Sep 25 06:14:43 UTC 2024 - 4.5K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt
if (response.statusCode() > 399) { throw RuntimeException("Failed to get pull requests: $uri ${response.statusCode()} ${response.body()}") } return Gson().fromJson(response.body(), klass) } private fun getUserInfo(login: String): GitHubUser { val uri = "https://api.github.com/users/$login" return invokeGitHubApi(uri, GitHubUser::class.java)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 5.6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt
assertEquals(expectedFirstJson, actualFirstJson) assertEquals(expectedSecondJson, actualSecondJson) } private fun loadChangesJson(rawText: String) = Gson().fromJson(rawText, AbstractAcceptedApiChangesMaintenanceTask.AcceptedApiChanges::class.java)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 9.7K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt
val parallelizationMethod: ParallelizationMethod ) { constructor(jsonObject: JSONObject) : this( jsonObject.getJSONArray("subprojects").map { it.toString() }, ParallelizationMethod.fromJson(jsonObject) ) fun toBuildTypeBucket(gradleSubprojectProvider: GradleSubprojectProvider): SmallSubprojectBucket = SmallSubprojectBucket( subprojects.map { gradleSubprojectProvider.getSubprojectByName(it)!! },
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Aug 29 11:04:49 UTC 2024 - 8.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java
if (!file.exists()) { return Collections.emptyList(); } try (FileReader reader = new FileReader(file)) { List<UpgradedProperty> upgradedProperties = new Gson().fromJson(reader, new TypeToken<List<UpgradedProperty>>() {}.getType()); // FIXME There should be no duplicates, yet there are some return upgradedProperties.stream() .distinct()
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Oct 02 14:20:08 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/recipes.md
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Feb 18 08:52:22 UTC 2022 - 40.2K bytes - Viewed (0)