MCPcopy Create free account
hub / github.com/apache/solr / getNewlineComment

Method getNewlineComment

solr/solrj/src/java/org/noggit/JSONParser.java:353–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351 }
352
353 protected void getNewlineComment() throws IOException {
354 // read a # or a //, so go until newline
355 for (; ; ) {
356 int ch = getChar();
357 // don't worry about DOS /r/n... we'll stop on the \r and let the rest of the whitespace
358 // eater consume the \n
359 if (ch == '\n' || ch == '\r' || ch == -1) {
360 return;
361 }
362 }
363 }
364
365 protected void getSlashComment() throws IOException {
366 int ch = getChar();

Callers 3

getCharNWSMethod · 0.95
getSlashCommentMethod · 0.95
nextMethod · 0.95

Calls 1

getCharMethod · 0.95

Tested by

no test coverage detected