Skip to content

Commit 390025e

Browse files
Update utils/src/main/java/com/cloud/utils/ssh/SSHKeysHelper.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a876cfb commit 390025e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/src/main/java/com/cloud/utils/ssh/SSHKeysHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ public String getPublicKey() {
131131
return null;
132132
}
133133

134-
private static void writeString(ByteArrayOutputStream out, String str) throws Exception {
134+
private static void writeString(ByteArrayOutputStream out, String str) {
135135
byte[] data = str.getBytes(StandardCharsets.UTF_8);
136136
out.write(ByteBuffer.allocate(4).putInt(data.length).array());
137137
out.write(data);
138138
}
139139

140-
private static void writeBigInt(ByteArrayOutputStream out, BigInteger value) throws Exception {
140+
private static void writeBigInt(ByteArrayOutputStream out, BigInteger value) {
141141
byte[] data = value.toByteArray();
142142
out.write(ByteBuffer.allocate(4).putInt(data.length).array());
143143
out.write(data);

0 commit comments

Comments
 (0)