@@ -35,33 +35,6 @@ class Mode(_enum.Enum):
3535 mode = Mode .JPYPE
3636
3737
38- def add_endpoints (* new_endpoints ):
39- """
40- DEPRECATED since v1.2.1
41- Please modify the endpoints field directly instead.
42- """
43- _logger .warning (
44- "Deprecated method call: scyjava.config.add_endpoints(). "
45- "Please modify scyjava.config.endpoints directly instead."
46- )
47- global endpoints
48- _logger .debug ("Adding endpoints %s to %s" , new_endpoints , endpoints )
49- endpoints .extend (new_endpoints )
50-
51-
52- def get_endpoints ():
53- """
54- DEPRECATED since v1.2.1
55- Please access the endpoints field directly instead.
56- """
57- _logger .warning (
58- "Deprecated method call: scyjava.config.get_endpoints(). "
59- "Please access scyjava.config.endpoints directly instead."
60- )
61- global endpoints
62- return endpoints
63-
64-
6538def add_repositories (* args , ** kwargs ) -> None :
6639 """
6740 Add one or more Maven repositories to be used by jgo for downloading dependencies.
@@ -356,3 +329,30 @@ def get_shortcuts() -> dict[str, str]:
356329 """
357330 global _shortcuts
358331 return _shortcuts
332+
333+
334+ def add_endpoints (* new_endpoints ):
335+ """
336+ DEPRECATED since v1.2.1
337+ Please modify the endpoints field directly instead.
338+ """
339+ _logger .warning (
340+ "Deprecated method call: scyjava.config.add_endpoints(). "
341+ "Please modify scyjava.config.endpoints directly instead."
342+ )
343+ global endpoints
344+ _logger .debug ("Adding endpoints %s to %s" , new_endpoints , endpoints )
345+ endpoints .extend (new_endpoints )
346+
347+
348+ def get_endpoints ():
349+ """
350+ DEPRECATED since v1.2.1
351+ Please access the endpoints field directly instead.
352+ """
353+ _logger .warning (
354+ "Deprecated method call: scyjava.config.get_endpoints(). "
355+ "Please access scyjava.config.endpoints directly instead."
356+ )
357+ global endpoints
358+ return endpoints
0 commit comments