Skip to content

Commit

Permalink
Apply the suggestions....manually ?
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsamehsalah committed Oct 21, 2023
1 parent 505870a commit 24a8c9b
Show file tree
Hide file tree
Showing 28 changed files with 46 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ final class AssertJThrowingCallableRulesTest implements RefasterRuleCollectionTe
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
assertThatExceptionOfType(Throwable.class),
assertThatIOException(),
assertThatIllegalArgumentException(),
assertThatIllegalStateException(),
assertThatIOException(),
assertThatNullPointerException());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ final class AssertJThrowingCallableRulesTest implements RefasterRuleCollectionTe
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
assertThatExceptionOfType(Throwable.class),
assertThatIOException(),
assertThatIllegalArgumentException(),
assertThatIllegalStateException(),
assertThatIOException(),
assertThatNullPointerException());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Arrays.class,
Collections.class,
identity(),
ImmutableList.class,
ImmutableSet.class,
Stream.class,
identity());
Stream.class);
}

ImmutableSet<Comparator<String>> testNaturalOrder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Arrays.class,
Collections.class,
identity(),
ImmutableList.class,
ImmutableSet.class,
Stream.class,
identity());
Stream.class);
}

ImmutableSet<Comparator<String>> testNaturalOrder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
final class EqualityRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Objects.class, Optional.class, not(null));
return ImmutableSet.of(not(null), Objects.class, Optional.class);
}

ImmutableSet<Boolean> testPrimitiveOrReferenceEquality() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
final class EqualityRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Objects.class, Optional.class, not(null));
return ImmutableSet.of(not(null), Objects.class, Optional.class);
}

ImmutableSet<Boolean> testPrimitiveOrReferenceEquality() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class ImmutableListMultimapRulesTest implements RefasterRuleCollectionTest
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Streams.class, flatteningToImmutableListMultimap(null, null), identity());
flatteningToImmutableListMultimap(null, null), identity(), Streams.class);
}

ImmutableSet<ImmutableMultimap.Builder<String, Integer>> testImmutableListMultimapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class ImmutableListMultimapRulesTest implements RefasterRuleCollectionTest
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Streams.class, flatteningToImmutableListMultimap(null, null), identity());
flatteningToImmutableListMultimap(null, null), identity(), Streams.class);
}

ImmutableSet<ImmutableMultimap.Builder<String, Integer>> testImmutableListMultimapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class ImmutableListRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Arrays.class, Collections.class, Comparator.class, Streams.class, naturalOrder());
Arrays.class, Collections.class, Comparator.class, naturalOrder(), Streams.class);
}

ImmutableList.Builder<String> testImmutableListBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class ImmutableListRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Arrays.class, Collections.class, Comparator.class, Streams.class, naturalOrder());
Arrays.class, Collections.class, Comparator.class, naturalOrder(), Streams.class);
}

ImmutableList.Builder<String> testImmutableListBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
final class ImmutableMapRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Collections.class, Streams.class, identity());
return ImmutableSet.of(Collections.class, identity(), Streams.class);
}

ImmutableMap.Builder<String, Integer> testImmutableMapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
final class ImmutableMapRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Collections.class, Streams.class, identity());
return ImmutableSet.of(Collections.class, identity(), Streams.class);
}

ImmutableMap.Builder<String, Integer> testImmutableMapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class ImmutableSetMultimapRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Streams.class, flatteningToImmutableSetMultimap(null, null));
return ImmutableSet.of(flatteningToImmutableSetMultimap(null, null), Streams.class);
}

ImmutableSetMultimap.Builder<String, Integer> testImmutableSetMultimapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class ImmutableSetMultimapRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Streams.class, flatteningToImmutableSetMultimap(null, null));
return ImmutableSet.of(flatteningToImmutableSetMultimap(null, null), Streams.class);
}

ImmutableSetMultimap.Builder<String, Integer> testImmutableSetMultimapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class ImmutableSetRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Arrays.class, Collections.class, Streams.class, not(null));
return ImmutableSet.of(Arrays.class, Collections.class, not(null), Streams.class);
}

ImmutableSet.Builder<String> testImmutableSetBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class ImmutableSetRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(Arrays.class, Collections.class, Streams.class, not(null));
return ImmutableSet.of(Arrays.class, Collections.class, not(null), Streams.class);
}

ImmutableSet.Builder<String> testImmutableSetBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class ImmutableSortedMapRulesTest implements RefasterRuleCollectionTestCas
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Stream.class, Streams.class, naturalOrder(), toImmutableSortedMap(null, null, null));
naturalOrder(), Stream.class, Streams.class, toImmutableSortedMap(null, null, null));
}

ImmutableSortedMap.Builder<String, Integer> testImmutableSortedMapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class ImmutableSortedMapRulesTest implements RefasterRuleCollectionTestCas
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Stream.class, Streams.class, naturalOrder(), toImmutableSortedMap(null, null, null));
naturalOrder(), Stream.class, Streams.class, toImmutableSortedMap(null, null, null));
}

ImmutableSortedMap.Builder<String, Integer> testImmutableSortedMapBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ final class JUnitToAssertJRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Assertions.class,
assertDoesNotThrow(() -> null),
assertInstanceOf(null, null),
assertThrows(null, null),
assertThrowsExactly(null, null),
(Runnable) () -> assertFalse(true),
(Runnable) () -> assertNotNull(null),
(Runnable) () -> assertNotSame(null, null),
(Runnable) () -> assertNull(null),
(Runnable) () -> assertSame(null, null),
(Runnable) () -> assertTrue(true));
(Runnable) () -> assertTrue(true),
assertDoesNotThrow(() -> null),
assertInstanceOf(null, null),
Assertions.class,
assertThrows(null, null),
assertThrowsExactly(null, null));
}

void testThrowNewAssertionError() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ final class JUnitToAssertJRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Assertions.class,
assertDoesNotThrow(() -> null),
assertInstanceOf(null, null),
assertThrows(null, null),
assertThrowsExactly(null, null),
(Runnable) () -> assertFalse(true),
(Runnable) () -> assertNotNull(null),
(Runnable) () -> assertNotSame(null, null),
(Runnable) () -> assertNull(null),
(Runnable) () -> assertSame(null, null),
(Runnable) () -> assertTrue(true));
(Runnable) () -> assertTrue(true),
assertDoesNotThrow(() -> null),
assertInstanceOf(null, null),
Assertions.class,
assertThrows(null, null),
assertThrowsExactly(null, null));
}

void testThrowNewAssertionError() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ final class ReactorRulesTest implements RefasterRuleCollectionTestCase {
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
ArrayList.class,
assertThat(0),
Collection.class,
HashMap.class,
List.class,
ImmutableCollection.class,
ImmutableMap.class,
assertThat(0),
List.class,
toCollection(null),
toImmutableList(),
toOptional());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ final class ReactorRulesTest implements RefasterRuleCollectionTestCase {
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
ArrayList.class,
assertThat(0),
Collection.class,
HashMap.class,
List.class,
ImmutableCollection.class,
ImmutableMap.class,
assertThat(0),
List.class,
toCollection(null),
toImmutableList(),
toOptional());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ final class StreamRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
ImmutableList.class,
Objects.class,
Streams.class,
counting(),
filtering(null, null),
flatMapping(null, null),
identity(),
ImmutableList.class,
mapping(null, null),
maxBy(null),
minBy(null),
not(null),
Objects.class,
reducing(null),
Streams.class,
summarizingDouble(null),
summarizingInt(null),
summarizingLong(null),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ final class StreamRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
ImmutableList.class,
Objects.class,
Streams.class,
counting(),
filtering(null, null),
flatMapping(null, null),
identity(),
ImmutableList.class,
mapping(null, null),
maxBy(null),
minBy(null),
not(null),
Objects.class,
reducing(null),
Streams.class,
summarizingDouble(null),
summarizingInt(null),
summarizingLong(null),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class StringRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Arrays.class, Joiner.class, Objects.class, Stream.class, Streams.class, joining(), UTF_8);
UTF_8, Arrays.class, Joiner.class, joining(), Objects.class, Stream.class, Streams.class);
}

ImmutableSet<Boolean> testStringIsEmpty() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class StringRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(
Arrays.class, Joiner.class, Objects.class, Stream.class, Streams.class, joining(), UTF_8);
UTF_8, Arrays.class, Joiner.class, joining(), Objects.class, Stream.class, Streams.class);
}

ImmutableSet<Boolean> testStringIsEmpty() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
final class WebClientRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(fromValue(""), GET, HEAD, OPTIONS, PATCH, POST, PUT);
return ImmutableSet.of(GET, HEAD, OPTIONS, PATCH, POST, PUT, fromValue(""));
}

ImmutableSet<?> testBodyValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
final class WebClientRulesTest implements RefasterRuleCollectionTestCase {
@Override
public ImmutableSet<Object> elidedTypesAndStaticImports() {
return ImmutableSet.of(fromValue(""), GET, HEAD, OPTIONS, PATCH, POST, PUT);
return ImmutableSet.of(GET, HEAD, OPTIONS, PATCH, POST, PUT, fromValue(""));
}

ImmutableSet<?> testBodyValue() {
Expand Down

0 comments on commit 24a8c9b

Please sign in to comment.