Skip to content
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ is deemed necessary and appropriate to the circumstances. Maintainers are
obligated to maintain confidentiality with regard to the reporter of an
incident.


This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at https://www.contributor-covenant.org/version/1/3/0/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org
[homepage]: https://www.contributor-covenant.org
2 changes: 1 addition & 1 deletion microsphere-annotation-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@
</plugins>
</build>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,4 @@ public <T> T processInFiler(ThrowableFunction<Filer, T> filerCallback, BiFunctio
public JavaFileManager getJavaFileManager() {
return processInFiler(filer -> getFieldValue(filer, "fileManager"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
<appender-ref ref="STDOUT"/>
</root>

</configuration>
</configuration>
2 changes: 1 addition & 1 deletion microsphere-java-annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
</dependency>

</dependencies>
</project>
</project>
2 changes: 1 addition & 1 deletion microsphere-java-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@

</dependencies>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,4 @@ public String toString() {
public static BeanMetadata of(@Nonnull Class<?> beanClass) throws RuntimeException {
return new BeanMetadata(beanClass);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,4 @@ static MavenArtifact loadBannedArtifactConfig(String definition) throws IllegalA
String version = gav[2];
return MavenArtifact.create(groupId, artifactId, version);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -683,5 +683,4 @@ public static <T> Deque<T> emptyDeque() {

private CollectionUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ public static boolean equals(Iterator<?> one, Iterator<?> another) {

private Iterators() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -1257,5 +1257,4 @@ static Map<String, Object> extraProperties(Map<String, Object> map) {

private MapUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ public abstract class ReadOnlyIterator<E> implements Iterator<E> {
public final void remove() {
throw new IllegalStateException("Read-Only");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,4 @@ public boolean accept(T filteredObject) {
}
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -336,5 +336,4 @@ private static class FileChangedMetadata {

private WatchEvent.Kind<?>[] watchEventKinds;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,4 @@ protected boolean matches(String fileExtension, boolean caseSensitive) {
public static FileExtensionFilter of(String extension) {
return new FileExtensionFilter(extension);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,4 @@ public Set<File> scan(File rootDirectory, boolean recursive, IOFileFilter ioFile
}
return unmodifiableSet(filesSet);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -744,5 +744,4 @@ public int hashCode() {
// diverge from the original, which doesn't implement hashCode
return this.values.hashCode();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ public class JSONException extends Exception {
public JSONException(String s) {
super(s);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -885,5 +885,4 @@ public static Object wrap(Object o) {
}
return null;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -578,5 +578,4 @@ public static int dehexchar(char hex) {
return -1;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -1472,5 +1472,4 @@ static <C extends Collection> void addValues(JSONArray jsonArray, C collection,

private JSONUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,4 @@ static <T> Predicate<? super T> or(Predicate<? super T>... predicates) {
return orPredicate;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,4 @@ public static <T> T newInstance(Constructor<T> constructor, Object... args) {

private ConstructorUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -1325,5 +1325,4 @@ public static Kind valueOf(Type type) {
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -335,5 +335,4 @@ public static boolean isEnum(int modifiers) {
public static boolean isMandated(int modifiers) {
return MANDATED.matches(modifiers);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -1572,5 +1572,4 @@ public static String[] getTypeNames(@Nullable Type... types) throws IllegalArgum

private TypeUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -1835,5 +1835,4 @@ static <A extends Annotation> void findMetaAnnotations(AnnotatedElement annotate

private AnnotationUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -218,5 +218,4 @@ public static URL getRuntimeClassLocation(Class<?> type) {

private ClassPathUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,4 @@ public String getEncoding() {
public static ResourceBundle.Control newControl(final String encoding) throws UnsupportedCharsetException {
return encodingControlMap.computeIfAbsent(encoding, PropertyResourceBundleControl::new);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,4 @@ private void executeShutdownHookCallbacks() {
callback.run();
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -416,5 +416,4 @@ static Map<Thread, Thread> shutdownHookThreadsMap(Class<?> applicationShutdownHo

private ShutdownHookUtils() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,4 @@ public String toString() {
public static <V> ValueHolder<V> of(V value) {
return new ValueHolder<>(value);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ void assertArtifact(Artifact artifact) throws Throwable {
assertEquals(TEST_ARTIFACT_ID, mavenArtifact.getArtifactId());
assertEquals(TEST_VERSION, mavenArtifact.getVersion());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ private static <E> void assertEnumeration(Enumeration<String> e) {
assertFalse(e.hasMoreElements());
assertThrows(NoSuchElementException.class, e::nextElement);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,4 @@ void testNewArrayDequeWithElements() {
assertEquals(3, deque.size());
assertTrue(deque.containsAll(asList("a", "b", "c")));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,4 @@ void testRemove() {
void testForEachRemaining() {
instance.forEachRemaining(this::log);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,4 @@ public int getPriority() {

assertEquals(NORMAL_PRIORITY, listener.getPriority());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,4 @@ void testWithListSource() {
GenericEvent<List<String>> event = new GenericEvent<>(source);
assertEquals(source, event.getSource());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ public void onEvent(Event event) {

}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ void testDispatchEvent() throws InterruptedException {
static void afterAll() {
ForkJoinPool.commonPool().shutdown();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ void testXOROnEmptyFilters() {
Filter filter = XOR.createFilter(new Filter[0]);
assertTrue(filter.accept(null));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,4 @@ File handleDirectoryOnIOException0(ThrowableConsumer<File> directoryHandler) thr

return testDir;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,4 @@ public void onFileCreated(FileChangedEvent event) {
assertFalse(fileWatchService.isStarted());
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ void testOnFailed() {
assertThrows(IllegalArgumentException.class, () -> new FileChangedEvent(null, CREATED));
assertThrows(IllegalArgumentException.class, () -> new FileChangedEvent(new File(""), null));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ void testAcceptOnFile() throws IOException {
assertFalse(INSTANCE.accept(testFile));
testFile.deleteOnExit();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ void tes() {
assertFalse(filter.accept(null));
assertTrue(filter.accept(file.getParentFile(), file.getName()));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ void testNullMessage() {
JSONException exception = new JSONException(null);
assertNull(exception.getMessage());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,4 @@ void testTypeMismatchOnActualNull() {
assertThrows(JSONException.class, () -> typeMismatch(null, null, "String"));
assertThrows(JSONException.class, () -> typeMismatch(null, "String"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -416,5 +416,4 @@ void testDehexchar() {
assertEquals(-1, dehexchar(' '));
assertEquals(-1, dehexchar('#'));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -837,5 +837,4 @@ Data createData() {
data.setNames(new String[]{"Mercy", "Mercy"});
return data;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ void test() {

assertThrows(IllegalArgumentException.class, () -> wrapper.unwrap(Integer.class));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ void testComparator() {
assertEquals(0, COMPARATOR.compare("prioritized", "prioritized"));
assertEquals(0, COMPARATOR.compare("prioritized", null));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ void testOnNull() {
void testOnNonWrapper() {
assertNull(tryUnwrap("not a wrapper", String.class));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,4 @@ void testFilterFirst() {
assertEquals(2, filterFirst(INTEGERS_LIST, EVEN_PREDICATE));
assertEquals(2, filterFirst(INTEGERS_SET, EVEN_PREDICATE));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,4 @@ void testExecute3WithNullFunction() {
void testExecute3WithNullExceptionHandler() {
assertThrows(IllegalArgumentException.class, () -> execute("test", function, null));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,4 @@ void testReformSpec() throws MalformedURLException {

private static class MemberClass extends ExtendableProtocolURLStreamHandler {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -717,5 +717,4 @@ void testIsArchiveURL(String protocol) {
File archiveFile = resolveArchiveFile(classArchiveEntryURL);
assertTrue(isArchiveURL(ofURL(protocol + COLON_CHAR + SLASH_CHAR + archiveFile.getAbsolutePath())));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ public Handler() {
public Handler(String protocol) {
super(protocol);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ class CharsetUtilsTest {
void testConstants() {
assertNotNull(DEFAULT_CHARSET);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ void test() {
String response = new String(outputStream.toByteArray());
log(response);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@ public TestData(String name) {
this.name = name;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,4 @@ void testExecuteWithThrowableConsumerOnClassCastException() {
assertEquals(1, (int) method.invoke(test, 1));
}));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ void testSet() {
assertEquals(definition.toString(), this.name);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,4 @@ private void testObject() {
assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, objectType.getGenericTypes());
assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, objectType.getGenericTypes());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,4 @@ protected void testAs() {
JavaType type = javaType.as(null);
assertNull(type);
}

}
Loading
Loading