Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evgeny Mandrikov
asm
Commits
f6c053c1
Commit
f6c053c1
authored
Mar 26, 2022
by
Eric Bruneton
Browse files
Fix some code smells found by SonarQube.
parent
9ea493b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
asm-analysis/src/main/java/org/objectweb/asm/tree/analysis/SourceValue.java
View file @
f6c053c1
...
...
@@ -65,7 +65,7 @@ public class SourceValue implements Value {
* short, int, float, object and array types, and 2 for long and double.
*/
public
SourceValue
(
final
int
size
)
{
this
(
size
,
new
SmallSet
<
AbstractInsnNode
>());
this
(
size
,
new
SmallSet
<>());
}
/**
...
...
asm-util/src/main/java/org/objectweb/asm/util/CheckMethodAdapter.java
View file @
f6c053c1
...
...
@@ -352,7 +352,7 @@ public class CheckMethodAdapter extends MethodVisitor {
* @param methodvisitor the method visitor to which this adapter must delegate calls.
*/
public
CheckMethodAdapter
(
final
MethodVisitor
methodvisitor
)
{
this
(
methodvisitor
,
new
HashMap
<
Label
,
Integer
>());
this
(
methodvisitor
,
new
HashMap
<>());
}
/**
...
...
@@ -462,9 +462,7 @@ public class CheckMethodAdapter extends MethodVisitor {
}
else
{
analyzer
.
analyzeAndComputeMaxs
(
"dummy"
,
this
);
}
}
catch
(
IndexOutOfBoundsException
e
)
{
throwError
(
analyzer
,
e
);
}
catch
(
AnalyzerException
e
)
{
}
catch
(
IndexOutOfBoundsException
|
AnalyzerException
e
)
{
throwError
(
analyzer
,
e
);
}
if
(
methodVisitor
!=
null
)
{
...
...
Write
Preview
Supports
Markdown
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