MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / getMiddle

Method getMiddle

spotbugsTestCases/src/java/NPIncomplete.java:9–11  ·  view source on GitHub ↗
(String a)

Source from the content-addressed store, hash-verified

7public class NPIncomplete {
8
9 public static String getMiddle(String a) {
10 return a.substring(0 + a.length() / 2, 0 + a.length() / 2);
11 }
12
13 public String getMiddle2(String a) {
14 return a.substring(0 + a.length() / 2, 0 + a.length() / 2);

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected