1 /* 2 SingleSpaceSeparator 3 validateComments = true 4 5 6 */ 7 8 package com.puppycrawl.tools.checkstyle.checks.whitespace.singlespaceseparator; 9 10 public class InputSingleSpaceSeparatorCommentsWithEmoji { 11 12 13 String s1 = "🧐😉 assa "; // ok 14 String s2 = "🧐😉" + " " + "assa "; // ok 15 String s3 = "🧐" + "🎄 "; // ok 16 String s4 17 = "da🎄"; // ok 18 private void foo(String s) { 19 if (s.equals("🤩🎄") ){ // ok 20 foo(s); 21 } 22 } 23 24 /* ok */ /*🧐*/ String s = "🎄😉"; 25 String /* 🧐 ok */ st = "🎄 assa"; // 2 violations 26 String str = "🤩🎄"; // violation 'Use a single space to separate non-whitespace characters' 27 ; String j = ""; // violation 'Use a single space to separate non-whitespace characters' 28 /** 29 * ok 30 */ 31 void foo2() { 32 /*🧐 🧐 🧐 🧐*/ /* ok */ 33 String s = "🧐 🧐"; 34 } // violation 'Use a single space to separate non-whitespace characters' 35 36 private void foo3 (String s) { // ok 37 // violation above 'Use a single space to separate non-whitespace characters' 38 if (s.substring(0).equals("da🎄")) { // ok 39 // violation above 'Use a single space to separate non-whitespace characters' 40 /*🧐 🧐 🧐*/ /* comment */ if ("🧐".isEmpty()){ // ok 41 // violation above 'Use a single space to separate non-whitespace characters' 42 } 43 } 44 45 } 46 }