You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
A tool for manipulating symbols present in `.java` source files.
4
4
5
-
The tool can be used for patching `.java` sources in cases where using `sed` is insufficient due to Java language syntax. The tool follows Java language rules rather than applying simple regular expressions on the source code.
5
+
The tool can be used for patching `.java` sources in cases where using `sed` is insufficient due to Java language syntax.
6
+
The tool follows Java language rules rather than applying simple regular expressions on the source code.
6
7
7
8
Currently the tool is able to remove `import` statements and annotations.
8
9
@@ -27,7 +28,8 @@ with the option were made. This option is only applicable together with `-i`.
27
28
[horizontal!]
28
29
29
30
== Specification
30
-
The tool removes import statements of specified matching class names and if `-a` is specified then also removes annotations. Arguments can be specified in arbitrary order.
31
+
The tool removes import statements of specified matching class names and if `-a` is specified then also removes annotations.
32
+
Arguments can be specified in arbitrary order.
31
33
32
34
File path arguments are handled the following way:
33
35
@@ -37,9 +39,11 @@ File path arguments are handled the following way:
37
39
38
40
If no file path is provided then the tool reads from the standard input.
39
41
40
-
Class name matching can be done in two ways: `-n` to match simple class names or `-p` to match the provided regex pattern against fully qualified names as present in the sources. These options can be specified multiple times.
42
+
Class name matching can be done in two ways: `-n` to match simple class names or `-p` to match the provided regex pattern against fully qualified names as present in the sources.
43
+
These options can be specified multiple times.
41
44
42
-
The specific implementation of the regex search engine is subject to change. Therefore only simple patterns should be used to guarantee that they will work with future versions.
45
+
The specific implementation of the regex search engine is subject to change.
46
+
Therefore only simple patterns should be used to guarantee that they will work with future versions.
43
47
44
48
The tool writes the results to standard output unless `-i` option is specified in which case it will replace the original files' content.
0 commit comments