mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-29 01:40:07 +07:00
EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e6e3eaa09d
commit
123242c4b2
@@ -0,0 +1,12 @@
|
||||
// "Replace Stream API chain with loop" "true"
|
||||
|
||||
import java.util.stream.*;
|
||||
|
||||
public class Test {
|
||||
private static final String ARRAY_ELEMENT_SEPARATOR = ", ", ARRAY_START = "[", ARRAY_END = "]";
|
||||
|
||||
public static String nullSafeToString(byte[] array) {
|
||||
return IntStream.range(0, array.length).mapToObj(i -> String.valueOf(array[i]))
|
||||
.collec<caret>t(Collectors.joining(ARRAY_ELEMENT_SEPARATOR, ARRAY_START, ARRAY_END));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user