Skip to content

Commit

Permalink
update annotations of methods already included in AEM 6.5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Aug 20, 2024
1 parent c8b56f3 commit 08fa09f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
17 changes: 7 additions & 10 deletions core/src/main/java/io/wcm/testing/mock/aem/dam/MockAsset.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,27 +319,24 @@ public void initAssetState() {
throw new UnsupportedOperationException();
}

// AEM 6.5
@SuppressWarnings("unused")
public Rendition addRendition(String arg0, Binary arg1, String arg2) {
@Override
public Rendition addRendition(String name, Binary binary, String mimeType) {
throw new UnsupportedOperationException();
}

// AEM 6.5
@SuppressWarnings("unused")
public Rendition addRendition(String arg0, Binary arg1, Map<String, Object> arg2) {
@Override
public Rendition addRendition(String name, Binary binary, Map<String, Object> arg2) {
throw new UnsupportedOperationException();
}

// AEM 6.5.5
@SuppressWarnings("unused")
public Revision createRevision(String arg0, String arg1, User arg2) {
@Override
public Revision createRevision(String name, String binary, User arg2) {
throw new UnsupportedOperationException();
}

// AEM Cloud
@SuppressWarnings("unused")
public Rendition setRendition(String arg0, Binary arg1, String arg2) {
public Rendition setRendition(String name, Binary binary, String mimeType) {
throw new UnsupportedOperationException();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public boolean equals(Object obj) {

// --- unsupported operations ---

// AEM 6.5
@Override
public Binary getBinary() {
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ public void remove(Node node) {
throw new UnsupportedOperationException();
}

// AEM 6.5.5
@Override
@SuppressWarnings("unused")
public boolean hasNode(String arg0) {
throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit 08fa09f

Please sign in to comment.