-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixed Import Warnings #55
base: master
Are you sure you want to change the base?
Conversation
Why are there so many?
Consolidate your imports, please. EX:
would become |
import edu.wpi.first.wpilibj2.command.CommandBase; | ||
import edu.wpi.first.wpilibj2.command.ConditionalCommand; |
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.
Could this be changed to import edu.wpi.first.wpilibj2.command.*;
?
@@ -1,12 +1,14 @@ | |||
package frc.robot.commands.auto.commandgroups.common.movement; | |||
|
|||
import edu.wpi.first.wpilibj2.command.*; |
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.
Wouldn't this work instead of just the two classes being imported?
import frc.robot.commands.auto.AutoDriveWithJoystickInput; | ||
import frc.robot.commands.auto.AutoRotateWithJoystickInput; | ||
import frc.robot.commands.auto.AutoRotateWithVision; | ||
import frc.robot.commands.auto.resetDriveEncoders; |
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.
Why uncondense it from import frc.robot.commands.auto.*;
?
There seems to be a lot of import statements that could be condensed into, say, |
Removed import warnings from 50+ files.