MCPcopy Create free account
hub / github.com/apache/tomcat / getMode

Method getMode

java/org/apache/tomcat/buildutil/CheckEol.java:71–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 private Mode getMode() {
72 if (mode != null) {
73 return mode;
74 } else {
75 if ("\n".equals(System.lineSeparator())) {
76 return Mode.LF;
77 } else if ("\r\n".equals(System.lineSeparator())) {
78 return Mode.CRLF;
79 }
80 }
81
82 return null;
83 }
84
85 /**
86 * Perform the check

Callers 1

executeMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected