Skip to content

Commit d9c65b7

Browse files
github-actions[bot]palexdev
authored andcommitted
🎨 Reformat code
1 parent c0c0d28 commit d9c65b7

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

modules/core/src/main/java/io/github/palexdev/mfxcore/collections/RefineList.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public int viewToSource(int index) {
102102
// Overridden Methods
103103
//================================================================================
104104

105+
//@formatter:off
105106
// Listeners
106107
@Override public void addListener(ListChangeListener<? super T> listener) {sorted.addListener(listener);}
107108
@Override public void removeListener(ListChangeListener<? super T> listener) {sorted.removeListener(listener);}
@@ -150,6 +151,7 @@ public int viewToSource(int index) {
150151
// Array Conversions
151152
@Override public Object[] toArray() {return sorted.toArray();}
152153
@Override public <T1> T1[] toArray(T1[] a) {return sorted.toArray(a);}
154+
//@formatter:on
153155

154156
//================================================================================
155157
// Getters/Setters

modules/core/src/main/java/io/github/palexdev/mfxcore/utils/Functions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private Functions() {}
3636
// Static Methods
3737
//================================================================================
3838

39-
///@return a new function that caches and returns the results of the given input function
39+
/// @return a new function that caches and returns the results of the given input function
4040
/// (not thread-safe!)
4141
public static <T, R> Function<T, R> cachedFunction(Function<T, R> fn) {
4242
return new Function<>() {
@@ -62,7 +62,7 @@ public R apply(T t) {
6262
};
6363
}
6464

65-
///@return a new supplier that caches and returns the results of the given input supplier. `Null` results are allowed.
65+
/// @return a new supplier that caches and returns the results of the given input supplier. `Null` results are allowed.
6666
/// (not thread-safe!)
6767
public static <T> Supplier<T> cachedSupplier(Supplier<T> sup) {
6868
return new Supplier<>() {

modules/core/src/test/java/interactive/RefineListSelectionModelTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,6 @@ void sourceToView_withFilterAndSort() {
333333
assertEquals(3, list.sourceToView(0)); // apple → view 3
334334
assertEquals(1, list.sourceToView(3)); // date → view 1
335335
assertEquals("apple", list.get(list.sourceToView(0)));
336-
assertEquals("date", list.get(list.sourceToView(3)));
336+
assertEquals("date", list.get(list.sourceToView(3)));
337337
}
338338
}

0 commit comments

Comments
 (0)