Skip to content

Commit 30790ec

Browse files
author
zhourenjian@gmail.com
committed
Fixed bug of still updating Objective C sources' copyright year
1 parent f63d10d commit 30790ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/net.sf.j2s.ajax/generator/net/sf/j2s/ajax/SourceUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ public static void updateSourceContent(File file, String source) {
178178
return;
179179
} else {
180180
@SuppressWarnings("deprecation")
181-
String copyrightYear = "* Copyright (c) " + (new Date().getYear() + 1900);
182-
String updatedSource = oldSource.replaceFirst("\\* Copyright \\(c\\) \\d{4}", copyrightYear);
181+
String copyrightYear = " Copyright (c) " + (new Date().getYear() + 1900);
182+
String updatedSource = oldSource.replaceFirst(" Copyright \\(c\\) \\d{4}", copyrightYear);
183183
if (source.equals(updatedSource)) {
184184
return;
185185
}

0 commit comments

Comments
 (0)