Skip to content

Commit

Permalink
调整几个字段与函数的作用域
Browse files Browse the repository at this point in the history
noear committed Jun 6, 2024
1 parent da940a6 commit b791f1d
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ public void outputFile(Context ctx, DownloadedFile file, boolean asAttachment) t
}

try (InputStream ins = file.getContent()) {
OutputUtils.global().outputStream(ctx, ins, file.getContentSize(), file.getContentType());
outputStream(ctx, ins, file.getContentSize(), file.getContentType());
}
}

@@ -80,7 +80,7 @@ public void outputFile(Context ctx, File file, boolean asAttachment) throws IOEx
}

try (InputStream ins = new FileInputStream(file)) {
OutputUtils.global().outputStream(ctx, ins, file.length(), contentType);
outputStream(ctx, ins, file.length(), contentType);
}
}

Original file line number Diff line number Diff line change
@@ -19,8 +19,7 @@
*/
public class JacksonRenderFactory extends JacksonRenderFactoryBase {

ObjectMapper config = new ObjectMapper();

private ObjectMapper config = new ObjectMapper();
private Set<SerializationFeature> features;

public JacksonRenderFactory() {
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
* @since 2.8
*/
public class JacksonRenderTypedFactory extends JacksonRenderFactoryBase {
ObjectMapper config = new ObjectMapper();
private ObjectMapper config = new ObjectMapper();

public JacksonRenderTypedFactory(){
config.enable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);

0 comments on commit b791f1d

Please sign in to comment.