Skip to content

Commit

Permalink
Fixed apache#1398, revert bugs introduced from apache#1375
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Feb 26, 2018
1 parent c98e486 commit efb0a95
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ protected static Object getParamArg(Class cl) {
else if (boolean.class.equals(cl))
return Boolean.FALSE;
else if (byte.class.equals(cl))
return 0;
return new Byte((byte) 0);
else if (short.class.equals(cl))
return 0;
return new Short((short) 0);
else if (char.class.equals(cl))
return 0;
return new Character((char) 0);
else if (int.class.equals(cl))
return 0;
return Integer.valueOf(0);
else if (long.class.equals(cl))
return 0L;
return Long.valueOf(0);
else if (float.class.equals(cl))
return 0F;
return Float.valueOf(0);
else if (double.class.equals(cl))
return 0D;
return Double.valueOf(0);
else
throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit efb0a95

Please sign in to comment.