Skip to content

Commit

Permalink
4: Clean up code
Browse files Browse the repository at this point in the history
Task-Url: #4
  • Loading branch information
lindholm committed Nov 26, 2021
1 parent c73dc3a commit 2c4b278
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void main(String[] args) {
shell.setText("StyledText Bullet Example");
shell.setLayout(new FillLayout());
final StyledText styledText = new StyledText (shell, SWT.FULL_SELECTION | SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);
StringBuffer text = new StringBuffer();
StringBuilder text = new StringBuilder();
text.append("Here is StyledText with some bulleted lists:\n\n");
for (int i = 0; i < 4; i++) text.append("Red Bullet List Item " + i + "\n");
text.append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static String getKeyInfo( Key key){
if (key == null) {
return "{null key}";
}
StringBuffer sb = new StringBuffer(key.toString());
StringBuilder sb = new StringBuilder(key.toString());
sb.append("{Algorithm:" + key.getAlgorithm());
sb.append(",Format:" + key.getFormat());
sb.append(",Encoded:" + HexUtils.prettyHex(key.getEncoded()));
Expand All @@ -318,7 +318,7 @@ static String getCipherInfo( Cipher cipher){
if (cipher == null) {
return "{null cipher}";
}
StringBuffer sb = new StringBuffer(cipher.toString());
StringBuilder sb = new StringBuilder(cipher.toString());
sb.append("{Algorithm:" + cipher.getAlgorithm());
sb.append(",Provider:" + cipher.getProvider());
sb.append(",Parameters:" + cipher.getParameters());
Expand Down

0 comments on commit 2c4b278

Please sign in to comment.