Sonar improvements
Merge request reports
Activity
assigned to @deniro-stopcovid and unassigned @redford-stopcovid
assigned to @redford-stopcovid and unassigned @deniro-stopcovid
99 99 } catch (StatusRuntimeException ex) { 100 100 log.error(ERROR_MESSAGE, ex.getStatus()); 101 101 } 102 return null; 102 return new byte[0]; @deniro-stopcovid Are you ok with this change?
18 18 super(builder); 19 19 } 20 20 private DecryptCountryCodeRequest() { 21 ebid_ = com.google.protobuf.ByteString.EMPTY; 22 encryptedCountryCode_ = com.google.protobuf.ByteString.EMPTY; 21 ebid = com.google.protobuf.ByteString.EMPTY; @deniro-stopcovid Is there a way to tag these protobuf-generated files as must-skip for Sonar?
We will not improve this automatically generated code by hand.
24 24 size /= 8; 25 25 byte[] data = new byte[size]; 26 26 for (int i = 0; i < size; i++) { 27 data[i] = new Long(i).byteValue(); 27 Long l = Long.valueOf(i); 28 data[i] = l.byteValue(); @deniro-stopcovid Shouldn't this be
new Integer(i).byteValue()
?I don't understand how this is more elegant than a simple cast.