mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -155,7 +155,7 @@ public class ShearCaptcha extends AbstractCaptcha {
|
||||
* 干扰线
|
||||
*
|
||||
* @param g {@link Graphics}
|
||||
* @param x1x1
|
||||
* @param x1 x1
|
||||
* @param y1 y1
|
||||
* @param x2 x2
|
||||
* @param y2 y2
|
||||
@@ -183,8 +183,8 @@ public class ShearCaptcha extends AbstractCaptcha {
|
||||
int dy = (int) ddy;
|
||||
|
||||
// Now we can compute the corner points...
|
||||
int xPoints[] = new int[4];
|
||||
int yPoints[] = new int[4];
|
||||
int[] xPoints = new int[4];
|
||||
int[] yPoints = new int[4];
|
||||
|
||||
xPoints[0] = x1 + dx;
|
||||
yPoints[0] = y1 + dy;
|
||||
|
@@ -14,7 +14,7 @@ public interface CodeGenerator extends Serializable{
|
||||
*
|
||||
* @return 验证码
|
||||
*/
|
||||
public String generate();
|
||||
String generate();
|
||||
|
||||
/**
|
||||
* 验证用户输入的字符串是否与生成的验证码匹配<br>
|
||||
@@ -24,5 +24,5 @@ public interface CodeGenerator extends Serializable{
|
||||
* @param userInputCode 用户输入的验证码
|
||||
* @return 是否验证通过
|
||||
*/
|
||||
public boolean verify(String code, String userInputCode);
|
||||
boolean verify(String code, String userInputCode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user