[
https://issues.apache.org/jira/browse/MSHARED-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17755515#comment-17755515
]
ASF GitHub Bot commented on MSHARED-1297:
-----------------------------------------
elharo commented on code in PR #42:
URL: https://github.com/apache/maven-archiver/pull/42#discussion_r1297121659
##########
src/main/java/org/apache/maven/archiver/MavenArchiver.java:
##########
@@ -800,6 +800,21 @@ public static Optional<Instant>
parseBuildOutputTimestamp(String outputTimestamp
}
}
+ private static boolean isNumeric(String str) {
+
+ if (str.isEmpty()) {
+ return false;
+ }
+
+ for (char c : str.toCharArray()) {
+ if (!Character.isDigit(c)) {
Review Comment:
I guess this is within spec for parseBuildOutputTimestamp, as long as it's
private and not used anywhere else.
> Prefer JDK features over plexus-utils, plexus-io
> ------------------------------------------------
>
> Key: MSHARED-1297
> URL: https://issues.apache.org/jira/browse/MSHARED-1297
> Project: Maven Shared Components
> Issue Type: Task
> Components: maven-archiver
> Reporter: Slawomir Jaranowski
> Assignee: Slawomir Jaranowski
> Priority: Major
> Fix For: maven-archiver-3.6.1
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)