File tree Expand file tree Collapse file tree
java/java.disco/src/org/netbeans/modules/java/disco Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ public Optional<Distribution> getDistribution(String text) {
135135 .findFirst ();
136136 }
137137
138- public synchronized PkgInfo getPkgInfo (String ephemeralId , Semver javaVersion ) {
139- return getDisco ().getPkgInfoByEphemeralId ( ephemeralId , javaVersion );
138+ public synchronized PkgInfo getPkgInfoByPkgId (String id , Semver javaVersion ) {
139+ return getDisco ().getPkgInfoByPkgId ( id , javaVersion );
140140 }
141141
142142 public synchronized Future <?> downloadPkg (PkgInfo pkgInfo , String absolutePath ) throws InterruptedException {
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ private void downloadBundle(File destinationFolder) {
114114 setStatus ("Preparing..." );
115115 submit (() -> {
116116 Pkg bundle = state .selection .get (discoClient );
117- return discoClient .getPkgInfo (bundle .getEphemeralId (), bundle .getJavaVersion ());
117+ return discoClient .getPkgInfoByPkgId (bundle .getId (), bundle .getJavaVersion ());
118118 }).then (pkgInfo -> {
119119 download = new File (destinationFolder , pkgInfo .getFileName ());
120120 String path = download .getAbsolutePath ();
You can’t perform that action at this time.
0 commit comments