mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
[java formatter] c style comments formatting supported. Note, only single line comments or comments with each line starting with asterisks will be formatted, since by using /* and */ you
This commit is contained in:
+4
-4
@@ -11,10 +11,10 @@ public class Main {
|
||||
}
|
||||
|
||||
public Number testOptionalComments(Optional<MyList> strList) {
|
||||
/* optional is present */
|
||||
/*return something */
|
||||
/* optional is absent */
|
||||
/* return null*/
|
||||
/* optional is present */
|
||||
/*return something */
|
||||
/* optional is absent */
|
||||
/* return null*/
|
||||
return strList.map(myList -> myList.size() > /*too big*/ 1 ? myList.get(1) : 1.0).orElse(null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user