Skip to content

Commit

Permalink
some sonar fixe
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknow authored and Unknow committed Oct 15, 2024
1 parent 8cacc5b commit 3d1b1ed
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public abstract class ProtostuffJsonListAbstract<T extends Message<?>> extends ProtostuffListAbstract<T> {
private final ListFormat fmt;

public ProtostuffJsonListAbstract(ListFormat fmt) {
protected ProtostuffJsonListAbstract(ListFormat fmt) {
this.fmt = fmt;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import jakarta.ws.rs.ext.MessageBodyWriter;

public abstract class ProtostuffListAbstract<T> implements MessageBodyReader<Collection<T>>, MessageBodyWriter<Collection<T>> {

@Override
public final boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
if (!(genericType instanceof ParameterizedType))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ private void generateInitalizer() throws IOException, MojoExecutionException {
Utils.list(new ClassExpr(types.get(e.getKey())), new ObjectCreationExpr(null, types.getClass(e.getValue()), Utils.list()))));
}

for (String cl : model.protostuffMessage) {
ClassOrInterfaceType type = types.getClass(cl);
for (String clazz : model.protostuffMessage) {
ClassOrInterfaceType type = types.getClass(clazz);
b.addStatement(new MethodCallExpr(new TypeExpr(types.get(ProtostuffSchema.class)), "register",
Utils.list(new ClassExpr(type), new MethodCallExpr(new ObjectCreationExpr(null, type, Utils.list()), "cachedSchema"))));
}
Expand Down

This file was deleted.

0 comments on commit 3d1b1ed

Please sign in to comment.