Code Review
/
openflowplugin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Jdk8 compatibility
[openflowplugin.git]
/
test-provider
/
src
/
main
/
java
/
org
/
opendaylight
/
openflowplugin
/
test
/
OpenflowpluginTestCommandProvider.java
diff --git
a/test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestCommandProvider.java
b/test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestCommandProvider.java
index 93b42f86ef7a15c4b475fe645f90a3e3af5cc205..908a2fe5937a97645f732b231644379e53f38af9 100644
(file)
--- a/
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestCommandProvider.java
+++ b/
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestCommandProvider.java
@@
-692,7
+692,7
@@
public class OpenflowpluginTestCommandProvider implements CommandProvider {
if (null == flow.isBarrier()) {
flow.setBarrier(Boolean.FALSE);
}
if (null == flow.isBarrier()) {
flow.setBarrier(Boolean.FALSE);
}
- BigInteger value =
new BigInteger("10",
10);
+ BigInteger value =
BigInteger.valueOf(
10);
flow.setCookie(new FlowCookie(value));
flow.setCookieMask(new FlowCookie(value));
flow.setHardTimeout(0);
flow.setCookie(new FlowCookie(value));
flow.setCookieMask(new FlowCookie(value));
flow.setHardTimeout(0);
@@
-736,7
+736,7
@@
public class OpenflowpluginTestCommandProvider implements CommandProvider {
if (null == flow.isBarrier()) {
flow.setBarrier(Boolean.FALSE);
}
if (null == flow.isBarrier()) {
flow.setBarrier(Boolean.FALSE);
}
- BigInteger value =
new BigInteger("10",
10);
+ BigInteger value =
BigInteger.valueOf(
10);
flow.setCookie(new FlowCookie(value));
flow.setCookieMask(new FlowCookie(value));
flow.setHardTimeout(0);
flow.setCookie(new FlowCookie(value));
flow.setCookieMask(new FlowCookie(value));
flow.setHardTimeout(0);
@@
-835,8
+835,8
@@
public class OpenflowpluginTestCommandProvider implements CommandProvider {
private static InstructionsBuilder createMetadataInstructions() {
WriteMetadataBuilder aab = new WriteMetadataBuilder();
private static InstructionsBuilder createMetadataInstructions() {
WriteMetadataBuilder aab = new WriteMetadataBuilder();
- aab.setMetadata(
new BigInteger("10",
10));
- aab.setMetadataMask(
new BigInteger("12",
10));
+ aab.setMetadata(
BigInteger.valueOf(
10));
+ aab.setMetadataMask(
BigInteger.valueOf(
10));
InstructionBuilder ib = new InstructionBuilder();
ib.setInstruction(new WriteMetadataCaseBuilder().setWriteMetadata(aab.build()).build());
InstructionBuilder ib = new InstructionBuilder();
ib.setInstruction(new WriteMetadataCaseBuilder().setWriteMetadata(aab.build()).build());
@@
-3257,7
+3257,7
@@
public class OpenflowpluginTestCommandProvider implements CommandProvider {
/**
* @param ci arguments: switchId flowType tableNum
/**
* @param ci arguments: switchId flowType tableNum
- * <p
/
>
+ * <p>
* <pre>
* e.g.: addMDFlow openflow:1 f1 42
* </pre>
* <pre>
* e.g.: addMDFlow openflow:1 f1 42
* </pre>
@@
-3341,25
+3341,25
@@
public class OpenflowpluginTestCommandProvider implements CommandProvider {
int threadCount = 0;
if (numberOfSwtichesStr != null && !numberOfSwtichesStr.trim().equals("")) {
int threadCount = 0;
if (numberOfSwtichesStr != null && !numberOfSwtichesStr.trim().equals("")) {
- numberOfSwtiches =
new Integer(numberOfSwtichesStr).intValue(
);
+ numberOfSwtiches =
Integer.parseInt(numberOfSwtichesStr
);
} else {
numberOfSwtiches = 2;
}
if (numberOfFlowsStr != null && !numberOfFlowsStr.trim().equals("")) {
} else {
numberOfSwtiches = 2;
}
if (numberOfFlowsStr != null && !numberOfFlowsStr.trim().equals("")) {
- numberOfFlows =
new Integer(numberOfFlowsStr).intValue(
);
+ numberOfFlows =
Integer.parseInt(numberOfFlowsStr
);
} else {
numberOfFlows = 2;
}
if (warmupIterationsStr != null && !warmupIterationsStr.trim().equals("")) {
} else {
numberOfFlows = 2;
}
if (warmupIterationsStr != null && !warmupIterationsStr.trim().equals("")) {
- warmupIterations =
new Integer(warmupIterationsStr).intValue(
);
+ warmupIterations =
Integer.parseInt(warmupIterationsStr
);
} else {
warmupIterations = 2;
}
if (threadCountStr != null && !threadCountStr.trim().equals("")) {
} else {
warmupIterations = 2;
}
if (threadCountStr != null && !threadCountStr.trim().equals("")) {
- threadCount =
new Integer(threadCountStr).intValue(
);
+ threadCount =
Integer.parseInt(threadCountStr
);
} else {
threadCount = 2;
}
} else {
threadCount = 2;
}