Skip to content

Commit 1b7d23f

Browse files
authored
Add Spotless Config (#121)
1 parent b89c512 commit 1b7d23f

File tree

343 files changed

+4275
-3142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+4275
-3142
lines changed

annotations/src/main/java/com/javadiscord/jdi/core/processor/ClassFileUtil.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.javadiscord.jdi.core.processor;
22

3-
import javassist.bytecode.ClassFile;
4-
53
import java.io.DataInputStream;
64
import java.io.File;
75
import java.io.FileInputStream;
@@ -10,6 +8,7 @@
108
import java.util.List;
119
import java.util.zip.ZipEntry;
1210
import java.util.zip.ZipInputStream;
11+
import javassist.bytecode.ClassFile;
1312

1413
public class ClassFileUtil {
1514

@@ -28,8 +27,10 @@ public static List<File> getClassesInClassPath() {
2827

2928
public static String getClassName(File file) throws IOException {
3029
String className = null;
31-
try (FileInputStream fis = new FileInputStream(file);
32-
DataInputStream dis = new DataInputStream(fis)) {
30+
try (
31+
FileInputStream fis = new FileInputStream(file);
32+
DataInputStream dis = new DataInputStream(fis)
33+
) {
3334
if (isJarFile(file)) {
3435
try (ZipInputStream zip = new ZipInputStream(fis)) {
3536
ZipEntry entry;

0 commit comments

Comments
 (0)