Examples of errors detected by the V6037 diagnostic

V6037. An unconditional 'break/continue/return/goto' within a loop.


CUBA Platform

V6037 An unconditional 'return' within a loop. QueryCacheManager.java(128)


public <T> T getSingleResultFromCache(QueryKey queryKey, List<View> views) {
  ....
  for (Object id : queryResult.getResult()) {
    return (T) em.find(metaClass.getJavaClass(), id, views.toArray(....));
  }
  ....
}


Bugs Found

Checked Projects
409
Collected Errors
14 072
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