Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
briar
briar
Commits
0d7e4fea
Verified
Commit
0d7e4fea
authored
Oct 29, 2018
by
akwizgran
Browse files
Throw AssertionError to make intent clearer.
parent
eb3983f6
Pipeline
#2626
passed with stage
in 9 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bramble-api/src/main/java/org/briarproject/bramble/util/StringUtils.java
View file @
0d7e4fea
...
...
@@ -47,7 +47,7 @@ public class StringUtils {
try
{
return
s
.
getBytes
(
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
AssertionError
(
e
);
}
}
...
...
@@ -63,7 +63,7 @@ public class StringUtils {
try
{
return
decoder
.
decode
(
buffer
).
toString
();
}
catch
(
CharacterCodingException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
AssertionError
(
e
);
}
}
...
...
bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/ModemImpl.java
View file @
0d7e4fea
...
...
@@ -476,7 +476,7 @@ class ModemImpl implements Modem, WriteHandler, SerialPortEventListener {
try
{
return
decoder
.
decode
(
buffer
).
toString
();
}
catch
(
CharacterCodingException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
AssertionError
(
e
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment