Skip to content

Commit ac0f15b

Browse files
committed
minor refactoring to allow import to Eclipse
1 parent 1fffc4c commit ac0f15b

File tree

11 files changed

+38
-15
lines changed

11 files changed

+38
-15
lines changed

cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v3/serviceInstances/ReactorServiceInstancesV3Test.java renamed to cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v3/serviceinstances/ReactorServiceInstancesV3Test.java

File renamed without changes.

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/serviceinstances/_DeleteServiceInstanceResponse.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase;
2626
import org.cloudfoundry.Nullable;
2727
import org.cloudfoundry.client.v2.Resource;
28-
import org.cloudfoundry.client.v2.jobs.JobEntity;
2928
import org.immutables.value.Value;
3029

3130
/**
@@ -40,7 +39,7 @@ abstract class _DeleteServiceInstanceResponse extends Resource<Object> {
4039
*/
4140
@JsonProperty("entity")
4241
@JsonTypeIdResolver(_DeleteServiceInstanceResponse.DeleteServiceInstanceResponseTypeIdResolver.class)
43-
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type", defaultImpl = JobEntity.class, visible = true)
42+
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type", defaultImpl = org.cloudfoundry.client.v2.jobs.JobEntity.class, visible = true)
4443
@Nullable
4544
public abstract Object getEntity();
4645

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/PaginatedRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public abstract class PaginatedRequest {
4747
public abstract Integer getPerPage();
4848

4949
@Value.Check
50-
void check() {
50+
public void check() {
5151
if (getPage() != null && getPage() < 1) {
5252
throw new IllegalStateException("page must be greater than or equal to 1");
5353
}

cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/identityzones/_ListIdentityZonesResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
package org.cloudfoundry.uaa.identityzones;
1818

1919

20+
import com.fasterxml.jackson.annotation.JsonProperty;
2021
import com.fasterxml.jackson.core.JsonParser;
2122
import com.fasterxml.jackson.core.type.TypeReference;
2223
import com.fasterxml.jackson.databind.DeserializationContext;
2324
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2425
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
26+
27+
import org.cloudfoundry.Nullable;
2528
import org.immutables.value.Value;
2629

2730
import java.io.IOException;
@@ -34,6 +37,7 @@
3437
@Value.Immutable
3538
abstract class _ListIdentityZonesResponse {
3639

40+
3741
/**
3842
* The identity zones
3943
*/

cloudfoundry-operations/src/main/java/org/cloudfoundry/operations/applications/DefaultApplications.java

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -693,18 +693,11 @@ public Mono<Void> pushManifestV3(PushManifestV3Request request) {
693693
.flatMap(
694694
function(
695695
(appId, packageId) ->
696-
buildAndStage(
697-
cloudFoundryClient,
698-
manifestApp,
699-
packageId)
700-
.flatMap(
701-
dropletId ->
702-
applyDropletAndWaitForRunning(
703-
cloudFoundryClient,
704-
manifestApp
705-
.getName(),
706-
appId,
707-
dropletId))))))
696+
buildAndStageAndWaitForRunning(
697+
cloudFoundryClient,
698+
manifestApp,
699+
packageId,
700+
appId)))))
708701
.then();
709702
}
710703

@@ -1157,6 +1150,21 @@ private static Mono<Void> bindServices(
11571150
.then();
11581151
}
11591152

1153+
private static Mono<Void> buildAndStageAndWaitForRunning(
1154+
CloudFoundryClient cloudFoundryClient,
1155+
ManifestV3Application manifestApp,
1156+
String packageId,
1157+
String appId) {
1158+
return buildAndStage(cloudFoundryClient, manifestApp, packageId)
1159+
.flatMap(
1160+
dropletId ->
1161+
applyDropletAndWaitForRunning(
1162+
cloudFoundryClient,
1163+
manifestApp.getName(),
1164+
appId,
1165+
dropletId));
1166+
}
1167+
11601168
private static Mono<String> buildAndStage(
11611169
CloudFoundryClient cloudFoundryClient,
11621170
ManifestV3Application manifestApp,

test-log-cache/src/main/java/org/cloudfoundry/logcachetest/package-info.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424
typeImmutable = "*"
2525
)
2626
package org.cloudfoundry.logcachetest;
27+
28+
import org.immutables.value.Value;

test-service-broker/src/main/java/org/cloudfoundry/servicebroker/binding/_UnbindResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.cloudfoundry.servicebroker.binding;
1818

19+
import org.immutables.value.Value;
20+
1921
@Value.Immutable
2022
abstract class _UnbindResponse {
2123

test-service-broker/src/main/java/org/cloudfoundry/servicebroker/instance/_DeprovisionSyncResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.cloudfoundry.servicebroker.instance;
1818

19+
import org.immutables.value.Value;
20+
1921
@Value.Immutable
2022
abstract class _DeprovisionSyncResponse {
2123

test-service-broker/src/main/java/org/cloudfoundry/servicebroker/instance/_UpdateSyncResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.cloudfoundry.servicebroker.instance;
1818

19+
import org.immutables.value.Value;
20+
1921
@Value.Immutable
2022
abstract class _UpdateSyncResponse {
2123

test-service-broker/src/main/java/org/cloudfoundry/servicebroker/lastoperation/_LastOperationDeprovisionResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.cloudfoundry.servicebroker.lastoperation;
1818

19+
import org.immutables.value.Value;
20+
1921
@Value.Immutable
2022
abstract class _LastOperationDeprovisionResponse {
2123

0 commit comments

Comments
 (0)