Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New refactoring - Use multi catch #124

Closed
JnRouvignac opened this issue May 16, 2015 · 0 comments
Closed

New refactoring - Use multi catch #124

JnRouvignac opened this issue May 16, 2015 · 0 comments
Milestone

Comments

@JnRouvignac
Copy link
Owner

Given

The following code:

        try {
            obj.throwingMethod();
        } catch (IllegalArgumentException iae) {
            iae.printStackTrace();
        } catch (IOException ioe) {
            ioe.printStackTrace();
        }

When

... automatic refactorings are applied ...

Then

Refactor the code to:

        try {
            obj.throwingMethod();
        } catch (IllegalArgumentException | IOException iae) {
            iae.printStackTrace();
        }
JnRouvignac added a commit that referenced this issue May 18, 2015
Fixed code not compiling
@JnRouvignac JnRouvignac added this to the v1.1.0 milestone May 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant