We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
*** CID 1594368: Incorrect expression (USELESS_CALL) /src/main/java/com/teragrep/pth_06/planner/walker/Util.java: 115 in com.teragrep.pth_06.planner.walker.Util.relativeTimeModifier(java.sql.Timestamp, java.lang.String)() 109 Matcher matcher = Pattern.compile("^-?\\d+").matcher(value); 110 111 if (!matcher.find()) 112 throw new NumberFormatException("Unknown relative time modifier string [" + value + "]"); 113 114 long v = Long.parseLong(matcher.group()); >>> CID 1594368: Incorrect expression (USELESS_CALL) >>> Calling "matcher.group().length()" is only useful for its return value, which is ignored. 115 matcher.group().length(); 116 String unit = value.substring(matcher.group().length(), value.length()); 117 118 LocalDateTime now = timestamp.toLocalDateTime(); 119 rv = timestamp.toInstant(); 120 if ("s".equalsIgnoreCase(unit) || "sec".equalsIgnoreCase(unit) || "secs".equalsIgnoreCase(unit)
Software version
3.0.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Software version
3.0.1
The text was updated successfully, but these errors were encountered: