Skip to content

Commit 7a55019

Browse files
author
chenyoca
committed
Fixed ParamsWrapper "put" method verify input params.
1 parent 8ed5916 commit 7a55019

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

Diff for: .classpath

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<attribute name="maven.pomderived" value="true"/>
1313
</attributes>
1414
</classpathentry>
15-
<classpathentry kind="src" path="debug"/>
1615
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
1716
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
1817
<attributes>

Diff for: pom.xml

-22
This file was deleted.

Diff for: src/com/lurencun/http/ParamsWrapper.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ public ParamsWrapper put(String name,String fileName,String path){
6969
}
7070

7171
private ParamsWrapper appendToParamsArray(String name,Object value){
72-
if(value != null && value != null && !"".equals(name) && !"".equals(value) ){
72+
if(name != null && value != null
73+
&& !"".equals(name) && !"".equals(value) ){
7374
nameValueArray.add(new NameValue(name, value));
7475
}
7576
return this;

0 commit comments

Comments
 (0)