@@ -531,7 +531,7 @@ public PreprocessorContext removeLocalVariable(final String name) {
531531 }
532532
533533 if (isVerbose ()) {
534- logForVerbose ("Removing local variable '" + normalized + "\ ' " );
534+ logForVerbose ("Removing local variable '" + normalized + "'" );
535535 }
536536 localVarTable .remove (normalized );
537537 return this ;
@@ -559,7 +559,7 @@ public PreprocessorContext removeGlobalVariable(final String name) {
559559 }
560560
561561 if (isVerbose ()) {
562- logForVerbose ("Removing global variable '" + normalized + "\ ' " );
562+ logForVerbose ("Removing global variable '" + normalized + "'" );
563563 }
564564
565565 globalVarTable .remove (normalized );
@@ -794,11 +794,11 @@ public File findFileInSources(final String path) throws IOException {
794794 }
795795
796796 if (result == null ) {
797- throw makeException ("Can't find file for path \ ' " + path +
798- "\ ' in preprocessing source folders, allowed usage only files in preprocessing source folders!" ,
797+ throw makeException ("Can't find file for path '" + path +
798+ "' in preprocessing source folders, allowed usage only files in preprocessing source folders!" ,
799799 null );
800800 } else if (!result .isFile ()) {
801- throw makeException ("File \ ' " + result + "\ ' is either not found or not a file" , null );
801+ throw makeException ("File '" + result + "' is either not found or not a file" , null );
802802 }
803803
804804 } else if (parentDir != null ) {
@@ -807,25 +807,24 @@ public File findFileInSources(final String path) throws IOException {
807807 } else {
808808 final List <File > setOfFoundFiles = new ArrayList <>();
809809 getSources ().stream ().map ((root ) -> new File (root .getAsFile (), path ))
810- .filter ((variant ) -> (variant .exists () && variant .isFile ())).forEachOrdered ((variant ) -> {
811- setOfFoundFiles .add (variant );
812- });
810+ .filter ((variant ) -> (variant .exists () && variant .isFile ())).forEachOrdered (
811+ setOfFoundFiles ::add );
813812
814813 if (setOfFoundFiles .size () == 1 ) {
815814 result = setOfFoundFiles .get (0 );
816815 } else if (setOfFoundFiles .isEmpty ()) {
817816 result = null ;
818817 } else {
819818 throw makeException (
820- "Found several variants for path \ ' " + path + "\ ' in different source roots" , null );
819+ "Found several variants for path '" + path + "' in different source roots" , null );
821820 }
822821
823822 if (result == null ) {
824- throw makeException ("Can't find file for path \ ' " + path +
825- "\ ' among source files registered for preprocessing." , null );
823+ throw makeException ("Can't find file for path '" + path +
824+ "' among source files registered for preprocessing." , null );
826825 } else if (!result .isFile ()) {
827- throw makeException ("File \ ' " + PreprocessorUtils .getFilePath (result ) +
828- "\ ' is either not found or not a file" , null );
826+ throw makeException ("File '" + PreprocessorUtils .getFilePath (result ) +
827+ "' is either not found or not a file" , null );
829828 }
830829 }
831830
0 commit comments