Skip to content

Commit

Permalink
PluginINstaller: fix retrieving remote metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Apr 13, 2022
1 parent d7c0c0a commit 2e65928
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/org/omegat/util/PluginInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Enumeration;
import java.util.HashSet;
Expand All @@ -44,13 +45,13 @@
import java.util.Scanner;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.function.Predicate;
import java.util.jar.Manifest;

import javax.swing.JOptionPane;

import org.apache.commons.io.FileUtils;

import org.omegat.core.Core;
import org.omegat.core.data.PluginInformation;
import org.omegat.filters2.master.PluginUtils;
Expand Down Expand Up @@ -249,8 +250,8 @@ private static Map<String, PluginInformation> getInstalledPlugins() {
* Download plugin list from github repository.
* @return set of PluginInformation
*/
private static Set<PluginInformation> getPluginsList() {
Set<PluginInformation> pluginInfo = new TreeSet<>();
private static List<PluginInformation> getPluginsList() {
List<PluginInformation> pluginInfo = new ArrayList<>();
String raw_value;
try {
raw_value = HttpConnectionUtils.getURL(new URL(LIST_URL));
Expand Down

0 comments on commit 2e65928

Please sign in to comment.