mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
Disable formatter ranges in formatter off/on tags [CR-IC-2916]
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import java.util.*;
|
||||
|
||||
public class CollectionTest {
|
||||
/**
|
||||
* Normal JavaDoc, can
|
||||
* be
|
||||
* formatted.
|
||||
* @param args
|
||||
* Arguments.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
int size;
|
||||
HashSet collection = new HashSet();
|
||||
@@ -22,4 +29,34 @@ public class CollectionTest {
|
||||
System.out.print(iterator.next() + " ");
|
||||
}
|
||||
}
|
||||
|
||||
// @formatter:off
|
||||
/**
|
||||
* And please don't touch this:
|
||||
* @param x
|
||||
* These are my nice comments.
|
||||
* @param y
|
||||
* And yet another one.
|
||||
*/
|
||||
public void doSomething(String x, String y) {
|
||||
}
|
||||
// @formatter:on
|
||||
|
||||
/**
|
||||
* It's OK to format this comment.
|
||||
* @param z
|
||||
* Parameter Z.
|
||||
*/
|
||||
public void doSomethingElse(String z) {}
|
||||
|
||||
// @formatter:off
|
||||
/**
|
||||
* This comment must be preserved too.
|
||||
* @param i
|
||||
* Parameter I.
|
||||
* @param j
|
||||
* Parameter J.
|
||||
*/
|
||||
public void evenMore(int i, int j) {}
|
||||
// @formatter:on
|
||||
}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
import java.util.*;
|
||||
|
||||
public class CollectionTest {
|
||||
/**
|
||||
* Normal JavaDoc, can
|
||||
* be
|
||||
* formatted.
|
||||
*
|
||||
* @param args Arguments.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
int size;
|
||||
HashSet collection = new HashSet();
|
||||
@@ -22,4 +29,35 @@ public class CollectionTest {
|
||||
System.out.print(iterator.next() + " ");
|
||||
}
|
||||
}
|
||||
|
||||
// @formatter:off
|
||||
/**
|
||||
* And please don't touch this:
|
||||
* @param x
|
||||
* These are my nice comments.
|
||||
* @param y
|
||||
* And yet another one.
|
||||
*/
|
||||
public void doSomething(String x, String y) {
|
||||
}
|
||||
// @formatter:on
|
||||
|
||||
/**
|
||||
* It's OK to format this comment.
|
||||
*
|
||||
* @param z Parameter Z.
|
||||
*/
|
||||
public void doSomethingElse(String z) {
|
||||
}
|
||||
|
||||
// @formatter:off
|
||||
/**
|
||||
* This comment must be preserved too.
|
||||
* @param i
|
||||
* Parameter I.
|
||||
* @param j
|
||||
* Parameter J.
|
||||
*/
|
||||
public void evenMore(int i, int j) {}
|
||||
// @formatter:on
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user