Lets you control miscellaneous separation settings.
If enabled, retains up to the given number of blank lines found in the original source. Note that Jalopy still takes your other blank lines settings into account.
Note that if you disable this option, all original blank lines will be ignored!
Example 2.673. Source code with blank lines to separate declaration sections
aMVString = new MultiValueString("abc"); ¶ System.out.println("MV = "+aMVString); ¶ System.out.println("MV0 = "+aMVString.extract(0)); System.out.println("MV1 = "+aMVString.extract(1)); System.out.println("MV2 = "+aMVString.extract(2)); System.out.println("");
If this feature is left disabled, Jalopy will print the individual lines according to the current blank lines settings but won't try to keep any blank lines.
If enabled, retains up to the given number of blank lines found in the original source file between header (and footer) comments.
This option is only signficant when you enable the header/footer feature and specify a multi-header template, without enabling the override mode.
Since 1.7
Example 2.674. Source code with blank lines to separate headers
/* * Foo.java * * $Header: //depot/jalopy_main/jalopy-doc/src/xdocs/manual/core-printer-separation.xml#12 $ */ ¶ /* * Copyright (c) 2002 FooBar, Inc. All rights reserved. * * This software is the confidential and proprietary information * of FooBar, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only * in accordance with the terms of the license agreement you * entered into with FooBar, Inc. */ package com.foobar.lemon;
When enabled, blank lines around method declarations in interfaces and abstract classes are removed. If left disabled, blank lines will be printed according to the blank lines settings for methods (see "Blank lines after methods").
Since 1.2
Example 2.675. Method prototypes
interface foo { public void method1(); public void method2(); public void method3(); }
Example 2.676. Method prototypes without blank lines
interface foo { public void method1(); public void method2(); public void method3(); }
When enabled, the "Blank Lines before control statements" option is ignored for break statements within switch blocks.
Since 1.3
Example 2.677. 1 blank lines before control statements
switch (number) { case 1: System.out.println(); break; default: System.out.println(); break; }
Example 2.678. 1 blank lines before control statements, but option ignored
switch (number) { case 1: System.out.println(); break; default: System.out.println(); break; }
When enabled, the "Blank Lines before blocks" option is ignored within switch blocks.
Since 1.3