Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit c82a4dc

Browse files
Clément Denistangiel
authored andcommitted
Add AuthScopeDescriptions to fetch updated scopes automatically
Move scopeDescriptions.properties to DiscoveryGenerator packge
1 parent be323a2 commit c82a4dc

File tree

5 files changed

+156
-71
lines changed

5 files changed

+156
-71
lines changed

endpoints-framework/src/main/java/com/google/api/server/spi/discovery/DiscoveryGenerator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@
6767
import java.net.MalformedURLException;
6868
import java.net.URL;
6969
import java.util.ArrayList;
70-
import java.util.LinkedHashMap;
7170
import java.util.Collection;
71+
import java.util.LinkedHashMap;
7272
import java.util.List;
7373
import java.util.Map;
7474
import java.util.Properties;
7575
import java.util.Set;
76-
import java.util.SortedSet;
7776
import java.util.TreeMap;
7877
import java.util.TreeSet;
7978

@@ -98,7 +97,7 @@ public class DiscoveryGenerator {
9897
private static Map<String, String> loadScopeDescriptions() {
9998
try {
10099
Properties properties = new Properties();
101-
URL resourceFile = Resources.getResource("scopeDescriptions.properties");
100+
URL resourceFile = Resources.getResource(DiscoveryGenerator.class, "scopeDescriptions.properties");
102101
InputStream inputStream = resourceFile.openStream();
103102
properties.load(inputStream);
104103
inputStream.close();

0 commit comments

Comments
 (0)