-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider semicolons when finding comments
Fixes #70
1 parent
3f4319a
commit 5c4e4cc
Showing
5 changed files
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
rule = SortImports | ||
SortImports.blocks = [ | ||
"java", | ||
"scala" | ||
] | ||
*/ | ||
import java.math.BigInteger; | ||
import java.util.Map; // Map interface | ||
import java.util.HashSet; | ||
|
||
object JavaStyleWithComments { | ||
// Add code that needs fixing here. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import java.math.BigInteger; | ||
import java.util.HashSet; | ||
import java.util.Map; // Map interface | ||
|
||
object JavaStyleWithComments { | ||
// Add code that needs fixing here. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package scala | ||
package meta | ||
package contrib | ||
|
||
import Token.Comment | ||
|
||
object AComments { | ||
def trailingMap(ac: AssociatedComments): Map[Token, List[Comment]] = { | ||
val f = classOf[AssociatedComments].getDeclaredField("trailingMap") | ||
f.setAccessible(true) | ||
|
||
f.get(ac).asInstanceOf[Map[Token, List[Comment]]] | ||
} | ||
} |