Skip to content

Commit 68a82be

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines 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

Lines 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)