wmyywm / eclipse-code-formatter-intellij-plugin

Automatically exported from code.google.com/p/eclipse-code-formatter-intellij-plugin
0 stars 0 forks source link

Using Diamond Pattern with 1.7 causes method containing declaration to not be formatted, even though formatter responds without error. #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Had a declaration like this:

return new Tuple<Data, Chain>(data, postResult.getB()); 

This caused other, unformatted lines in the method to not be formatted. 
(correct spacing).

Original issue reported on code.google.com by speerh...@gmail.com on 12 Dec 2012 at 1:45

GoogleCodeExporter commented 9 years ago
could you send me your config file?

Original comment by vojta.kr...@gmail.com on 12 Dec 2012 at 1:47

GoogleCodeExporter commented 9 years ago
I've attached the format file I use most, the org.eclipse one as well as
another my team uses in xml format...

Thanks for looking into this.
Chris

On Tue, Dec 11, 2012 at 5:47 PM, <
eclipse-code-formatter-intellij-plugin@googlecode.com> wrote:

Original comment by speerh...@gmail.com on 12 Dec 2012 at 2:05

GoogleCodeExporter commented 9 years ago
it does not seems to be attached.

Original comment by vojta.kr...@gmail.com on 12 Dec 2012 at 2:06

GoogleCodeExporter commented 9 years ago
I see it in the reply, Let me try again...

On Tue, Dec 11, 2012 at 6:07 PM, <
eclipse-code-formatter-intellij-plugin@googlecode.com> wrote:

Original comment by speerh...@gmail.com on 12 Dec 2012 at 2:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Here you go...

Original comment by speerh...@gmail.com on 12 Dec 2012 at 2:26

Attachments:

GoogleCodeExporter commented 9 years ago
good. :)

Original comment by vojta.kr...@gmail.com on 12 Dec 2012 at 2:27

GoogleCodeExporter commented 9 years ago
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

those things should be 1.7

Original comment by vojta.kr...@gmail.com on 12 Dec 2012 at 2:28

GoogleCodeExporter commented 9 years ago
but anyway it seems to work good for me.

Original comment by vojta.kr...@gmail.com on 12 Dec 2012 at 2:31

GoogleCodeExporter commented 9 years ago
D'oh.  Changing settings to 1.7 fixed the issue for me too.

Original comment by speerh...@gmail.com on 12 Dec 2012 at 7:42

GoogleCodeExporter commented 9 years ago

Original comment by vojta.kr...@gmail.com on 14 Dec 2012 at 11:11