Skip to content

Commit

Permalink
API-1822 add System.exit(0) to terminate processes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahongbynder committed Dec 6, 2023
1 parent 2254bf1 commit 2d86cd8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/bynder/sdk/sample/BrandsSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.bynder.sdk.configuration.HttpConnectionSettings;
import com.bynder.sdk.configuration.OAuthSettings;
import com.bynder.sdk.model.Brand;
import com.bynder.sdk.model.oauth.Token;
import com.bynder.sdk.service.BynderClient;
import com.bynder.sdk.service.asset.AssetService;
import com.bynder.sdk.service.oauth.OAuthService;
Expand Down Expand Up @@ -73,5 +74,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
LOG.info("Brand Description: " + brand.getDescription());
}
}
System.exit(0);
}
}
1 change: 1 addition & 0 deletions src/main/java/com/bynder/sdk/sample/CollectionsSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
LOG.info("media id: " + mediaId);
}
}
System.exit(0);
}
}
1 change: 1 addition & 0 deletions src/main/java/com/bynder/sdk/sample/MediaSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
MediaDeleteQuery mediaDeleteQuery = new MediaDeleteQuery(mediaToRemove);
LOG.info("Removing media id: " + mediaToRemove);
assetService.deleteMedia(mediaDeleteQuery).blockingSingle();
System.exit(0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
}
}
}
System.exit(0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
}
}
}
System.exit(0);
}
}
1 change: 1 addition & 0 deletions src/main/java/com/bynder/sdk/sample/TagsSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
LOG.info("Asset Tag Media Count: " + assetTag.getMediaCount());
}
}
System.exit(0);
}
}
1 change: 1 addition & 0 deletions src/main/java/com/bynder/sdk/sample/UploadSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
if (saveMediaResponse.getSuccess()) {
LOG.info("Asset Uploaded Successfully: " + saveMediaResponse.getMediaId());
}
System.exit(0);
}
}
1 change: 1 addition & 0 deletions src/main/java/com/bynder/sdk/sample/UsageSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ public static void main(final String[] args) throws URISyntaxException, IOExcept
LOG.info("Deleting asset usage id: " + deleteAssetUsageId);
assetService.deleteUsage(usageDeleteQuery);
}
System.exit(0);
}
}

0 comments on commit 2d86cd8

Please sign in to comment.