Examples of errors detected by the V6010 diagnostic

V6010. The return value of function 'Foo' is required to be utilized.


Huawei Cloud

V6010 The return value of function 'concat' is required to be utilized. AKSK.java(278)


public static String buildCanonicalHost(URL url)
{
  String host = url.getHost();
  int port = url.getPort();
  if (port > -1) {
    host.concat(":" + Integer.toString(port));
  }
  return host;
}


Bugs Found

Checked Projects
377
Collected Errors
13 692