Skip to content

Commit

Permalink
Cleanup parameter naming, duplicated parameters, formatting (CTERA-137).
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkins committed Jan 11, 2024
1 parent 2a44621 commit 4e7b873
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

class CteraCopyFeature extends DAVCopyFeature {

public CteraCopyFeature(final CteraSession cteraSession, final CteraSession session) {
super(cteraSession);
public CteraCopyFeature(final CteraSession session) {
super(session);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

class CteraDeleteFeature extends DAVDeleteFeature {

public CteraDeleteFeature(final CteraSession cteraSession, final CteraSession session) {
super(cteraSession);
public CteraDeleteFeature(final CteraSession session) {
super(session);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
class CteraListService extends DAVListService {
private final CteraSession cteraSession;

public CteraListService(final CteraSession cteraSession) {
super(cteraSession, new CteraAttributesFinderFeature(cteraSession));
this.cteraSession = cteraSession;
public CteraListService(final CteraSession session) {
super(session, new CteraAttributesFinderFeature(session));
this.cteraSession = session;
}
// @Override
// public void preflight(Path file) throws BackgroundException {
Expand Down
6 changes: 3 additions & 3 deletions ctera/src/main/java/ch/cyberduck/core/ctera/CteraSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ public <T> T _getFeature(final Class<T> type) {
return (T) new CteraReadFeature(this, session);
}
if(type == Write.class) {
return (T) new CteraWriteFeature(this, session);
return (T) new CteraWriteFeature(this);
}
if(type == Delete.class) {
return (T) new CteraDeleteFeature(this, session);
return (T) new CteraDeleteFeature(session);
}
if(type == Copy.class) {
return (T) new CteraCopyFeature(this, session);
return (T) new CteraCopyFeature(session);
}
return super._getFeature(type);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

class CteraWriteFeature extends DAVWriteFeature {

public CteraWriteFeature(final CteraSession cteraSession, final CteraSession session) {
super(cteraSession);
public CteraWriteFeature(final CteraSession session) {
super(session);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package ch.cyberduck.core.ctera;/*
package ch.cyberduck.core.ctera;

/*
* Copyright (c) 2002-2023 iterate GmbH. All rights reserved.
* https://cyberduck.io/
*
Expand Down

0 comments on commit 4e7b873

Please sign in to comment.