Skip to content

Commit

Permalink
feat(objectionary#757): fix all the code offences
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Oct 14, 2024
1 parent 7f8d2ea commit 34c9594
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public BytecodeMethod bytecode() {
),
exception
);
} catch (final IllegalArgumentException exception){
} catch (final IllegalArgumentException exception) {
throw new ParsingException(
String.format(
"Can't transform method '%s' to bytecode",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ void catchesMethodParsingException() {
Assertions.assertThrows(
ParsingException.class,
() -> new XmlMethod(
new XmlNode(new Xembler(
new Directives(
new BytecodeMethod(
"someMethodName"
).directives(false)
).xpath(".//o[@name='exceptions']").append(new DirectivesBytes("???"))
).xmlQuietly())
new XmlNode(
new Xembler(
new Directives(
new BytecodeMethod(
"someMethodName"
).directives(false)
).xpath(".//o[@name='exceptions']").append(new DirectivesBytes("???"))
).xmlQuietly()
)
).bytecode()
).getMessage(),
Matchers.containsString(
Expand Down

0 comments on commit 34c9594

Please sign in to comment.