Skip to content

Commit b51f4a0

Browse files
committed
Spotless
1 parent 17f0eac commit b51f4a0

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

lfc/core/src/main/java/org/lflang/ast/IsEqual.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767

6868
/**
6969
* Switch class that checks if subtrees of the AST are semantically equivalent to each other. Return
70-
* `false` if they are not equivalent; return `true` or `false` (but preferably
71-
* `true`) if they are equivalent.
70+
* `false` if they are not equivalent; return `true` or `false` (but preferably `true`) if they are
71+
* equivalent.
7272
*
7373
* @ingroup Utilities
7474
*/
@@ -657,7 +657,8 @@ <T> ComparisonMachine<E> equalAsObjects(Function<E, T> propertyGetter) {
657657

658658
/**
659659
* Conclude false if the two properties are not equal as objects, given that
660-
* `projectionToClassRepresentatives` maps each object to some semantically equivalent object. If either or both of the objects are null, also conclude false.
660+
* `projectionToClassRepresentatives` maps each object to some semantically equivalent object.
661+
* If either or both of the objects are null, also conclude false.
661662
*/
662663
<T> ComparisonMachine<E> equalAsObjectsModulo(
663664
Function<E, T> propertyGetter, Function<T, T> projectionToClassRepresentatives) {
@@ -678,8 +679,7 @@ <T extends EObject> ComparisonMachine<E> equivalent(Function<E, T> propertyGette
678679

679680
/**
680681
* Conclude false if the two properties are not semantically equivalent parse nodes, given that
681-
* `projectionToClassRepresentatives` maps each parse node to some semantically equivalent
682-
* node.
682+
* `projectionToClassRepresentatives` maps each parse node to some semantically equivalent node.
683683
*/
684684
<T extends EObject> ComparisonMachine<E> equivalentModulo(
685685
Function<E, T> propertyGetter, Function<T, T> projectionToClassRepresentatives) {

lfc/core/src/main/java/org/lflang/ast/ToLf.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ static ICompositeNode getNextCompositeSibling(INode node, Function<INode, INode>
177177
return null;
178178
}
179179

180-
/**
181-
* Return the siblings following `node` up to (and not including) the next non-leaf sibling.
182-
*/
180+
/** Return the siblings following `node` up to (and not including) the next non-leaf sibling. */
183181
private static Stream<INode> getFollowingNonCompositeSiblings(ICompositeNode node) {
184182
INode sibling = node;
185183
List<INode> ret = new ArrayList<>();
@@ -190,8 +188,8 @@ private static Stream<INode> getFollowingNonCompositeSiblings(ICompositeNode nod
190188
}
191189

192190
/**
193-
* Return comments that follow `node` in the source code and that either satisfy `filter`
194-
* or that cannot belong to any following sibling of `node`.
191+
* Return comments that follow `node` in the source code and that either satisfy `filter` or that
192+
* cannot belong to any following sibling of `node`.
195193
*/
196194
private static Stream<String> getFollowingComments(
197195
ICompositeNode node, Predicate<INode> precedingFilter, Predicate<INode> followingFilter) {
@@ -207,8 +205,8 @@ private static Stream<String> getFollowingComments(
207205
}
208206

209207
/**
210-
* Return comments contained by `node` that logically belong to this node (and not to any of
211-
* its children).
208+
* Return comments contained by `node` that logically belong to this node (and not to any of its
209+
* children).
212210
*/
213211
private static List<INode> getContainedCodeComments(INode node) {
214212
ArrayList<INode> ret = new ArrayList<>();
@@ -231,8 +229,8 @@ private static List<INode> getContainedCodeComments(INode node) {
231229
}
232230

233231
/**
234-
* Return all comments that are part of `node`, regardless of where they appear relative to
235-
* the main content of the node.
232+
* Return all comments that are part of `node`, regardless of where they appear relative to the
233+
* main content of the node.
236234
*/
237235
private static List<INode> getContainedComments(INode node) {
238236
var ret = new ArrayList<INode>();

0 commit comments

Comments
 (0)