Skip to content

Commit

Permalink
Fix typo StringBuilder.setLenght -> setLength
Browse files Browse the repository at this point in the history
Signed-off-by: Arthit Suriyawongkul <[email protected]>
  • Loading branch information
bact authored and goneall committed Feb 1, 2025
1 parent fbbe979 commit df72b1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/javaTemplates/ToStringWithPropertiesTemplate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
{{/nonOptional}}
sb.append(" ");
{{/toStringProperties}}
sb.setLenght(sb.length() == 0 ? 0 : sb.length()-1);
sb.setLength(sb.length() == 0 ? 0 : sb.length()-1);
return sb.toString();
} catch (InvalidSPDXAnalysisException e) {
return "Error: "+e.getMessage();
}
return "Error: " + e.getMessage();
}

0 comments on commit df72b1d

Please sign in to comment.