continuation style settings not behaving as I expect.

Issue #576 resolved
Mike Wannamaker created an issue

The continuation settings I have don't carry over if I reuse the variable on subsequent lines. See example below.

// This one indents properly
BindVariables vars = BindVariablesBuilder.create() .add() .build(); // This one doesn't indent properly vars = BindVariablesBuilder.create() .add() .build();

Comments (5)

  1. Scott Wells repo owner

    Thanks for logging. Hopefully should be a pretty trivial fix. I'll take a look for the next release.

  2. Scott Wells repo owner

    Mike, I think the original formatting may have been lost so I'm not 100% sure about the formatting issue that you're seeing. When I try to reproduce that, here's the result:

            String foo = UserInfo.getOrganizationId()
                .toUpperCase()
                .toLowerCase();
            foo = UserInfo.getOrganizationId()
                .toUpperCase()
                .toLowerCase();
    

    which appears to be formatted properly to me. Can you let me know the difference between what I've done and what you're doing?

  3. Mike Wannamaker reporter

    Hey Scott,

    What you are doing is correct. I just tried this at home, and it seems to be working for me. I'll check on Monday when I get back to work, maybe something different on that machine.

  4. Scott Wells repo owner

    Okay, I'm going to resolve this for now assuming that it may be a config issue, but if you find a consistently reproducible example, reopen with that info.

  5. Log in to comment