Skip to content

Commit c62e584

Browse files
committed
Refactor AppManager to be accessible from Application only.
1 parent 7388640 commit c62e584

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/fr/rabian/ovhApi/beans/AppManager.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ public class AppManager {
3838
* Creates an instance of AppManager
3939
*
4040
* @param app Application to manage
41-
* @param ep Endpoint to use
4241
*/
43-
public AppManager(Application app, Endpoint ep) {
42+
protected AppManager(Application app) {
4443
this.app = app;
45-
this.ep = ep;
44+
this.ep = app.getEndpoint();
4645
ts = new Timestamps(ep);
4746
}
4847

0 commit comments

Comments
 (0)