添加 sonar
This commit is contained in:
@@ -126,7 +126,10 @@ public class SydApiSM4 {
|
||||
return api.SYD_SM4_LongData(iKeyIndex, pcdataResult, iPkgNum, iFlag);
|
||||
|
||||
} else {
|
||||
if (16 > pcData.length + sourceWrap.array().length||(pcData.length + sourceWrap.array().length)/16<2) {
|
||||
if (16 > pcData.length + sourceWrap.array().length
|
||||
||
|
||||
(pcData.length + sourceWrap.array().length)/16<2
|
||||
) {
|
||||
ByteBuffer bufferResult = ByteBuffer.allocate(sourceWrap.array().length + plength);
|
||||
bufferResult.put(sourceWrap.array());
|
||||
bufferResult.put(pcData);
|
||||
|
||||
@@ -21,7 +21,7 @@ public class LengthTest
|
||||
@Before
|
||||
public void init(){
|
||||
SydApiBuilder builder = new SydApiBuilder(
|
||||
new String[]{ "192.168.0.200" },
|
||||
new String[]{ "192.168.1.128" },
|
||||
new int[]{ 8889 },
|
||||
10,
|
||||
15
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//package test;
|
||||
package test;
|
||||
//
|
||||
//import com.sunyard.sge.database.*;
|
||||
//import org.junit.Test;
|
||||
@@ -90,3 +90,15 @@
|
||||
//// }
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
if (16 > 1799 + 16
|
||||
||
|
||||
(1799 + 16)/16<2
|
||||
) {
|
||||
System.out.println("1");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user