Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ private void setDeclaredField(io.microsphere.beans.ConfigurationProperty configu
String declaredFieldName = field.getSimpleName().toString();
configurationProperty.getMetadata().setDeclaredField(declaredFieldName);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ void testResolveMetadataOnEmptySet() {
String json = processor.toJSON();
assertNotNull("[]", json);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package io.microsphere.annotation.processor;


import io.microsphere.annotation.ConfigurationProperty;
import io.microsphere.classloading.ManifestArtifactResourceResolver;
import io.microsphere.io.IOUtils;
Expand Down Expand Up @@ -73,4 +72,4 @@ void testSetSourcesOnNoSource() {
visitor.setSources(null, "noSource", null);
assertNotNull(visitor);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package io.microsphere.annotation.processor;


import io.microsphere.test.annotation.processing.AbstractAnnotationProcessingTest;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtensionContext;
Expand Down Expand Up @@ -67,4 +66,4 @@ void testGetJavaFileManager() {
JavaFileManager javaFileManager = processor.getJavaFileManager();
assertNotNull(javaFileManager);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package io.microsphere.annotation.processor;


import io.microsphere.test.annotation.processing.AbstractAnnotationProcessingTest;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtensionContext;
Expand Down Expand Up @@ -193,4 +192,4 @@ void testProcessInResourceOnWriterOnFailed() {
void testExistsOnNull() {
assertFalse(exists(null));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@
*/
String[] source() default {};

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
*/
String description() default "";

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
@Documented
@Retention(RUNTIME)
public @interface Immutable {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package io.microsphere.annotation;


import javax.annotation.meta.TypeQualifierNickname;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
Expand All @@ -35,4 +34,4 @@
@javax.annotation.Nonnull
@TypeQualifierNickname
public @interface Nonnull {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
@javax.annotation.Nonnull(when = MAYBE)
@TypeQualifierNickname
public @interface Nullable {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
*/
String value();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ class NonnullTest {
void test() {
assertNotNull(NonnullTest.class.getAnnotation(Nonnull.class));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ class NullableTest {
void test() {
assertNotNull(NullableTest.class.getAnnotation(Nullable.class));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ void test() {
assertEquals("microsphere-java-core", since.module());
assertEquals("1.0.0", since.value());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public String toString() {
return "BeanMetadata{" + "beanClass='" + getTypeName(this.beanClass) + "'}";
}


/**
* Create a {@link BeanMetadata} instance from the specified bean class.
*
Expand All @@ -144,4 +143,4 @@ public static BeanMetadata of(@Nonnull Class<?> beanClass) throws RuntimeExcepti
return new BeanMetadata(beanClass);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ static Artifact createArtifact(String archiveFileName, URL resourceURL) {
String version = length > 1 ? parts[1] : null;
return create(artifactId, version, resourceURL);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ private void removeJdkClassPathURLs(Set<URL> classPathURLs) {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import static io.microsphere.util.Assert.assertNotNull;
import static io.microsphere.util.jar.JarUtils.filter;


/**
* An abstract base class for implementing {@link ArtifactResourceResolver} that provides a
* skeletal implementation to resolve artifact resources from either a streamable resource (like a URL)
Expand Down Expand Up @@ -199,4 +198,4 @@ protected boolean isArtifactMetadataFile(File directory, File file) {
protected abstract boolean isArtifactMetadata(String relativePath);

protected abstract Artifact resolve(URL resourceURL, InputStream artifactMetadataData, ClassLoader classLoader) throws IOException;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,6 @@ public static <T> Deque<T> emptyDeque() {
return QueueUtils.emptyDeque();
}


private CollectionUtils() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ public final boolean equals(Object obj) {
public final String toString() {
return this.delegate.toString();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public class EmptyIterator<E> extends DelegatingIterator<E> {
*/
public static final EmptyIterator INSTANCE = new EmptyIterator();


public EmptyIterator() {
super(emptyIterator());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public IterableAdapter(Iterator<T> iterator) {
public Iterator<T> iterator() {
return iterator;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public static boolean equals(Iterator<?> one, Iterator<?> another) {
private Iterators() {
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ public static boolean shutdown(ExecutorService executorService) {

private ExecutorUtils() {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
package io.microsphere.constants;


import java.io.File;

import static io.microsphere.constants.PathConstants.SLASH;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.io.IOException;
import java.io.Serializable;


/**
* The class coverts the {@link byte[] byte array} object to be a {@link Object} instance .
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import static io.microsphere.reflect.TypeUtils.resolveActualTypeArgumentClass;
import static io.microsphere.util.ClassUtils.isAssignableFrom;


/**
* A functional interface that defines a strategy for converting values from one type ({@code S}) to another type ({@code T}).
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package io.microsphere.convert;


import java.util.Map;
import java.util.Properties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package io.microsphere.convert;


/**
* The class to convert {@link String} to <code>char[]</code>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package io.microsphere.convert;


import static io.microsphere.util.CharSequenceUtils.length;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class StringToClassConverter extends AbstractConverter<String, Class> imp
*/
public static final StringToClassConverter INSTANCE = new StringToClassConverter();


private static final ClassLoader classLoader = getDefaultClassLoader();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package io.microsphere.convert.multiple;


import io.microsphere.convert.Converter;

import static java.lang.reflect.Array.newInstance;
Expand Down Expand Up @@ -49,7 +48,6 @@ public Object convert(String[] segments, int size, Class<?> targetType, Class<?>
return array;
}


@Override
public int getPriority() {
return MIN_PRIORITY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package io.microsphere.convert.multiple;


import static io.microsphere.constants.SymbolConstants.COMMA_CHAR;
import static io.microsphere.util.ArrayUtils.length;
import static io.microsphere.util.StringUtils.split;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ static Class<? extends Event> findEventType(ParameterizedType parameterizedType)
default int getPriority() {
return NORMAL_PRIORITY;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ public interface Filter<T> extends Predicate<T> {
default boolean test(T t) {
return accept(t);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ public byte[] serialize(Object source) throws IOException {
return bytes;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ public <T> Deserializer<T> getLowestPriority(Class<?> deserializedType) {
public <T> List<Deserializer<T>> get(Class<?> deserializedType) {
return (List) typedDeserializers.getOrDefault(deserializedType, emptyList());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ public String toString(String charsetName)
*/
public void close() {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ public static void deleteDirectoryOnExit(File directory) {
}
}


/**
* Schedules all files and subdirectories within the given directory for deletion on JVM exit.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public abstract class IOUtils implements Utils {
)
public static final int BUFFER_SIZE = getInteger(BUFFER_SIZE_PROPERTY_NAME, DEFAULT_BUFFER_SIZE);


/**
* Reads all lines from the given {@link InputStream} and returns them as an array of strings,
* using the default character set for decoding.
Expand Down Expand Up @@ -215,7 +214,6 @@ public static byte[] toByteArray(InputStream in) throws IOException {
return out.toByteArray();
}


/**
* Converts the content of the provided {@link InputStream} into a new {@link String}
* using the default charset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package io.microsphere.io;


import io.microsphere.annotation.Nonnull;

import java.util.HashMap;
Expand Down Expand Up @@ -106,7 +105,6 @@ public <S> Serializer<S> getHighestPriority(Class<S> serializedType) {
return first(serializers);
}


/**
* Get the lowest priority instance of {@link Serializer} by the specified serialized type
*
Expand All @@ -130,4 +128,4 @@ public <S> Serializer<S> getLowestPriority(Class<S> serializedType) {
public <S> List<Serializer<S>> get(Class<S> serializedType) {
return (List) typedSerializers.getOrDefault(serializedType, emptyList());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,4 @@ private static class FileChangedMetadata {
private WatchEvent.Kind<?>[] watchEventKinds;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package io.microsphere.io;


import java.io.StringWriter;
import java.io.Writer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ public static FileExtensionFilter of(String extension) {
return new FileExtensionFilter(extension);
}

}
}
Loading
Loading