Commit f6c053c1 authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Fix some code smells found by SonarQube.

parent 9ea493b9
......@@ -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<>());
}
/**
......
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment