Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd8e846

Browse files
committed
Improved replacement for only java codes
1 parentc112778 commitfd8e846

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎src/main/java/generatejavadoc/Main.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
importjava.io.File;
66
importjava.io.IOException;
77
importjava.nio.file.*;
8+
importjava.util.Arrays;
89
importjava.util.ArrayList;
910
importjava.util.List;
1011
importjava.util.regex.Pattern;
@@ -63,7 +64,6 @@ public static void main(String[] args) throws IOException {
6364
"\n- [",
6465
" board = [[",
6566
" grid = [[",
66-
"[[",
6767
"**,",
6868
"**]",
6969
"(**",
@@ -91,7 +91,6 @@ public static void main(String[] args) throws IOException {
9191
"\n-\\[",
9292
" board = [ [",
9393
" grid = [ [",
94-
"\\[\\[",
9594
"** ,",
9695
"** ]",
9796
"( **",
@@ -119,6 +118,12 @@ public static void main(String[] args) throws IOException {
119118
:javaFile.getAbsolutePath().endsWith(".kt")
120119
?Type.KOTLIN
121120
:null);
121+
if (type ==Type.JAVA) {
122+
fromStr =Arrays.copyOf(fromStr,fromStr.length +1);
123+
fromStr[fromStr.length -1] ="[[";
124+
toStr =Arrays.copyOf(toStr,toStr.length +1);
125+
toStr[toStr.length -1] ="[[";
126+
}
122127
StringreadmeMdJavadoc =
123128
"/**\n"
124129
+StringUtils.replaceEach(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp