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
411
Collected Errors
14 123
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →
Accept