-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[RSPEC-S1068] Remove unused
private fields
#2317
New issue
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
Conversation
@@ -43,8 +43,6 @@ public final class CLIReportingUtils { | |||
private static final long ONE_MINUTE = 60 * ONE_SECOND; | |||
|
|||
private static final long ONE_HOUR = 60 * ONE_MINUTE; | |||
|
|||
private static final long ONE_DAY = 24 * ONE_HOUR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might be API but seems unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to investigate, what its actually used for.
f1dbef5
to
1c1a395
Compare
|
||
private static final long ONE_MINUTE = 60 * ONE_SECOND; | ||
|
||
private static final long ONE_HOUR = 60 * ONE_MINUTE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Private field 'ONE_HOUR' is never used openrewrite/rewrite-static-analysis#554
assuming circle issue as last block item was found.ONE_DAY
kindly request some feedback. |
@@ -28,10 +28,6 @@ | |||
|
|||
class MavenITmng6401ProxyPortInterpolationTest extends AbstractMavenIntegrationTestCase { | |||
|
|||
private Proxy proxy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These might be used in a weird way by reflection in the integration tests. I'm not sure in this case, but Maven does have a lot of private things that look unused but really are used like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes then its nice to have good TC to challenge or suppress.
@@ -47,24 +47,12 @@ | |||
*/ | |||
public class MyMojo extends AbstractMojo { | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the comment shows why and how this is used here. Please check this sort of thing before sending PRs from automated tools.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes im sorry.
order 100% test coverage or deletion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes its unused. Details does not help me. Im unaware.
From technical POV its seems obsolet.
If CI happy ship or test / use as its only test
stage.
* Not used, just an offset to place reactorProjects in the middle. | ||
* @parameter default-value="${project.build.directory}" | ||
*/ | ||
private String outputDirectory2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems c&p
leftover.
The matcher returned by that method combines the effects of all includes and excludes. When using the Maven syntax, escape the special characters [ ] { } \ before to delegate to the glob syntax. Optimization: omit excludes that are unnecessary because they will never match a file accepted by includes. This is especially useful when the default excludes are added, because there is a lot of them. --------- Co-authored-by: VIP <[email protected]>
Also, add newly introduced methods to `FastTerminal`. JLine 3.30.0 release notes: https://github.com/jline/jline3/releases/tag/jline-3.30.0 --- https://issues.apache.org/jira/browse/MNG-8726
wip reopen |
[RSPEC-S1068] Remove
unused
private fieldsenabler to:
rewrite-maven-plugin
: Introduce OpenRewrite by Moderne #2322