Skip to content

Commit

Permalink
Source > Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehutch committed Aug 17, 2021
1 parent a8de934 commit 4fc27be
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/classgraph/ClassTypeSignature.java
Expand Up @@ -415,7 +415,7 @@ static ClassTypeSignature parse(final String typeDescriptor, final ClassInfo cla
if (parser.hasMore()) {
throw new ParseException(parser, "Extra characters at end of type descriptor");
}
return new ClassTypeSignature(classInfo, typeParameters,
superclassSignature, superinterfaceSignatures, throwsSignatures);
return new ClassTypeSignature(classInfo, typeParameters, superclassSignature, superinterfaceSignatures,
throwsSignatures);
}
}
4 changes: 2 additions & 2 deletions src/main/java/io/github/classgraph/ModulePathInfo.java
Expand Up @@ -154,8 +154,8 @@ public ModulePathInfo() {
argField.add(argParam);
} else {
// Split arg param into parts
argField.addAll(Arrays.asList(JarUtils.smartPathSplit(argParam, sepChar,
/* scanSpec = */ null)));
argField.addAll(Arrays
.asList(JarUtils.smartPathSplit(argParam, sepChar, /* scanSpec = */ null)));
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/io/github/classgraph/ModuleRef.java
Expand Up @@ -93,8 +93,7 @@ public ModuleRef(final Object moduleReference, final Object moduleLayer) {
// Should not happen
throw new IllegalArgumentException("moduleReference.descriptor() should not return null");
}
this.name = (String) ReflectionUtils.invokeMethod(this.descriptor, "name",
/* throwException = */ true);
this.name = (String) ReflectionUtils.invokeMethod(this.descriptor, "name", /* throwException = */ true);
@SuppressWarnings("unchecked")
final Set<String> modulePackages = (Set<String>) ReflectionUtils.invokeMethod(this.descriptor, "packages",
/* throwException = */ true);
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/io/github/classgraph/Scanner.java
Expand Up @@ -835,8 +835,7 @@ private void preprocessClasspathElementsByType(final List<ClasspathElement> fina
for (final ClasspathElement classpathElt : finalTraditionalClasspathEltOrder) {
if (classpathElt instanceof ClasspathElementFileDir) {
// Separate out ClasspathElementDir elements from other types
classpathEltDirs.add(new SimpleEntry<>(classpathElt.getFile().getPath(),
classpathElt));
classpathEltDirs.add(new SimpleEntry<>(classpathElt.getFile().getPath(), classpathElt));

} else if (classpathElt instanceof ClasspathElementZip) {
// Separate out ClasspathElementZip elements from other types
Expand Down
Expand Up @@ -32,7 +32,6 @@

import java.io.File;
import java.net.URL;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
Expand Down
Expand Up @@ -161,7 +161,7 @@ public interface RandomAccessReader {
* If an I/O exception occurs.
*/
String readString(final long offset, final int numBytes, final boolean replaceSlashWithDot,
final boolean stripLSemicolon) throws IOException;
final boolean stripLSemicolon) throws IOException;

/**
* Reads the "modified UTF8" format defined in the Java classfile spec.
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/nonapi/io/github/classgraph/utils/Assert.java
Expand Up @@ -7,7 +7,8 @@ public final class Assert {
*
* @param clazz
* the class.
* @throws {@link IllegalArgumentException} if the class is not an annotation.
* @throws IllegalArgumentException
* if the class is not an annotation.
*/
public static void isAnnotation(final Class<?> clazz) {
if (!clazz.isAnnotation()) {
Expand All @@ -20,7 +21,8 @@ public static void isAnnotation(final Class<?> clazz) {
*
* @param clazz
* the class.
* @throws {@link IllegalArgumentException} if the class is not an interface.
* @throws IllegalArgumentException
* if the class is not an interface.
*/
public static void isInterface(final Class<?> clazz) {
if (!clazz.isInterface()) {
Expand Down

0 comments on commit 4fc27be

Please sign in to comment.