Skip to content

Commit

Permalink
sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
leaderli committed Dec 19, 2024
1 parent 3b9c1ab commit cddaf60
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public T parse(InputStream xmlStream) {
SaxBeanAdapter peek = saxBeanStack.peek();

assert peek != null;
peek.body((BodyEvent) saxEvent);
peek.setBody((BodyEvent) saxEvent);

} else if (saxEvent instanceof EndEvent) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void attribute(AttributeEvent attributeEvent) {
}

@Override
public void body(BodyEvent bodyEvent) {
public void setBody(BodyEvent bodyEvent) {
// ignore

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public void attribute(AttributeEvent attributeEvent) {
}

@Override
public void body(BodyEvent bodyEvent) {
parseErrorInvocationHandler(bodyEvent, origin::body);
public void setBody(BodyEvent bodyEvent) {
parseErrorInvocationHandler(bodyEvent, origin::setBody);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ default Lino<?> complexField(Class<?> parameterType, String value) {
return ReflectUtil.newInstance(parameterType, value);
}

default void body(BodyEvent bodyEvent) {
default void setBody(BodyEvent bodyEvent) {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public NoBean() {
}

@Override
public void body(BodyEvent bodyEvent) {
public void setBody(BodyEvent bodyEvent) {
this.body = bodyEvent.description();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public EntryElement() {
}

@Override
public void body(BodyEvent bodyEvent) {
public void setBody(BodyEvent bodyEvent) {


String description = bodyEvent.description();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ParamElement() {
}

@Override
public void body(BodyEvent bodyEvent) {
public void setBody(BodyEvent bodyEvent) {
String expr = bodyEvent.description();

this.expression = new Expression(expr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Lino<?> complexField(Class<?> parameterType, String value) {
}

@Override
public void body(BodyEvent bodyEvent) {
public void setBody(BodyEvent bodyEvent) {
this.value = ExpressionUtil.getExpression(bodyEvent.description());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void setLongExpression(LongExpression longExpression) {
}

@Override
public void body(BodyEvent bodyEvent) {
public void setBody(BodyEvent bodyEvent) {
String message = bodyEvent.description();
this.longExpression = new LongExpression(message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void setValue(List<String> value) {
}

@Override
public void body(BodyEvent bodyEvent) {
public void setBody(BodyEvent bodyEvent) {
String description = bodyEvent.description();
LiAssertUtil.assertTrue(description.matches(TD_VALUE_RULE), String.format("the td value %s is not match %s",
description, TD_VALUE_RULE));
Expand Down
6 changes: 3 additions & 3 deletions litool-test/src/main/java/io/leaderli/litool/test/LiMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ private Skip() {
/**
* 用于标记跳过mock
*/
public static Skip SKIP_MARK = new Skip();
public static final Skip SKIP_MARK = new Skip();


public static final Map<Class<?>, byte[]> originClasses = new HashMap<>();
public static final ByteBuddy byteBuddy = new ByteBuddy();
public static Instrumentation instrumentation = ByteBuddyAgent.install();
public static ClassPool classPool = ClassPool.getDefault();
public static final Instrumentation instrumentation = ByteBuddyAgent.install();
public static final ClassPool classPool = ClassPool.getDefault();
public final static boolean jacoco;

static {
Expand Down

0 comments on commit cddaf60

Please sign in to comment.