Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 68a82be

Browse filesBrowse files
committed
rename 'getCachedAssets' to 'assets' (bare property name as getter))
1 parent 2676ef2 commit 68a82be
Copy full SHA for 68a82be

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎src/main/java/org/kohsuke/github/GHRelease.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRelease.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public GHAsset uploadAsset(String filename, InputStream stream, String contentTy
261261
*/
262262
@Deprecated
263263
@Preview
264-
public List<GHAsset> getCachedAssets() {
264+
public List<GHAsset> assets() {
265265
return assets;
266266
}
267267

@@ -272,7 +272,7 @@ public List<GHAsset> getCachedAssets() {
272272
* @throws IOException
273273
* the io exception
274274
* @deprecated The behavior of this method will change in a future release. It will then provide cached assets as
275-
* provided by {@link #getCachedAssets()}. Use {@link #listAssets()} instead to fetch up-to-date
275+
* provided by {@link #assets()}. Use {@link #listAssets()} instead to fetch up-to-date
276276
* information of assets.
277277
*/
278278
@Deprecated

‎src/test/java/org/kohsuke/github/LifecycleTest.java

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/LifecycleTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ private void updateAsset(GHRelease release, GHAsset asset) throws IOException {
5050

5151
private void deleteAsset(GHRelease release, GHAsset asset) throws IOException {
5252
asset.delete();
53-
assertEquals(0, release.getCachedAssets().size());
53+
assertEquals(0, release.assets().size());
5454
}
5555

5656
private GHAsset uploadAsset(GHRelease release) throws IOException {
5757
GHAsset asset = release.uploadAsset(new File("LICENSE.txt"), "application/text");
5858
assertNotNull(asset);
59-
List<GHAsset> cachedAssets = release.getCachedAssets();
59+
List<GHAsset> cachedAssets = release.assets();
6060
assertEquals(0, cachedAssets.size());
6161
List<GHAsset> assets = release.getAssets();
6262
assertEquals(1, assets.size());

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.