Example #1
0
 private void check(String content) {
   if (!checked && open != null && open != ByteSearch.EMPTY) {
     if (open.match(content)) {
       log.fatalexception(
           new RuntimeException(),
           "StructuredTextFile.JsonField value matches open tag: [%s]\n%s",
           open.toString(),
           content);
     }
     if (close != null && close.exists(content)) {
       ByteSearchPosition findPos = close.findPos(content);
       if (findPos.notEmpty()) {
         log.fatalexception(
             new RuntimeException(),
             "StructuredTextFile.JsonField value matches close tag: [%s]\n%s",
             close.toString(),
             content);
       }
     }
     checked = true;
   }
 }