Skip to content

Commit

Permalink
Reorder some methods
Browse files Browse the repository at this point in the history
Fixes: SE-13745
  • Loading branch information
jmuscireum committed Nov 18, 2024
1 parent 098b7cc commit 7efab2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ protected void verifyPath(CompilationContext context, Position position, String
}
}

@Override
public String getDescription() {
return "Creates a base64 representation of the given resource to be included in IMG tags or CSS files";
}

@Override
protected byte[] getContent(String path) {
if (!path.startsWith("/assets/")) {
Expand All @@ -56,4 +51,9 @@ protected byte[] getContent(String path) {
public String getName() {
return "base64Resource";
}

@Override
public String getDescription() {
return "Creates a base64 representation of the given resource to be included in IMG tags or CSS files";
}
}
10 changes: 5 additions & 5 deletions src/main/java/sirius/pasta/noodle/macros/SvgResourceMacro.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ protected void verifyPath(CompilationContext context, Position position, String
}
}

@Override
public String getDescription() {
return "Creates a UTF-8 representation of the given SVG resource, possibly changed to the given tint color, to be included in IMG tags or CSS files";
}

@Override
protected Document getSvgDocument(String path) {
if (!path.startsWith("/assets/")) {
Expand All @@ -64,4 +59,9 @@ protected Document getSvgDocument(String path) {
public String getName() {
return "svgResource";
}

@Override
public String getDescription() {
return "Creates a UTF-8 representation of the given SVG resource, possibly changed to the given tint color, to be included in IMG tags or CSS files";
}
}

0 comments on commit 7efab2b

Please sign in to comment.