View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.blocks.needbraces;
2   
3   public class InputNeedBracesSingleLineLambda {
4       
5       static Runnable r1 = ()->String.CASE_INSENSITIVE_ORDER.equals("Hello world one!");
6       static Runnable r2 = () -> String.CASE_INSENSITIVE_ORDER.equals("Hello world two!");
7       static Runnable r3 = () ->
8           String.CASE_INSENSITIVE_ORDER.equals("Hello world two!");
9       static Runnable r4 = () -> {String.CASE_INSENSITIVE_ORDER.equals("Hello world two!");};
10  }